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 336097 - [asfdemux] live ASF streams do not work
[asfdemux] live ASF streams do not work
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
git master
Other All
: Normal normal
: 0.10.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 303153 (view as bug list)
Depends on:
Reported: 2006-03-26 17:31 UTC by Fabrizio Gennari
Modified: 2006-03-27 18:47 UTC
See Also:
GNOME target: ---
GNOME version: ---

Patch for fixing timestamps of .asf live feeds (1.83 KB, patch)
2006-03-26 17:32 UTC, Fabrizio Gennari
committed Details | Review

Description Fabrizio Gennari 2006-03-26 17:31:24 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

1. gst-launch-0.10 mmssrc location=mmsh://
! 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?

Other information:
Comment 1 Fabrizio Gennari 2006-03-26 17:32:56 UTC
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
Comment 2 Tim-Philipp Müller 2006-03-26 18:20:55 UTC
If this works, you're so my hero :)
Comment 3 Tim-Philipp Müller 2006-03-27 10:41:09 UTC
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/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).
Comment 4 Tim-Philipp Müller 2006-03-27 10:45:14 UTC
*** Bug 303153 has been marked as a duplicate of this bug. ***
Comment 5 Daniel Rogers 2006-03-27 18:47:00 UTC
This works for me as well.  Thanks, this is awesome!