[Bug 774196] mpdparser: Fix timestamp setting on fragment

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Nov 10 13:36:01 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=774196

--- Comment #5 from Seungha Yang <sh.yang at lge.com> ---
(In reply to Sebastian Dröge (slomo) from comment #4)
> Check this code:
> https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst-libs/gst/
> adaptivedemux/gstadaptivedemux.c#n1010
> 
> The problem is probably here.

I think you are correct :) but some other points should be more fixed.
when I saw current usage of fragment.timestame, it seems to be relative
timestamp.
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst-libs/gst/adaptivedemux/gstadaptivedemux.c#n1975


> I assume the timestamps in the MP4 are in your case still approximately the
> same as the fragment start timestamp, but stream/running time is wrong?

I'm not sure segment.start value should be as follows, but running time must be
problem, I think. please refer to following log (Without patch)

the first buffer PTS = 410772:47:00.010666666
segment start        = 410772:45:00.000000000 (1478781900000000000)

0:00:03.046399410 21302 0x7f0ab4003800 DEBUG              GST_EVENT
gstpad.c:5550:gst_pad_send_event_unchecked:<multiqueue0:sink_0> have event type
segment event: 0x7f0acc00edd0, time 99:99:99.999999999, seq-num 37,
GstEventSegment, segment=(GstSegment)"GstSegment,
flags=(GstSegmentFlags)GST_SEGMENT_FLAG_RESET, rate=(double)1,
applied-rate=(double)1, format=(GstFormat)GST_FORMAT_TIME,
base=(guint64)1478781844000000000, offset=(guint64)0,
start=(guint64)1478781900000000000, stop=(guint64)18446744073709551615,
time=(guint64)1478781900000000000, position=(guint64)1478781900000000000,
duration=(guint64)18446744073709551615;";

0:00:03.712068011 21361 0x7f8080003680 DEBUG         GST_SCHEDULING
gstpad.c:4204:gst_pad_chain_data_unchecked:<multiqueue0:sink_0> calling
chainfunction &gst_multi_queue_chain with buffer buffer: 0x7f808c0116f0, pts
410772:47:00.010666666, dts 410772:47:00.010666666, dur 0:00:00.021333334, size
137, offset none, offset_end none, flags 0x4040

-- 
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