Skip to content

Can you support "H264" codec? #299

@pospospos2007

Description

@pospospos2007

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions