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.
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!
-----------------------------------------------------------------------------------------------------------------------
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