GNOME Bugzilla – Bug 156001
[mpeg] problem playing an mpeg file
Last modified: 2005-01-19 22:40:21 UTC
I've got an mpeg file at http://www.gnome.org/~kmaraas/poolshot.mpg that doesn't play. I'm using the latest packages from fedora + the extra bits from gstreamer.net
*** Bug 156004 has been marked as a duplicate of this bug. ***
"Doesn't play" is not exactly an adequate description. "It eats my memory and hangs my computer" is a better description. I wish I knew how ulimit worked so I could get a g_malloc failure on the sync error and protect that part better.
My backtrace-of-the-day: Program received signal SIGSEGV, Segmentation fault.
+ Trace 53572
Thread 59366320 (LWP 2419)
I get sound using osssink. No video.
With a new ffmpeg snapshot, I get video using this: ~/Projects/GStreamer/gstreamer/tools/gst-launch filesrc location=~/Media/bugs/poolshot.mpg ! mpegdemux .video_00 ! mpeg1videoparse ! ffdec_mpeg2video ! ffmpegcolorspace ! xvimagesink Indeed, ffmpeg expects full video frames. Autoplugging will not really work. Mpeg2dec cannot play this video.
Video parsing is now added to ffmpeg's video decoders, so if you don't have mpeg2dec, this will work. If we see no further issues, we'll swap priorities and ffmpeg will be the default MPEG video decoder. Then this will work by default.
INFO (0x88d0920 - 306494:08:20.870932000) alsa(10095) gstalsasink.c(448):gst_alsa_sink_loop:<alsasink0> Allocating 29095336 bytes (1752104298 samples) now to resync: sample 2543099821 expected, but got 236823 So far for ALSA's problem.
Fix for ALSAs segfault added to alsasink. It will now play audio and video if mpeg2dec is not installed... Let's not talk about A/V sync, I suppose it could be better. There's a hidden timestamp bug somewhere.
So, do I need to remove mpeg2dec to have working video for now? What do I lose by doing that? Looks like it's needed by gstreamer-plugins-extra-video at least...
Little. Mpeg2dec's timestamp code is slightly better than our ffmpeg wrapper's timestamp code, so your MPEG videos may hickup slightly.
Fixed in CVS now. Marking as 0.8.8 gst-plugins, but you'll also need gst-ffmpeg 0.8.4.