cutcutcodec.core.io.write¶
- cutcutcodec.core.io.write(streams: Iterable[Stream], filename: Path | str | bytes, colorspace: Colorspace | str | None = None, **kwargs)[source]¶
Create, write and encode the multimedia file.
This is a high-level version of the
writemethod of thecutcutcodec.core.io.write_ffmpeg.ContainerOutputFFMPEGclass.Parameters¶
- streamsiterable[Stream]
These are all the audio and video streams that will be present in the final container.
- filenamepathlike
The path to the media file to be encoded.
- colorspacestr or Colorspace, optional
The encoded colorspace, by default, it is
cutcutcodec.core.classes.colorspace.Colorspace.from_default_target(). Transmitted tocutcutcodec.core.filter.video.colorspace.FilterVideoColorspace.