[gstreamer-bugs] [Bug 539858] not enough NEWSEGMENT events from matroskademux

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Jun 24 03:19:17 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=539858

  GStreamer | gst-plugins-good | Ver: HEAD CVS

Evgeniy Stepanov changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |UNCONFIRMED




------- Comment #3 from Evgeniy Stepanov  2008-06-24 10:19 UTC -------
(In reply to comment #2)
> Why is it necessary to send the NEWSEGMENT events for overlapping buffers? What
> happens without them?

Textoverlay can push video buffer only if it is sure that it has seen all the
subtitle buffers with the less or equal timestamps. This is the case (or so it
thinks) if either there is a buffer with end point in the future, or there was
a NEWSEGMENT for text stream with start point in the future.

With overlapping buffers, the first condition is incorrect. It results in lost
subtitles. We can only be sure that we have seen all the subtitles from the
past if the _start_ of some subtitle is in the future, or the same NEWSEGMENT
condition. For example, if there were two subtitles with time intervals [0, 10]
and [1, 2], the second one may never be displayed.

This is not that important for textoverlay, because it does not support
overlapping subtitles at all. In fact, the second buffer ([1, 2]) would be
locked in text_chain until the end of the first one.

I'm writing an overlay that supports overlapping subtitles. For this reason I
can only rely on start points of text buffers to decide when to push the video
frame. If I get a long subtitle buffer, only NEWSEGMENT events (starting from
start of the buffer + 0.5 seconds) can tell me that video stream can progress.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=539858.




More information about the Gstreamer-bugs mailing list