[Bug 679838] asfdemux fails to demux audio

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jul 16 12:50:20 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=679838
  GStreamer | gst-plugins-ugly | git

--- Comment #4 from Nicola <lists at svrinformatica.it> 2012-07-16 19:50:15 UTC ---
looking at the gst log for asfdemux I can see this:

asfpacket.c:133:gst_asf_payload_queue_for_stream:<asfdemux0> Got payload for
stream 1 ts:0:02:06.280000000
0:00:00.409618508 25207      0x21e9770 LOG                 asfdemux
gstasfdemux.c:1199:all_streams_prerolled:<'':video_00> checking if
0:02:06.280000000 > 0:00:01.000000000
0:00:00.409630451 25207      0x21e9770 LOG                 asfdemux
gstasfdemux.c:1190:all_streams_prerolled:<'':audio_00> no data queued
0:00:00.409640298 25207      0x21e9770 LOG                 asfdemux
gstasfdemux.c:1270:gst_asf_demux_check_activate_streams:<'':video_00> is
prerolled - activate!
0:00:00.409649797 25207      0x21e9770 INFO                asfdemux
gstasfdemux.c:2322:gst_asf_demux_activate_stream:<asfdemux0> Activating stream 
1, pad video_00, caps image/jpeg, width=(int)640, height=(int)480,
format=(fourcc)MJPG
0:00:00.409743035 25207      0x21e9770 LOG                 asfdemux
gstasfdemux.c:1273:gst_asf_demux_check_activate_streams:<'':audio_00> no data,
ignoring stream
0:00:00.409754628 25207      0x21e9770 DEBUG               asfdemux

so the first video frame has a timestamp more than 2 minutes and as soon as
asfdemux get this ts ignore audio, the problem is that also the first timestamp
for the audio is more than 2 minutes. Looking at the code seems that asfdemux
assume that the fisrt ts is 0 from the asf header and not after receiving the
first real frame, as workaround one can modify the arbitrary 500 ms here:

http://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/tree/gst/asfdemux/gstasfdemux.c?h=0.10#n1177

but this can have side effects, maybe we can simply wait for another payload if
the difference beetween two consecutive timestamps is too big?

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list