Expected behaviour
The original opencv version(4.2-dev) can support "H264" codec. however your version(4.2.0.32) doesn't.
Actual behaviour
write mp4 to file from webcam
Write here what went wrong.
not support H264 format codec
Steps to reproduce
python3:
codec = cv2.VideoWriter_fourcc(*'H264')
out = cv2.VideoWriter("output/11.mp4" , codec, fps, (frame_width, frame_height))
- example code
python3:
codec = cv2.VideoWriter_fourcc(*'H264')
out = cv2.VideoWriter("output/11.mp4" , codec, fps, (frame_width, frame_height))
- operating system
mac os 10.14
- architecture (e.g. x86)
x86
- opencv-python version
4.2.0.32
Expected behaviour
The original opencv version(4.2-dev) can support "H264" codec. however your version(4.2.0.32) doesn't.
Actual behaviour
write mp4 to file from webcam
Write here what went wrong.
not support H264 format codec
Steps to reproduce
python3:
codec = cv2.VideoWriter_fourcc(*'H264')
out = cv2.VideoWriter("output/11.mp4" , codec, fps, (frame_width, frame_height))
python3:
codec = cv2.VideoWriter_fourcc(*'H264')
out = cv2.VideoWriter("output/11.mp4" , codec, fps, (frame_width, frame_height))
mac os 10.14
x86
4.2.0.32