Gstreamer source - two sinks

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Gstreamer source - two sinks

922 次查看
harshal_patel
Contributor II

Hey,

I am trying to do the same thing. My sink is rtmp server.

Issue is when I use streaming to only local it's working fine with below pipe:

gst-launch-1.0 imxv4l2videosrc device=/dev/video1 imx-capture-mode=4 fps-n=30 ! video/x-raw,width=1280,height=720,framerate=30/1 ! timeoverlay ! imxipuvideosink

When I want to sink it to local + rtmp server, I could see lot of latency and frame drops on local as well. Here is the pipeline that I am using:

gst-launch-1.0 imxv4l2videosrc device=/dev/video1 imx-capture-mode=4 fps-n=30 ! video/x-raw,width=1280,height=720,framerate=30/1 ! timeoverlay ! tee name="local" local. ! queue !  imxipuvideosink local. ! queue ! imxipuvideotransform ! imxvpuenc_h264 bitrate=8000  ! h264parse ! flvmux ! rtmpsink location=rtmp://192.168.0.56/live

Any clue?

0 项奖励
回复
2 回复数

803 次查看
Yuri
NXP Employee
NXP Employee

Hello,

   I think, it makes sense to insert queue elements (buffers) in the stream.


Have a great day,
Yuri

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

0 项奖励
回复

803 次查看
harshal_patel
Contributor II

Yuri‌ Can you please help here?

0 项奖励
回复