[Bug 685036] New: pango: no subtitle displayed after seek with key_unit and snap_after flags

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Sep 28 04:12:50 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=685036
  GStreamer | gst-plugins-base | git

           Summary: pango: no subtitle displayed after seek with key_unit
                    and snap_after flags
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: rawoul at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=225326)
 View: https://bugzilla.gnome.org/attachment.cgi?id=225326
 Review: https://bugzilla.gnome.org/review?bug=685036&attachment=225326

change navseek seeking flags

The pango overlay plugin will wait forever for an external subtitle to be
displayed after a seek with the KEY_UNIT and SNAP_AFTER flags set. This can be
reproduced easily with the following pipeline, after patching navseek with the
attached patch (to change the seek flags from ACCURATE to KEY_UNIT|SNAP_AFTER):

gst-launch-1.0 --gst-debug="pango*:6,subparse:5" souphttpsrc
location='http://absolut.zogzog.org/share/samples/avi/the.office.619.hdtv-lol.avi'
! avidemux ! avdec_mpeg4 ! videoconvert ! overlay.video_sink souphttpsrc
location='http://absolut.zogzog.org/share/samples/avi/the.office.619.hdtv-lol.srt'
! subparse ! overlay.text_sink textoverlay name=overlay ! navseek
seek-offset=600 ! videoconvert ! xvimagesink

The running time for the start and end times of the text is wrong after the
seek, because the video segment start is after the first text buffer PTS.

Eg after a seek:

TEXT BUFFER: ts=0:10:01.793708400, end=0:10:04.194000000
VIDEO BUFFER: ts=0:10:04.313000000, end=0:10:04.354708400
overlay->segment.start -> 0:10:04.313000000

So text buffer start is out of segment and can never be displayed.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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