GNOME Bugzilla – Bug 155249
ffdemux_asf and ffdec_wmav2 create endless loop
Last modified: 2004-12-22 21:47:04 UTC
$ gst-typefind-0.8 /home/jason/music/Yoko/01\ A\ Man\ Like\ Me.wma /home/jason/music/Yoko/01 A Man Like Me.wma - video/x-ms-asf $ gst-launch-0.8 filesrc location=/home/jason/music/Yoko/01\ A\ Man\ Like\ Me.wma ! ffdemux_asf ! audio/x-wma ! ffdec_wmav2 ! alsasink This pipeline will never end. Also, the type is incorrectly reported as video, perhaps typefind should look at the streams and use audio/x-ms-asf if there is only an audio stream.
http://subterrific.net/~jason/test.wma also, try using asfdemux instead of ffdemux_asf, i'm pretty sure asfdemux isn't able to handle WMA9 files, although there might be a fix in cvs for that already because i brought it up on #gstreamer.
I think this was alsasink related. We've fixed some inf loops in alsasink (before the 0.8.6 release) and this file plays fine now. Marking fixed.
It definitely isn't related to alsasink. I first discovered the bug while writing a program that didn't have alsasink in the pipeline. I just used alsasink for the example in the bug report so you could hear that the file had finished playing. I think the problem is that either ffdemux_asf or ffdec_wmav2 never sends an EOF event. I had to work around it in my code by watching the GST_CLOCK_TIME and exiting if I saw the same clock time twice in a row. I am still seeing the bug with gstreamer 0.8.6 and gst-ffmpeg 0.8.2. I am using fakesink and osssink instead of alsasink just to be sure it wasn't alsasink. However, if I have nothing after ffdec_wmav2 in the pipeline, it does exit corrently. Also, asfdemux still fails to work as a replacement for ffdemux_asf with this file.
oops, that should have read gstreamer 0.8.7, gst-plugins 0.8.6, and gst-ffmpeg 0.8.2
ffdemux_ indeed didn't EOS correctly, see http://bugzilla.gnome.org/show_bug.cgi?id=155249. Patch is pending to be applied to CVS, but I'm waiting for other ffmpeg CVS surgery to be completed. As for everything else, I tested against CVS and everything works here, both using asfdemux and ffdemux_asf. And yes, I hear perfectly clear and audible music.