【发布时间】:2016-11-18 18:33:44
【问题描述】:
我正在尝试将视频流中的帧处理为新视频。
这就是我正在做的:
fourcc = cv2.VideoWriter_fourcc(*'XVID')
out = cv2.VideoWriter('Videos/output.mp4',fourcc, fps, (1080,1080))
我不断得到:
OpenCV: FFMPEG: tag 0x44495658/'XVID' is not supported with codec id 13 and format 'mp4 / MP4 (MPEG-4 Part 14)'
OpenCV: FFMPEG: fallback to use tag 0x00000020/' ???'
我认为我使用了错误的fourcc 值...我应该使用哪一个?我已经尝试了很多。
我使用的是 Ubuntu 16.04、Python 2.7.11 和 OpenCV 3.1.0
【问题讨论】: