Pad linking query

Andy Robinson andy at seventhstring.com
Fri Feb 26 13:26:09 UTC 2021


On 26/02/2021 10:44, Andy Robinson wrote:
> On 25/02/2021 22:21, gotsring wrote:
>> Can you describe what you are trying to accomplish? Where are the 
>> subtitles
>> coming from and where do you want to use them? Are you just overlaying 
>> the
>> subtitles on a video stream?
>>
>> Random pipeline to play subtitles from a file and overlay them onto a 
>> video.
>> Subtitles are read from an .srt file (attached for reference)  
>> subtitles.srt
>> <http://gstreamer-devel.966125.n4.nabble.com/file/t379531/subtitles.srt>
>>
>> gst-launch-1.0.exe filesrc location=subtitles.srt ! subparse ! 
>> textoverlay
>> name=to ! autovideosink \
>> videotestsrc num-buffers=640 ! 'video/x-raw, width=640, height=480,
>> framerate=20/1' ! to.
> 
> They are coming from decodebin of a video file which has two subtitle 
> tracks, and yes I want to overlay them on the video. I know how to do it 
> with an srt file, no problem. But that's not where they are coming from.

P.S. I seem to have figured it out: I link the decodebin subtitle pad 
directly to the textoverlay element and it works. I don't know, in this 
case, where the subtitles are being parsed, but I don't care either!

Regards,
Andy Robinson, Seventh String Software, www.seventhstring.com


More information about the gstreamer-devel mailing list