Gstreamer one source and two sinks

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Gstreamer one source and two sinks

8,903 Views
volodymyrmakhit
Contributor II

Hi all!

I'm new to i.MX6 and gstreamer.

So I want to create following gstreamer pipeline. Pipeline should capture video stream from camera and then show it on display and transfer through network.

My pipeline is

gst-launch -v v4l2src device=/dev/video1  \

! queue ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! autovideosink \

! queue ! ffmpegcolorspace ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! vpuenc codec=6 ! tcpserversink host=$IP port=$PORT

Pipeline return error:

WARNING: erroneous pipeline: could not link autovideosink0 to ffmpegcsp0

I welcome any advice.

Thanks.

Labels (1)
2 Replies

2,935 Views
Yuri
NXP Employee
NXP Employee

You may try using "tee" or just to run two gstreamer pipelines as different Linux tasks.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

2,935 Views
volodymyrmakhit
Contributor II

Thanks.

I already found solution.

gst-launch -v --gst-debug-level=1 v4l2src device=/dev/video0 ! tee name=t \

t. ! queue ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! autovideosink \

t. ! queue ! 'video/x-h264,format=H264,width=640,height=480,framerate=30/1' ! vpuenc codec=12 ! tcpserversink host=192.168.0.2 port=500

0 Kudos