[Bug 751490] mpegaudioparse: Non-increasing PTS issue
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Jun 30 00:43:01 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=751490
Hyunjun <zzoon.ko at samsung.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zzoon.ko at samsung.com
--- Comment #8 from Hyunjun <zzoon.ko at samsung.com> ---
I'm investigating into this issue.
In case of "04.209059333" problem,
in gst_base_parse_chain,
Duration is 0:00:00.024000000
The pts in adaptor is 0:00:04.137059333 ( newly pushed by tsdemux )
prev_pts is 0:00:04.041059333
next_pts is 0:00:04.113059333, which is updated in previous
gst_base_parse_handle_and_push_frame call,
which means the next expected pts is this.
But by the logic below, next_pts is updated to 0:00:04.137059333, which means
one duration is skipped.
if (GST_CLOCK_TIME_IS_VALID (pts) && (parse->priv->prev_pts != pts))
parse->priv->prev_pts = parse->priv->next_pts = pts;
This causes the reported problem finally.
I think this is happening because gap of PTS between each audio stream in ts
file is not consistent even audio data size is consistent.
Sometimes 72ms for 2010 bytes, sometimes 96ms for 2010 bytes.
And I don't think this ts file is invalid, but I'm not sure baseparse should
handle this case.
First case
PTS: 0:00:04.041059333 DTS: 0:00:04.041059333
PTS: 0:00:04.065059333 DTS: 0:00:04.041059333
PTS: 0:00:04.089059333 DTS: 0:00:04.041059333
PTS: 0:00:04.137059333 DTS: 0:00:04.137059333 -> one duration skipped
PTS: 0:00:04.161059333 DTS: 0:00:04.137059333
PTS: 0:00:04.185059333 DTS: 0:00:04.137059333
PTS: 0:00:04.209059333 DTS: 0:00:04.137059333
PTS: 0:00:04.209059333 DTS: 0:00:04.209059333 -> problem happens
PTS: 0:00:04.233059333 DTS: 0:00:04.209059333
PTS: 0:00:04.257059333 DTS: 0:00:04.209059333
Second case
PTS: 0:00:12.081059333 DTS: 0:00:12.081059333
PTS: 0:00:12.105059333 DTS: 0:00:12.081059333
PTS: 0:00:12.129059333 DTS: 0:00:12.081059333
PTS: 0:00:12.177059333 DTS: 0:00:12.177059333 -> one duration skipped
PTS: 0:00:12.201059333 DTS: 0:00:12.177059333
PTS: 0:00:12.225059333 DTS: 0:00:12.177059333
PTS: 0:00:12.249059333 DTS: 0:00:12.177059333
PTS: 0:00:12.249059333 DTS: 0:00:12.249059333 -> problem happens
PTS: 0:00:12.273059333 DTS: 0:00:12.249059333
--
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