site  contact  subhomenews

Mozplugger

January 03, 2010 — BarryK
Gposil and I are building puppies without xine/gxine or mplayer, or gstreamer, just ffmpeg. This has been discussed in recent posts.

Without Gxine, there won't be any browser plugin, so technosaurus asked this:

One other ?? Without the gxine plugin, how is normal embedded video handled? swfdec?

like this (add to body of html template)
<EMBED type='application/x-mplayer2' src="http://www.puppylinux.com/test/media-test-video/lionhugsandkisseswoman.wmv" autostart="true" designtimesp='5311' loop="true"></EMBED>


I think that Mozplugger might be a good solution:
http://mozplugger.mozdev.org/

It compiles easily, is very small. The tricky part will be to modify /etc/mozpluggerrc as appropriate for Quirky or Dpup.

For embedded video is seems that it can be made to swallow ffplay into the browser window. This should be interesting, I'll have a bit of a play tonight.

Comments

ffplay
Username: kirk
Have you tried ffplay with a higher res file? When I use ffplay to play a matroska file that uses h.264 codec with 720x480 video, the video playback is not real smooth. Might be dropping some frames. Xine plays the file fine. Xine is using ffmpeg for decoding the h.264 too. Maybe the difference is that Xine is using Xv acceleration for playback? First time I've tried ffplay. Is there a setting to use 2d acceleration? Might not notice if my laptop was faster.

720p videos - test files
Username: happypuppy
"Please test these videos: 720p VC-1: http://video.fraps.com/sunrise.zip 720p H.264: http://www.youtube.com/watch?v=vty4pMfJkZ4 (make sure you download the [b]HD version[/b] of this video)

sunrise.wmv
Username: BarryK
"'sunrise.zip', that's the 'sunrise.wmv' racing cars, isn't it? If already got that. Trying it in my Quirky 003-pre, vesa video driver only, ffplay plays the video nicely, no jerkiness, however sound is discontinuous. That is, has gaps. fflplay outputs this message many times: [i]ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured[/i] I need to boot Quirky 002 with Gxine and compare, then will report back.

Train journey
Username: BarryK
"happypuppy, I used our You2Pup to download the "train journey" video, and it plays fine with ffplay.

Sunrise
Username: BarryK
"Ok, I tested "sunrise" and "train journey" with Gxine and both play fine. Interesting, Gxine plays sunrise.wmv in about 18 seconds, and sound is ok. However ffplay plays it slower, about 50 seconds, and that accounts for why the audio has gaps. Perhaps this problem is fixed n a the latest ffmpeg.

ffplay lacks Xv acceleration? (sunrise video)
Username: panzerpuppy
"BarryK: "Interesting, Gxine plays sunrise.wmv in about 18 seconds, and sound is ok. However ffplay plays it slower, about 50 seconds, and that accounts for why the audio has gaps." kirk: "When I use ffplay to play a h.264 video with 720x480 resolution, the video playback is not really smooth. Frames are dropped all the time. GXine plays the file fine. GXine is using ffmpeg for decoding h.264 videos too. The difference is that Xine is using [b]Xv acceleration[/b] for playback. Videos run much faster when 2d acceleration is turned on. Is there a setting to enable hardware (Xv) acceleration in ffplay?"


Tags: puppy