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

被刻印的时光 ゝ 提交于 2019-12-04 14:06:39

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.

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