opencv-python icon indicating copy to clipboard operation
opencv-python copied to clipboard

'cap = cv2.VideoCapture(trmp_url)' The loop prints an error

Open FURYFOR opened this issue 1 year ago • 3 comments

When I'm pulling the video stream with the code 'cap = cv2.VideoCapture(rtmp_url)', The error "[h264@00000181af45eac0] missing picture in access unit with size 56" has been reported. This rtmp can be played normally through VLC, may I ask how to solve it?

opencv-python: 4.10.0.84

image

FURYFOR avatar Nov 21 '24 09:11 FURYFOR

Hi, I have the same problem. How did you solve it?

pandada-99 avatar Dec 24 '24 04:12 pandada-99

If I understand correctly, some H264 frames (and frames in general) can be corrupted and need to be processed accordingly

7576457 avatar Jan 04 '25 20:01 7576457

OpenCV uses FFmpeg as default back-end. Please check the stream with ffplay tool. I observed the same issue when had troubles with network bandwidth and decoding speed.

asmorkalov avatar Jan 15 '25 13:01 asmorkalov