Hello experts,
I try to add and play a video file dynamically while the pipeline is
playing, but sometimes the subtitle does not show, also no error logs, my
pipeline looks like:
//build and start pipeline
build main pipeline();
set main pipeline to play();
//add a video file, waiting addPadSinks callback and link video pad of
decodebin to subtitleoverlay
gst-launch filesrc location=v.mp4 ! decodebin ! videoconvert !
subtitleoverlay name=sub ;
pad = getPad(videoconvert , "src");
setPadOffset(pad, offsetPipe);
gst-launch filesrc location=v.srt ! subparse ! sub. ;
pad = getPad(subparse, "src");
setPadOffset(pad, offsetPipe);
//add subtitleoverlay to pipeline
gst-launch sub. ! compositor ! autovideosink ;
All the operations being done in the playing state, btw.
I try to change [subtitleoverlay] to [textoverlay], but it's worse that the
video is shown as blackscreen.
I need advice to solve the issue, thank you very much
BR
--
Sent from:
http://gstreamer-devel.966125.n4.nabble.com/_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel