How to seek subtitle precisely
longkas
longkas at gmail.com
Sat Sep 7 08:31:41 UTC 2019
Hello,
I'm using subtitleoverlay and want to seek a position of the video and also
the subtitle, but the subtitle is always a little 2 seconds ahead the video
//seek video
gst_element_seek_simple(videoElement, GST_FORMAT_TIME,
GstSeekFlags(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT), seekPos);
setPadOffset(this->videoSrcPad);
//seek subparse
gst_element_seek_simple(subparseEle, GST_FORMAT_TIME,
GstSeekFlags(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT), seekPos);
setPadOffset(this->subPad);
I have also tried to set subtitle-ts-offset instead
g_object_set(this->subtitleOverlayEle, "subtitle-ts-offset",
getPipeOffset(), NULL);
please help me to figure the issue, thank you
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list