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");
//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
Re: subtitleoverlay does not show subtitle sometimes
It shows different result on different machines, also different on Windows
1) I want to check if theres data flow on the subtitleoverlay, the function
works as I want after I added a probe callback on the srt file element,
though the probe callback did nothing except printing a log. It worked but I
dont know how, I removed the probe callback and the issue happens again.
2) I have tried to add queue element on the subtitleoverlay sinks, still not
3) I have tried to set the elements to PLAYING state just after each element
is added to the pipeline, or change the state after all elements are added,
both not work
I'm stuck with this issue for a long time, any suggestion is appreciated.