Updated by Alexander Shishkov about 13 years ago
I want to write .flv file from Opencv and spent so much time on it...
OpenCV [[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 [[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 [[OpenCv]] create new.flv
I tried this to write avi file - THIS WORKS
CvVideoWriter [[CvVideoWriter]] *vdowriter = cvCreateVideoWriter(
"/path/converted.avi",
CV_FOURCC('M', 'J', 'P', 'G'),
20.0,
cvSize(640,480) );
Similarly I tried this to write flv file - THIS DOESNT WORKS
CvVideoWriter [[CvVideoWriter]] *vdowriter = cvCreateVideoWriter(
"/path/converted.flv",
CV_FOURCC('F', 'L', 'V', '1'),
25.0,
cvSize(640,480) );
OpenCV [[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 [[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 [[OpenCv]] create new.flv
I tried this to write avi file - THIS WORKS
CvVideoWriter [[CvVideoWriter]] *vdowriter = cvCreateVideoWriter(
"/path/converted.avi",
CV_FOURCC('M', 'J', 'P', 'G'),
20.0,
cvSize(640,480) );
Similarly I tried this to write flv file - THIS DOESNT WORKS
CvVideoWriter [[CvVideoWriter]] *vdowriter = cvCreateVideoWriter(
"/path/converted.flv",
CV_FOURCC('F', 'L', 'V', '1'),
25.0,
cvSize(640,480) );