Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
FURYFOR opened this issue Nov 21, 2024 · 3 comments
Open

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

FURYFOR opened this issue Nov 21, 2024 · 3 comments
Labels

Comments

@FURYFOR
Copy link

FURYFOR commented Nov 21, 2024

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

@pandada-99
Copy link

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

@Klu1d
Copy link

Klu1d commented Jan 4, 2025

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

@asmorkalov
Copy link
Collaborator

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants