GNOME Bugzilla – Bug 685036
pango: no subtitle displayed after seek with key_unit and snap_after flags
Last modified: 2018-05-06 10:33:17 UTC
Created attachment 225326 [details] [review] 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.
URI is gone, anyway to retest that ?
I've reuploaded the files.
On latest git, I see subtitles after seeks with that patch applied. Maybe this was fixed, could you confirm ?
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment. Thanks!