what is the codec for mp4 videos in python OpenCV

前端 未结 5 794
盖世英雄少女心
盖世英雄少女心 2020-12-05 07:44
fourcc = cv2.cv.CV_FOURCC(*\'XVID\')

The above line is used for avi video. In the same fashion, which codec do we use for mp4 videos in Ubuntu?

5条回答
  •  醉梦人生
    2020-12-05 08:03

    I had to reinstall ffmpeg and compile opencv from source in order to get this working. I documented the steps in this blog post.

提交回复
热议问题