cutcutcodec.core.io
Manage the input/output layer.
Functions
|
Open the media file with the appropriate reader. |
|
Alias to |
Details
- cutcutcodec.core.io.read(filename: str | bytes | Path, **kwargs) Node[source]
Open the media file with the appropriate reader.
Parameters
- filenamepathlike
The path to the file to be decoded.
- **kwargsdict
Transmitted to
cutcutcodec.core.io.read_ffmpeg.ContainerInputFFMPEGColororcutcutcodec.core.io.read_image.ContainerInputImageorcutcutcodec.core.io.read_svg.ContainerInputSVG.
Returns
- containercutcutcodec.core.classes.container.ContainerInput
The appropriated instanciated container, according to the nature of the file.
Raises
- cutcutcodec.core.exceptions.DecodeError
If the file can not be decoded by any reader.
- cutcutcodec.core.io.write(*args, **kwargs)[source]
Alias to
cutcutcodec.core.io.write_ffmpeg.ContainerOutputFFMPEG.
Modules
Pixel format convertion to keep all accuracy and taking care colorspace. |
|
Decode the streams of a multimedia file based on ffmpeg. |
|
Delegate the reading to the module read_ffmpeg, and add a filter to manage the colorspace. |
|
Read an image with opencv. |
|
Decode the svg vectorial images based on cairosvg lib. |
|
Combine several stream to yield frame in monotonic order. |
|
Management of the encoding of a multimedia stream based on PyAV. |