subtitleoverlay does not show subtitle sometimes

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

subtitleoverlay does not show subtitle sometimes

longkas
This post was updated on .
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
Reply | Threaded
Open this post in threaded view
|

Re: subtitleoverlay does not show subtitle sometimes

longkas
This post was updated on .
Reply | Threaded
Open this post in threaded view
|

Re: subtitleoverlay does not show subtitle sometimes

longkas


It shows different result on different machines, also different on Windows
and Linux.

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
work

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.








--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel