tags:

views:

224

answers:

2

Hi to all!

i've a problem with openCV library under MacOs 10.4. When I try to execute this row to save some frame captured from webcam

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

i can see this on stdrr:

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

Any idea? If I try to save some images it works fine.

thanks to all! Andrea

+1  A: 

Does your program have write permissions in the directory you're running from?

Have you tried putting in an absolute address to, say, your home folder?

What happens if you change the file name, or the FourCC code?

Mark Pim
Yes, the program can write in the directory (I can save single frame on JPG)I've tried to put full pathI don't try with FourCC but, I've to use quicktime (my team leader request)
Andrea Girardi
+2  A: 

I've used full path and it works fine!

thanks to all!

Andrea Girardi