Writing AVI files in OpenCV

1. Mac下的问题
 

CvVideoWriter *writer = cvCreateVideoWriter( 
           
"out.avi", 
            CV_FOURCC
(
'M', 'J', 'P', 'G'), 
            fps
,
 
            imgSize 
           
);
 

 

返回:

OpenCV ERROR: Internal error (Cannot create data reference from file name) in function icvCreateVideoWriter, cvcap_qt.cpp(1291) Terminating the application...

 

解决:

  在mac(10.4,10.5)下, 必须给出输出avi文件的全部路径

 

你可能感兴趣的:(Writing AVI files in OpenCV)