Skip to content

RTSP stream cannot decode Mp4v video with -mt and threads > 1

Version 2.0.0 of VLC was able to play the RTSP stream from our DLINK DCS-5220 security cameras without issue.

As of version 2.0.1, this is no longer true. VLC does not give any errors, and appears to connect and buffer... but no video is actually displayed.

Version 2.0.0 reports the following codec information:

Stream 0
 type: video
 codec: mpeg-4 video (mp4v)
 resolution: 640x480
 frame rate: 1000
 decoded format:  planar 4:2:0 YUV
Stream 1
 type: audio
 codec: mpeg aac audio (mp4a)
 channels: stereo
 sample rate: 32000 hz

Version 2.0.1 reports the following codec information:

Stream 0
 type: video
 codec: mpeg-4 video (mp4v)
Stream 1
 type: audio
 codec: mpeg aac audio (mp4a)
 channels: stereo
 sample rate: 32000 hz

The 2.0.1 message log shows no errors, but the following warning is repeated many times per second:

 avcodec warning: cannot decode one frame (1952 bytes) 

[though the byte-value varies from frame to frame, it's generally 1850-2000 bytes]

Edited by Jean-Baptiste Kempf
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information