VideoWriter.write() doesn't write anything

asked 2017-05-12 08:26:37 -0600

Guy78 gravatar image

What could be a problem if in C++ program VideoWriter.write() doesn't write anything. IsOpened() returns true. All parameters in VideoWriter.open() are surely correct, and frame size which is tried to write is same as given in VideoWriter.open().

Format is webm. CV_FOURCC('V', 'P', '9', '0')

No any runtime-errors. After VideoWriter.release() file size is 419 bytes and it contains proper EBML header (checked with mkvinfo), which video duration 0.

edit retag flag offensive close merge delete

Comments

Do other formats work: H264, MPEG2, MotionJPEG?

mshabunin gravatar imagemshabunin ( 2017-05-12 08:47:12 -0600 )edit

please try another codec, vp90 just does not work, though wikipedia says it should (with webm or mp4)

berak gravatar imageberak ( 2017-05-12 09:09:31 -0600 )edit