OpenCV Video capture and fps problem

前端 未结 4 1808
时光取名叫无心
时光取名叫无心 2021-01-06 23:53

I\'m capturing video from my webcam using OpenCV on MacOSX. It works fine but when I try to play on QuickTime my captured video it plays too fast. i.e. I capture from camera

4条回答
  •  温柔的废话
    2021-01-07 00:06

    Use cvCreateVideoWriter(filename, fourcc, fps, frame size, is color) with fps = 10 , fps = 20 and different values. If you already know the fps value of frames coming from camera use that.

    Problem is that you are getting less frames per second from camera and you're writing more frames to video file

    Regards, Saleh.

提交回复
热议问题