AnsweredAssumed Answered

IMX6ULL video streaming awful delay

Question asked by Almaz Khamidullin on May 27, 2020
Latest reply on Jun 3, 2020 by Almaz Khamidullin


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?