c - OpenCV Video capture and fps problem -
I'm capturing video from my webcam using OpenCV on MacOSX. It works fine, but when I If I try to play my captured video on Quicktime, then it plays very fast. That is, I capture with the camera for 10 seconds, but when I play on Quicktime, the video is 2 seconds. I I have tried to change the FPS from 25 to 10 and it works very well , But I'm sure this is not the right process: CVVideoWriter * writer = 0; Int isColor = 1; Int fps = 25; Int Frame W = 640; // 744 inch frame for firewire camera H = 480; The problem is that I still have to capture the webcam, but the real slope of the program is to capture the image from an external source connected to my Mac. / P> I am using this code to capture: for (;;) {cvGrabFrame (capture) image = cvRetrieveFrame (capture); CvWriteFrame (author, image); } Any hint? I'm also showing webcam output on cvNamedWindow, how can I improve the quality in this window? Thanks for the many! Andrea! It is possible that co...