Gstreamer one source and two sinks

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Gstreamer one source and two sinks

10,342件の閲覧回数
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.

ラベル(1)
2 返答(返信)

4,374件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------

4,374件の閲覧回数
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 件の賞賛
返信