Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Jan 2003 21:38:31 -0800
From:      John Merryweather Cooper <coop9211@uidaho.edu>
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!
Message-ID:  <3E167357.7030300@uidaho.edu>
In-Reply-To: <20030103200927.A667@sheol.localdomain>
References:  <20030103200927.A667@sheol.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E167357.7030300>