GNOME Bugzilla – Bug 303153
[asfdemux] gstreamer won't play asf http stream
Last modified: 2006-03-27 16:27:59 UTC
Version details: gstreamer-0.8.10, gst-plugins-0.8.8 Distribution/Version: Gentoo gst-launch-0.8 gnomevfssrc location=http://ccri.eonstreams.com/ccri_tx_houston_kprc_am.asf ! asfdemux ! ffdec_wmav2 ! audioconvert ! alsasink device=hw:0,0 It says "RUNNING pipeline", but quickly dies with "Execution ended after 6 iterations". I can play this stream with mplayer. I can also play a local .asf file using gst-launch and the above pipeline.
I'm almost certain this is fixed in CVS.
I tried to build from CVS sources. I built gstreamer successfully, but the gst-plugins configure could not find pkgconfig info for gstreamer-interfaces. It seems to be an autogen/configure problem with gst-plugins, because gstreamer-interfaces.pc.in is in gst-plugins/pkgconfig, but it doesn't get version strings substituted into it and such. Nevertheless, if you have a CVS build, please just run the above command for me and tell me what happens.
LOG (0x947b948 - 309824:15:47.379099000) asfdemux(18830) gstasfdemux.c(1738):gst_asf_demux_identify_guid:<asfdemux0> identifying 0x6665525b/0x6e657265/0x0d5d6563/0x6665520a WARN (0x947b948 - 309824:15:47.379352000) asfdemux(18830) gstasfdemux.c(1229):_read_object_header:<asfdemux0> Could not identify object (0x6665525b/0x6e657265/0x0d5d6563/0x6665520a) with size=3403156113903336753 INFO (0x947b948 - 309824:15:47.379471000) asfdemux(18830) gstasfdemux.c(1251):gst_asf_demux_process_object: Found object 0 with size 3403156113903336753INFO (0x947b948 - 309824:15:47.379596000) asfdemux(18830) gstasfdemux.c(1205):gst_asf_demux_skip_object: Skipping object... LOG (0x947b948 - 309824:15:47.379958000) asfdemux(18830) gstasfdemux.c(1738):gst_asf_demux_identify_guid:<asfdemux0> identifying 0x7263632f/0x6f652e69/0x7274736e/0x736d6165 WARN (0x947b948 - 309824:15:47.380077000) asfdemux(18830) gstasfdemux.c(1229):_read_object_header:<asfdemux0> Could not identify object (0x7263632f/0x6f652e69/0x7274736e/0x736d6165) with size=8242540798368768814 INFO (0x947b948 - 309824:15:47.380191000) asfdemux(18830) gstasfdemux.c(1251):gst_asf_demux_process_object: Found object 0 with size 8242540798368768814INFO (0x947b948 - 309824:15:47.380292000) asfdemux(18830) gstasfdemux.c(1205):gst_asf_demux_skip_object: Skipping object... LOG (0x947b948 - 309824:15:47.380521000) asfdemux(18830) gstasfdemux.c(1738):gst_asf_demux_identify_guid:<asfdemux0> identifying 0x78745f69/0x756f685f/0x6e6f7473/0x72706b5f WARN (0x947b948 - 309824:15:47.380665000) asfdemux(18830) gstasfdemux.c(1229):_read_object_header:<asfdemux0> Could not identify object (0x78745f69/0x756f685f/0x6e6f7473/0x72706b5f) with size=7382351066221862755 INFO (0x947b948 - 309824:15:47.380779000) asfdemux(18830) gstasfdemux.c(1251):gst_asf_demux_process_object: Found object 0 with size 7382351066221862755INFO (0x947b948 - 309824:15:47.380879000) asfdemux(18830) gstasfdemux.c(1205):gst_asf_demux_skip_object: Skipping object... LOG (0x947b948 - 309824:15:47.381107000) asfdemux(18830) gstasfdemux.c(1738):gst_asf_demux_identify_guid:<asfdemux0> identifying 0x65520a0d/0x683d3266/0x3a707474/0x36362f2f WARN (0x947b948 - 309824:15:47.381225000) asfdemux(18830) gstasfdemux.c(1229):_read_object_header:<asfdemux0> Could not identify object (0x65520a0d/0x683d3266/0x3a707474/0x36362f2f) with size=3329347795562082862 INFO (0x947b948 - 309824:15:47.381338000) asfdemux(18830) gstasfdemux.c(1251):gst_asf_demux_process_object: Found object 0 with size 3329347795562082862INFO (0x947b948 - 309824:15:47.381439000) asfdemux(18830) gstasfdemux.c(1205):gst_asf_demux_skip_object: Skipping object... LOG (0x947b948 - 309824:15:47.381692000) asfdemux(18830) gstasfdemux.c(1738):gst_asf_demux_identify_guid:<asfdemux0> identifying 0x383a3133/0x63632f30/0x745f6972/0x6f685f78 WARN (0x947b948 - 309824:15:47.381810000) asfdemux(18830) gstasfdemux.c(1229):_read_object_header:<asfdemux0> Could not identify object (0x383a3133/0x63632f30/0x745f6972/0x6f685f78) with size=8100673282676913013 INFO (0x947b948 - 309824:15:47.381924000) asfdemux(18830) gstasfdemux.c(1251):gst_asf_demux_process_object: Found object 0 with size 8100673282676913013INFO (0x947b948 - 309824:15:47.382023000) asfdemux(18830) gstasfdemux.c(1205):gst_asf_demux_skip_object: Skipping object... So we are missing some object, apparently. It's not fixed yet...
Derek, do you still get this issue with 0.10 ? Those streams are not available anymore btw.
Still an issue. I now have gstreamer-0.10.3, gst-plugins-base-0.10.3, gst-plugins-good-0.10.2, gst-plugins-ugly-0.10.2, and gst-plugins-ffmpeg-0.10.0. This works: -------------------------------------------- mplayer -cache 128 http://a1292.l2009841837.c20098.g.lm.akamaistream.net/D/1292/20098/v0001/reflector:41837 ... [Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (FFmpeg))] ... -------------------------------------------- But gst does not: -------------------------------------------- gst-launch-0.10 gnomevfssrc location=http://a1292.l2009841837.c20098.g.lm.akamaistream.net/D/1292/20098/v0001/reflector:41837 ! asfdemux ! ffdec_wmav2 ! audioconvert ! audioresample ! alsasink Setting pipeline to PAUSED ... Pipeline is PREROLLING ... (stays here forever) -------------------------------------------- Playing a local .asf does work: -------------------------------------------- gst-launch-0.10 gnomevfssrc location=sample.asf ! asfdemux ! ffdec_wmav2 ! audioconvert ! audioresample ! alsasink -------------------------------------------- Also, mp3 streams do work: -------------------------------------------- gst-launch-0.10 gnomevfssrc location=http://abcrad.ic.llnwd.net/stream/abcrad_hannity_lo ! decodebin ! audioconvert ! audioresample ! alsasink -------------------------------------------- Let me know if I can give you anymore info. I updated my email address here, so I should reply faster next time. Yeah, the stream name changed. ;)
These reflectors return playlists with new links, you can't feed those to asfdemux . Mplayer will parse the playlist automatically (just like totem should really). At the end you should probably end up with something like gst-launch-0.10. mmssrc location="mms://...." ! asfdemux ! ... That should work.
Using mmssrc seems to get me closer: gst-launch-0.10 mmssrc location=mms://a1292.l2009841837.c20098.g.lm.akamaistream.net/D/1292/20098/v0001/reflector:41837 ! asfdemux ! ffdec_wmav2 ! audioconvert ! audioresample ! alsasink Setting pipeline to PAUSED ... Could not read packet header: Success Pipeline is PREROLLING ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: audioclock0 Still, nothing plays. Am I supposed to use something else for mms://...? mplayer seems to eventually resolve this link: a1292.l2009841837.c20098.g.lm.akamaistream.net[69.45.64.158]: 80, but I get segfaults (with :80) or nothing (without) if I try that.
I appears to be a bug in asfdemux - it doesn't get the initial timestamp (or the intial newsegment event) right: /pipeline0/fakesink1: last-message = "event ******* E (type: 102, GstEventNewsegment, update=(boolean)false, rate=(double)1, format=(GstFormat)GST_FORMAT_TIME, start=(gint64)0, stop=(gint64)-1, position=(gint64)0) 0x81080f0" Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock /pipeline0/fakesink1: last-message = "chain ******* < (28672 bytes, timestamp: 655:28:56.459000000, duration: 0:00:00.325079365, offset: -1, offset_end: -1, flags: 0) 0x8130158"
*** Bug 335762 has been marked as a duplicate of this bug. ***
This is fixed in CVS now (works for me at least). *** This bug has been marked as a duplicate of 336097 ***
Is there a patch date for this? I'd like to create a patch for this fix, so it can be incorporated into FC 5 rpms.
Yes, of course. You can find the patch in bug #336097 (you might also want the patch from bug #332796 if you don't have it yet)