How to make opencv support custom codes for videos for reading

asked 2017-07-08 09:02:35 -0500

Ajai gravatar image

updated 2017-07-08 09:45:20 -0500

Hi, I wrote a small test sample program to open an avi file. The program is as show when i tried to open the file, it is always failing. I tried another file downloaded from the internet and that successfully opened. It is because the file that i was initially trying to open is created with a custom code and the second one( which opened successfully), was written with a codec IV41. I want to know how can i make my OpenCV to support custom built codecs.

     VideoCapture input;// = VideoCapture( filename );
     bool status = input.open( filename);
     if (!input.isOpened()) return 0;
edit retag flag offensive close merge delete