Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why do I have the following error when using videoWriter.write()?

OpenCV Error: Assertion failed (image->depth == 8) in writeFrame, file /home/yxchng/OpenCV/modules/videoio/src/cap_ffmpeg.cpp, line 272

However, i am able to use imwrite() to write each frame.

Can I know how I can solve this problem?