Could not read frame
See original GitHub issueI am trying to run object_detection_webcam.py.
[ WARN:0] videoio(MSMF): OnReadSample() is called with error status: -1072875772 [ WARN:0] videoio(MSMF): async ReadSample() call is failed with error status: -1072875772 [ WARN:1] videoio(MSMF): can't grab frame. Error: -1072875772 Could not read frame
It is unable to read the frame. Could you help me understand what went wrong?
Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:31 (13 by maintainers)
Top Results From Across the Web
RuntimeError: Could not read frame: · Issue #168 - GitHub
Trying to run: imageio.mimread('http://techslides.com/demos/sample-videos/small.mp4') I get: Traceback (most recent call last): File " " ...
Read more >RuntimeError: Frame is 0 bytes, but expected 691200
Try to reupload the file and then try it again. If this doesn't solve the issue try changing the video fps and bitrate...
Read more >Frame reading errors with ffmpeg - Google Groups
mimread(*args) but it returned a "CannotReadFrameError", reading 0 bytes against an expected n bytes. I've noticed that it was always the 1400th frame...
Read more >Error: could not read video frame (-101) - DCP-o-matic
Hi, I'm trying to transcode an encrypted 4K DCP to an open 4K DCP, but I keep getting the error message mentioned in...
Read more >imageio.plugins.ffmpeg
Default None (i.e. read at the file's own fps). One can use this for files with a variable fps, or in cases where...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello @shrybht ,
object_detection.py accepts an input image to apply object detection. Usage is mentioned at the top of the file as comment.
Regarding object_detection_webcam.py, I guess the issue is in accessing webcam at platform level. Are you working with Windows ?
Have a look at this issue on OpenCV forum.
Try replacing
cv2.VideoCapture(0)
withcv2.VideoCapture(cv2.CAP_DSHOW)
. Let me know if it works.Where can I find .cvlib folder in windows?