gst-launch: specifying sub-bins

Sebastian Dröge sebastian at centricular.com
Thu Jul 7 06:24:11 UTC 2016


On Mi, 2016-07-06 at 11:53 +0200, Sachs Jürgen wrote:
> Can anybody help me how to specify a correct gst-launch pipeline for
> a little special problem:
> Assumed we have a hardware, that can:
> 1.       decode  and display several video codecs (“video/avs-video;
> video/mpeg, systemstream = (boolean) { false }; …”
> 2.       decode and present several audio codecs (“audio/x-
> wma;audio/mpeg, mpegversion = (int) { 1, 2, 4 };… "
> 3.       display images in an OSD overlay (GST_VIDEO_CAPS_MAKE("{
> AYUV, ARGB }"))
> For this three task, assumed there exist three different sink
> elements, name hwvideosink, hwaudiosink and hwimagesink
>  
> Now I want to decode a video with SRT subtitles using gst-launch. The
> pipeline description should be similar to the following:
> Ø  gst-launch-1.0 playbin audio-sink=hwaudiosink video-
> sink=hwvideosink text-sink=<my-text-sink> uri=sample.avi"
> suburi=sample.srt"
> and the <my-text-sink> itselfs is a pipeline like this: “textrender !
> hwimagesink”
>  
> How can be specified the pipeline with this sub-bin as text-sink?

When using gst-launch-1.0 / gst_parse_launch() you can provide them
exactly like that: "textrender ! hwimagesink" would be converted to a
bin containing these two elements.

-- 

Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- 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: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160707/1123f082/attachment.sig>


More information about the gstreamer-devel mailing list