gst-launch: specifying sub-bins

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

gst-launch: specifying sub-bins

Sachs Jürgen

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?

Kind regards

/Juergen

 

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst-launch: specifying sub-bins

Sebastian Dröge-3
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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment