我正在尝试处理视频流中的帧,并将其作为新视频处理.
这就是我正在做的事情:
fourcc = cv2.VideoWriter_fourcc(*'XVID')
out = cv2.VideoWriter('Videos/output.mp4',fourcc, fps, (1080,1080))
Run Code Online (Sandbox Code Playgroud)
我一直在:
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/' ???'
Run Code Online (Sandbox Code Playgroud)
我想我使用了错误的fourcc值...我应该使用哪一个?我一直在尝试很多.
我正在使用Ubuntu 16.04,Python 2.7.11和OpenCV 3.1.0