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
I know this is quite old, but I'll add my experience to this wall incase future people have this problem.
I encountered this using the PIM1 fourCC for output - my problem was solved when I changed from
video_output = cvCreateVideoWriter("disparity_output.mov", CV_FOURCC('P', 'I', 'M', '1'), 32, size, 0);
to:
video_output = cvCreateVideoWriter("disparity_output.mkv", CV_FOURCC('P', 'I', 'M', '1'), 32, size, 0);
changing the output path to have a file extension that was acceptable (or so I assume). Not sure if it helps, but it worked for me.
来源:https://stackoverflow.com/questions/9063746/opencv-cv-fourccf-l-v-1-not-working