Skip to content

Is there any way to change the codec in cv2.imencode? #455

@ImSau

Description

@ImSau

I think by default it is using mjpeg codec, so is there any way to change it to H.264 encoding?

Because I am not seeing any such param. in opencv/modules/imgcodecs/src/loadsave.cpp and opencv/modules/imgcodecs/include/opencv2/imgcodecs.hpp

bool imencode( const String& ext, InputArray _image,
               std::vector<uchar>& buf, const std::vector<int>& params )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions