streaming video using gstreamer on local + rtmp server

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

streaming video using gstreamer on local + rtmp server

2,973 Views
harshal_patel
Contributor II

Hello,

I am trying capture a stream from local video and show it to local display as well as want to stream the same on RTMP server.

I am expecting no latency (at least, on a local display).

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 stream 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 suggestions/clue?

Labels (4)
0 Kudos
1 Reply

2,089 Views
igorpadykov
NXP Employee
NXP Employee

Hi Harshal

seems gstreamer-imx used in the case, it is not supported by nxp, issue can be posted on
gstreamer-imx github page

Issues · Freescale/gstreamer-imx · GitHub 

Alternatively one can try nxp plugins using attached Linux Guide sect.7.3.14 RTSP

streaming server, more documentation can be found on

i.MX Software|NXP 

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

0 Kudos