GNOME Bugzilla – Bug 336097
[asfdemux] live ASF streams do not work
Last modified: 2006-03-27 18:47:00 UTC
Please describe the problem: Some radios provide live feeds in .asf format. GStreamer cannot play them The problem is that asfdemux assumes the timestamp of the first packet is equal to preroll (the suggested buffering time). This is true for .asf files and for streams of archived content, but live broadcast streams have very high timestamps Steps to reproduce: 1. In Totem, choose Open Location and enter mmsh://212.131.249.134/Radiolina?MSWMExt=.asf or 1. gst-launch-0.10 mmssrc location=mmsh://212.131.249.134/Radiolina?MSWMExt=.asf ! asfdemux .audio_00 ! ffdec_wmav1 ! alsasink Actual results: Totem says "playing" but there is no sound If GStreamer is run with high debug level, every time asfdemux pushes a pad, the timestamp is unusually high Expected results: Sound should play Does this happen every time? yes Other information:
Created attachment 62055 [details] [review] Patch for fixing timestamps of .asf live feeds With this patch, the timestamp in pads pushed by asfdemux is relative to the first timestamp, rather than being the absolute timestamp in the stream
If this works, you're so my hero :)
Works great as far as I can tell, thanks! 2006-03-27 Tim-Philipp Müller <tim at centricular dot net> Patch by: Fabrizio Gennari <fabrizio dot ge at tiscali dot it> * gst/asfdemux/gstasfdemux.c: (gst_asf_demux_setup_pad), (gst_asf_demux_process_chunk): * gst/asfdemux/gstasfdemux.h: Subtract preroll timestamp from timestamps, so that stream starts from 0; makes live streams that don't start at 0 work again (fixes #317310, #336097).
*** Bug 303153 has been marked as a duplicate of this bug. ***
This works for me as well. Thanks, this is awesome!