Ask Your Question
0

Error in video writing tutorial

asked 2020-01-12 07:40:03 -0500

Gourav gravatar image

when i ran the code from video writing tutorial I got the followign error

[ERROR:0] global C:\opencv\source\opencv-4.1.2\opencv-4.1.2\modules\videoio\src\cap.cpp (392) open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.1.2) C:\opencv\source\opencv-4.1.2\opencv-4.1.2\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): MegamindR.avi in function 'icvExtractPattern'
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-01-12 07:47:08 -0500

berak gravatar image

updated 2020-01-14 03:14:57 -0500

it probably means:

you don't have opencv_videoio_ffmpeg412.dll on your path (this contains the actual video codecs).

since it could not find it, it tried to fall back to read an image sequence instead, and this lacked some pattern, like img%05d.png

remedy:

append the folder containing opencv_videoio_ffmpeg412.dll to your PATH env var.

(again, error is already reading the video, not writing)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-01-12 07:40:03 -0500

Seen: 49 times

Last updated: Jan 14