After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 155249 - ffdemux_asf and ffdec_wmav2 create endless loop
ffdemux_asf and ffdec_wmav2 create endless loop
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.8.1
Other Linux
: Normal normal
: 0.8.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-10-12 23:53 UTC by Jason Toffaletti
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jason Toffaletti 2004-10-12 23:53:47 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.
Comment 1 Jason Toffaletti 2004-10-27 15:29:46 UTC
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.
Comment 2 Ronald Bultje 2004-12-03 15:10:03 UTC
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.
Comment 3 Jason Toffaletti 2004-12-04 04:57:23 UTC
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.
Comment 4 Jason Toffaletti 2004-12-04 04:59:35 UTC
oops, that should have read gstreamer 0.8.7, gst-plugins 0.8.6, and gst-ffmpeg 0.8.2
Comment 5 Ronald Bultje 2004-12-04 09:12:51 UTC
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.