From owner-freebsd-multimedia Fri Jan 3 18: 9:41 2003 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F02D37B401 for ; Fri, 3 Jan 2003 18:09:38 -0800 (PST) Received: from bodb.mc.mpls.visi.com (bodb.mc.mpls.visi.com [208.42.156.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id B625643EDC for ; Fri, 3 Jan 2003 18:09:37 -0800 (PST) (envelope-from hawkeyd@visi.com) Received: from sheol.localdomain (hawkeyd-fw.dsl.visi.com [208.42.101.193]) by bodb.mc.mpls.visi.com (Postfix) with ESMTP id C386949AC; Fri, 3 Jan 2003 20:09:36 -0600 (CST) Received: (from hawkeyd@localhost) by sheol.localdomain (8.11.6/8.11.6) id h0429Rj00722; Fri, 3 Jan 2003 20:09:27 -0600 (CST) (envelope-from hawkeyd) Date: Fri, 3 Jan 2003 20:09:27 -0600 From: D J Hawkey Jr To: mplayer-users@mplayerhq.hu, freebsd-multimedia@freebsd.org, hubbe@hubbe.net Subject: FreeBSD-4.5, Mozilla-1.1, Plugger-4.0 and MPlayer-0.90rc2, oh-my! Message-ID: <20030103200927.A667@sheol.localdomain> Reply-To: hawkeyd@visi.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi all. Sorry for the cross-mailings, but I figure all three parties would be interested in this: How I got mozilla and plugger to run mplayer under FreeBSD, all natively, for various multimedia hyperlinks. First, the formalities: $ uname -a FreeBSD sheol.localdomain 4.5-RELEASE-p23 FreeBSD 4.5-RELEASE-p23 #1: Mon Dec 30 07:10:31 CST 2002 root@sheol.localdomain:/usr/obj/usr/src/sys/SHEOL i386 Mozilla'a About window: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021231 $ mplayer --help MPlayer 0.90rc2-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS) CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 SSE Mozilla and plugger (version 4.0) were built from the ports collections. Mplayer was built from their RC2 tarball. Here's the real scoop, relevant portions of /usr/X11R6/etc/pluggerrc: video/mpeg: mpeg, mpg, mpe: MPEG animation video/x-mpeg: mpeg, mpg, mpe: MPEG animation video/x-mpeg2: mpv2, mp2ve: MPEG2 animation video/msvideo: avi: AVI animation video/x-msvideo: avi: AVI animation video/dl: dl: DL animation video/x-dl: dl: DL animation video/quicktime: mov, qt: Quicktime animation video/x-quicktime: mov, qt: Quicktime animation video/sgi-movie: movie, movi, mv: SGI animation video/x-sgi-movie: movie, movi, mv: SGI animation video/anim: iff, anim5, anim3, anim7: IFF animation video/x-anim: iff, anim5, anim3, anim7: IFF animation video/fli: fli, flc: FLI animation video/x-fli: fli, flc: FLI animation nokill, stream, preload, ignore_errors: mplayer -really-quiet -framedrop -wid $window -aop list=volume:volume=64 - >/dev/null 2>/dev/null nokill, ignore_errors: mplayer -really-quiet -framedrop -wid $window -aop list=volume:volume=64 "$file" >/dev/null 2>/dev/null audio/mp3: mp3: MPEG audio audio/x-mp3: mp3: MPEG audio audio/mpeg2: mp2: MPEG audio audio/x-mpeg2: mp2: MPEG audio audio/mpeg3: mp3: MPEG audio audio/x-mpeg3: mp3: MPEG audio audio/mpeg: mpa, abs, mpega: MPEG audio audio/x-mpeg: mpa, abs, mpega: MPEG audio stream, preload, ignore_errors: mplayer -really-quiet -framedrop -demuxer 17 - >/dev/null 2>/dev/null audio/mpeg-url: m3u: MPEG music resource locator audio/x-mpeg-url: m3u: MPEG music resource locator audio/mpegurl: m3u: MPEG music resource locator audio/x-mpegurl: m3u: MPEG music resource locator ignore_errors: mplayer -really-quiet -framedrop -demuxer 17 -playlist "$file" >/dev/null 2>/dev/null The "nokill" flag is required for some video files. I don't know if mplayer is forking, execing or whatever, nor do I know if plugger is killing 'em off and restarting 'em, but a lot of experimentation shows the above to work most predictably. However, this also means that plugger may leave mplayer processes littering the field (as noted in mplayer-users@). Therefore, this quick hack; not the best, but the easiest and surest: --- /usr/X11R6/lib/mozilla/run-mozilla.sh Tue Dec 31 08:01:03 2002 +++ /usr/X11R6/lib/mozilla/run-mozilla.sh Fri Jan 3 12:20:26 2003 @@ -193,6 +193,12 @@ ## $prog ${1+"$@"} exitcode=$? + + ## + ## Kill any mplayer processess (plugger artifacts) + ## + ps -ax |egrep "mplayer.*wid" |cut -f 1 -d ' ' |xargs kill -9 + if [ "$DEBUG_CORE_FILES" ] then if [ -f core ] I'm not certain all this is 100% correct, but it's working for me, and p'raps it'll help someone else. Now then, on to RealAudio... Dave -- ______________________ ______________________ \__________________ \ D. J. HAWKEY JR. / __________________/ \________________/\ hawkeyd@visi.com /\________________/ http://www.visi.com/~hawkeyd/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message