Hi all,
I need to create video using the VP09 (or VP08) codec, but when I pass this configuration to VideoWriter, it newer open created file.
I tried to change output video format from "avi" to "mp4", but nothing happens. Uncompressed video (fourcc argument replaced by 0) works fine.
I'm using C++ and openCV as a library, running Windows 10 and Visual Studio 2015.
Any idea whot can be wrong?
Thanks
My code:
#include "opencv2\core\cvdef.h"
#include "opencv2\core.hpp"
#include "opencv2\videoio.hpp"
cv::VideoWriter *outputVideo;
cv::Size S = cv::Size(width, height);
int fps = 10;
cv::String name = "C:\\Users\\pavlak\\Desktop\\movie.avi";
outputVideo = new cv::VideoWriter(name, cv::VideoWriter::fourcc('V', 'P', '0', '9'), fps, S, true);
if (outputVideo->isOpened()){
// newer gets there
}