After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 685036 - pango: no subtitle displayed after seek with key_unit and snap_after flags
pango: no subtitle displayed after seek with key_unit and snap_after flags
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-09-28 11:12 UTC by Arnaud Vrac
Modified: 2018-05-06 10:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
change navseek seeking flags (588 bytes, patch)
2012-09-28 11:12 UTC, Arnaud Vrac
none Details | Review

Description Arnaud Vrac 2012-09-28 11:12:45 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.
Comment 1 Nicolas Dufresne (ndufresne) 2015-07-24 22:00:12 UTC
URI is gone, anyway to retest that ?
Comment 2 Arnaud Vrac 2015-07-24 22:05:13 UTC
I've reuploaded the files.
Comment 3 Nicolas Dufresne (ndufresne) 2015-07-24 23:12:55 UTC
On latest git, I see subtitles after seeks with that patch applied. Maybe this was fixed, could you confirm ?
Comment 4 Vivia Nikolaidou 2018-05-06 10:33:17 UTC
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!