IMX6ULL video streaming awful delay

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX6ULL video streaming awful delay

1,133件の閲覧回数
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?

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,053件の閲覧回数
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 件の賞賛
返信

1,053件の閲覧回数
igorpadykov
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

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 件の賞賛
返信