[Bug 783842] [REGRESSION] encodebin: Transcoding of several media streams (to h264 in mp4) fail

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Jun 16 18:40:40 UTC 2017


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

--- Comment #1 from Thibault Saunier <tsaunier at gnome.org> ---
So I had an extra look but am not sure what should happen concretly.

Here is what happens:
- x264enc outputs 2 frames with the same PTS (1000:00:01.933333333)
  (First frame has a size of 6324 bytes, second is really small, 41bytes)
- baseparse sets its next_pts to CLOCK_TIME_NONE (as for any frame)
- baseparse ignores input PTS because the PTS is the same here:

https://phabricator.freedesktop.org/diffusion/GST/browse/master/libs/gst/base/gstbaseparse.c;d99c9d9944fd6dfa3470c25b8fde21ecc563cd5d$3191

I have to say I do not get that part of the code (ie. why is it ignoring
timestamp if they are equal to the previous one?

Attaching here a simple patch to change that behaviour, fixing that issue.

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