Updated by Alexander Shishkov almost 13 years ago

I want to write .flv file from Opencv and spent so much time on it...
OpenCV 2.3 Documentation says we can create flv file with this codec

CV_FOURCC('F','L','V','1')
but I am always getting this error.

[flv @ 0x9bf5000] Tag FLV1/0x31564c46 incompatible with output codec id '22'
Please help.... Currently I am using OpenCV 2.3 on Ubuntu 10.10

Try Pastebin code ( http://pastebin.com/HQEvbDCh ) ....Keep one test.avi file in same folder...Please check whether your OpenCV create new.flv

I tried this to write avi file - THIS WORKS
<pre><code class="c">


CvVideoWriter *vdowriter = cvCreateVideoWriter(
"/path/converted.avi",
CV_FOURCC('M', 'J', 'P', 'G'),
20.0,
cvSize(640,480) );
</code></pre>
Similarly I tried this to write flv file - THIS DOESNT WORKS
<pre><code class="c">


CvVideoWriter *vdowriter = cvCreateVideoWriter(
"/path/converted.flv",
CV_FOURCC('F', 'L', 'V', '1'),
25.0,
cvSize(640,480) );
</code></pre>

Back