cutcutcodec.core.compilation.export.compatibility.video_encodec_compatibility
- cutcutcodec.core.compilation.export.compatibility.video_encodec_compatibility(encodec: str, muxer: str, shape: tuple[int, int] | None = None, rate: Fraction | None = None, pix_fmt: str | None = None) str[source]
Test throw av the compatibility of the encoding video parameters.
Parameters
- encodecstr
The codec or the encoder name.
- muxerstr
The format name.
- shapetuple[int, int], optional
The shape of the frames of the encoded video.
- rateFraction, optional
The frame rate.
- pix_fmtstr, optional
The name of the pixel format used.
Returns
- codecstr
The name of the codec found.
Raises
- IncompatibleSettings
If it fails to encode or if the decoded parameters don’t matched.
Examples
>>> from cutcutcodec.core.compilation.export.compatibility import video_encodec_compatibility >>> video_encodec_compatibility("libx264", "mp4") 'h264' >>>