Opencv CV_FOURCC('F','L','V','1') not working?

谁都会走 提交于 2020-01-13 05:12:08

问题


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


回答1:


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!