Splitting source to more than two sink/pads

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

Splitting source to more than two sink/pads

pchaurasia
Hi Folks,
I am looking to split a video from camera - into three outputs. One for
preview, another for encode and yet another for opencv processing.  I am
able to split is two ways using tee.

gst-launch-1.0  nvcamerasrc fpsRange="30.0 30.0" sensor-id=0 !
'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080,
format=(string)I420, framerate=(fraction)30/1' !  tee name=t ! queue
name=encq11 leaky=1 ! nvoverlaysink overlay-x=40 overlay-y=40
overlay-w=1200 overlay-h=1200 overlay=1 -e t. ! queue name=encq12 !
omxh265enc iframeinterval=24 bitrate=10000000 ! h265parse ! queue
name=encq13 ! matroskamux name=mux ! filesink location=junk1.mkv -e

Is there a way to get tee to put output on three pads ? Or do I need to use
tee in cascaded fashion ?

Thanks




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

Re: Splitting source to more than two sink/pads

Ian Davidson


On 29/05/18 06:16, pchaurasia wrote:

> Hi Folks,
> I am looking to split a video from camera - into three outputs. One for
> preview, another for encode and yet another for opencv processing.  I am
> able to split is two ways using tee.
> ...
> Is there a way to get tee to put output on three pads ? Or do I need to use
> tee in cascaded fashion ?
>
> Thanks
>
tee is a 1 to N splitter.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Splitting source to more than two sink/pads

Nicolas Dufresne-5
In reply to this post by pchaurasia
Le lundi 28 mai 2018 à 22:16 -0700, pchaurasia a écrit :

> I am looking to split a video from camera - into three outputs. One
> for
> preview, another for encode and yet another for opencv processing.  I
> am
> able to split is two ways using tee.
>
> gst-launch-1.0  nvcamerasrc fpsRange="30.0 30.0" sensor-id=0 !
> 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080,
> format=(string)I420, framerate=(fraction)30/1' !  tee name=t ! queue
> name=encq11 leaky=1 ! nvoverlaysink overlay-x=40 overlay-y=40
> overlay-w=1200 overlay-h=1200 overlay=1 -e t. ! queue name=encq12 !
> omxh265enc iframeinterval=24 bitrate=10000000 ! h265parse ! queue
> name=encq13 ! matroskamux name=mux ! filesink location=junk1.mkv -e
>
> Is there a way to get tee to put output on three pads ? Or do I need
> to use
> tee in cascaded fashion ?

tee can have as many pads as you want. just add another branch t. !
queue ! ...

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel