Load external subtitle for video file

Sebastian Dröge sebastian at centricular.com
Thu Apr 10 01:17:53 PDT 2014

On Do, 2014-04-10 at 00:58 -0700, sergio_ wrote:
> Hello,
> I try to play a video file on a i.MX6 board with GStreamer 0.10.35 version
> and using the next pipeline:
> gst-launch-0.10 filesrc location = /mnt/sda1/Hunt.mp4 ! decodebin2 !
> mfw_ipucsc ! mfw_v4lsink
> The video is displayed fine. Could you tell me how to update the pipeline to
> display an external .srt or .sub file over the video? 

Use playbin (playbin2 in the old 0.10 series) and the sub-uri property
on it. If you want to use a manual pipeline with decodebin you will have
to add another source for the external subtitle file and render that on
top of the output of decodebin via the subtitle renderers (or use
subtitleoverlay to autoplug the subtitle renderers).

Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140410/125dc108/attachment.sig>

More information about the gstreamer-devel mailing list