IMX6ULL video streaming awful delay

cancel
Showing results for 
Search instead for 
Did you mean: 

IMX6ULL video streaming awful delay

529 Views
almaz1c
Contributor III

Hi!

Have a custom device based on IMX6ULL and OV5640 camera module.

IMG_20200527_110141.jpg

We have working video streaming. IMX6ULL:

1.  gets raw camera data by CSI interface (80 Mbit/s)

2. encodes camera data using mpeg2 codec to <1Mbit/s

3. transmits resulted encoded stream to rtsp server by ethernet using ffmpeg utility.

This is our rtsp server setup:

vlc -vvv -I dummy rtp://0.0.0.0:3333 --sout '#rtp{dst=0.0.0.0,port=3334,sdp=rtsp://0.0.0.0:8080/test.sdp}'

This is how our device streams to server:

ffmpeg -s 720x480 -r 5 -framerate 15 -input_format uyvy422 -i /dev/video0 -framerate 5 -vcodec mpeg2video -b:v 192k -f rtp rtp://192.168.0.103:3333

This is how we catch stream on server side:

vlc rtsp://127.0.0.1:8080/test.sdp

We got 4 fps on 640x480 frame.

The problem is that stream we are getting on server side by last command has delay about 11 second. E.g. even occured on camera to be displayed on server after 11 seconds.

Server and device both placed in local network through the common TP-Link ethernet gateway.

So I am wondering about possible issue of that delay. Is it problem with stream encoding, delay on ethernet line, using rtsp protocol or something else? Has anyone experience of video-streaming by IMX6ULL processor?

Labels (1)
0 Kudos
2 Replies

449 Views
almaz1c
Contributor III

Finally we got <3 seconds delay using following arguments:

ffmpeg -r 15 -s 320x240 -vsync 0 -an -input_format uyvy422 -i /dev/video0 -c:v mpeg2video -b:v 64k -an -f rtp rtp://192.168.0.105:3333 &

0 Kudos

449 Views
igorpadykov
NXP TechSupport
NXP TechSupport

 Hi Almaz

i.MX6UL/ULL have not hardware vpu so video performance is poor, it

is expected. Suggest to use some other processors, like i.MX6Q with

hardware video accelerator for obtaining good video characteristics.

May be useful to look at below comparison table

https://www.nxp.com/docs/en/brochure/FLYRIMXPRDCMPR.pdf 

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

0 Kudos