Mozplugger

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.


Posted on 3 Jan 2010, 17:42


Comments:

Posted on 3 Jan 2010, 22:07 by kirk
ffplay
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.



Posted on 3 Jan 2010, 22:57 by gposil
re ffplay
kirk, I haven't had any probs with it at all...in fact it plays the higher res videos 1280x720 h.264 far better than gxine, on my machine.


Posted on 4 Jan 2010, 6:31 by happypuppy
720p videos - test files
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 HD version of this video)



Posted on 4 Jan 2010, 8:21 by BarryK
sunrise.wmv
'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:

ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured

I need to boot Quirky 002 with Gxine and compare, then will report back.



Posted on 4 Jan 2010, 8:02 by BarryK
Train journey
happypuppy,
I used our You2Pup to download the "train journey" video, and it plays fine with ffplay.



Posted on 4 Jan 2010, 8:35 by BarryK
Sunrise
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.



Posted on 4 Jan 2010, 9:26 by panzerpuppy
ffplay lacks Xv acceleration? (sunrise video)
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 Xv acceleration for playback. Videos run much faster when 2d acceleration is turned on. Is there a setting to enable hardware (Xv) acceleration in ffplay?"



Posted on 4 Jan 2010, 11:26 by kirk
ffplay
Panzer, that's not exactly what a wrote. Barry, I have the same problem that you have with the sunrise video. I'm using Fatdog2 which is my T2 woof from about 5 months ago. I've got ffmpeg from 2/09. I'm using Xine-ui with xine-lib 1.1.17. The matroska file I mentioned before, isn't terrible to watch, just not as smooth a Xine. Maybe it's the audio encoding. It's encoded for ac3.