Advancing or Delaying the subtitle display

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Advancing or Delaying the subtitle display

DeepakRohan
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.

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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Advancing or Delaying the subtitle display

Nicolas Dufresne-5
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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (201 bytes) Download Attachment