Advancing or Delaying the subtitle display

Nicolas Dufresne nicolas at ndufresne.ca
Tue Mar 27 14:27:25 UTC 2018


Le mardi 27 mars 2018 à 05:29 -0700, DeepakRohan a écrit :
> Hi,
> 
>      I have a task of advancing or delaying the subtitle content that
> is
> being overlayed on the Video data.
> I wanted to know if there is any way by which we can achieve this in
> gstreamer, other than modifying the subtitle buffers timestamps.
> Say like updating a property of a element in pipeline which does the
> advancing/delaying automatically.

I believe you could play with the pad offset (see
gst_pad_set_offset()), but haven't tests such a solution myself.

> 
> Note:
> By advancing I mean that the subtitle that was supposed to be
> displayed at
> say 15 second of the playback, should be displayed at 12th second -
> This is
> advancing by 3 seconds.
> By delaying I mean that the subtitle that was supposed to be
> displayed at
> say 15 second of the playback, should be displayed at 18th second -
> This is
> delaying by 3 seconds.
> 
> Please let me know how to proceed on this.
> 
> Thanks in Advance.
> Rohan
> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180327/3c6d3fbf/attachment.sig>


More information about the gstreamer-devel mailing list