From owner-freebsd-multimedia Fri Jan 3 21:39:45 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 4E13B37B405 for ; Fri, 3 Jan 2003 21:39:42 -0800 (PST) Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) by mx1.FreeBSD.org (Postfix) with SMTP id 753B243EB2 for ; Fri, 3 Jan 2003 21:39:41 -0800 (PST) (envelope-from coop9211@uidaho.edu) Received: from unknown (HELO uidaho.edu) (john?m?cooper@206.63.201.3 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Jan 2003 05:39:38 -0000 Message-ID: <3E167357.7030300@uidaho.edu> Date: Fri, 03 Jan 2003 21:38:31 -0800 From: John Merryweather Cooper User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.3a) Gecko/20021210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hawkeyd@visi.com Cc: freebsd-multimedia@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: Re: FreeBSD-4.5, Mozilla-1.1, Plugger-4.0 and MPlayer-0.90rc2, oh-my! References: <20030103200927.A667@sheol.localdomain> In-Reply-To: <20030103200927.A667@sheol.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Thanks! For the FreeBSD version, I'm the maintainer of www/plugger. Could someone listening on ports put this in as a PR? With web-based send-pr disabled, I can't do it as my FreeBSD machine is somewhat Northeast of me at the moment. :) jmc D J Hawkey Jr wrote: >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 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message