IMX6ULL video streaming awful delay

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

IMX6ULL video streaming awful delay

Contributor III


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


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:// --sout '#rtp{dst=,port=3334,sdp=rtsp://}'

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://

This is how we catch stream on server side:

vlc rtsp://

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

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:// &

0 Kudos

NXP Employee
NXP Employee

 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 

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

0 Kudos