[Bug 743973] streamsynchronizer: Need find the least running time from segment

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Mar 4 07:10:08 PST 2015


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

--- Comment #5 from kevin <kevinbing.song at gmail.com> ---
(In reply to Sebastian Dröge (slomo) from comment #1)
> Assuming seek goes to position T and the video keyframe is at position T_k,
> the problem here is that:
> - video plays from T_k, which gets running time 0 because of a flushing seek
> - audio does the same because it comes from the same demuxer
> - subs play from T, which gets running time 0 because of flushing seeks
> - sub / video, and sub / audio sync is off by T_k - T
> 
> Correct?
> 
Yes, you are right.
> 
> I think the solution here would be something inside playbin that adjusts the
> segment events coming from external subtitle files to match up with the
> audio/video segments. It can probably be solved by comparing the stream
> times of both streams and the corresponding running times. Stream time
> should be the same on both, that's what the seek event controls... and
> running times of both streams should be the same at the same stream time,
> otherwise sync is off.

Where is the place to change the segment? playbin?

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