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 write method of the cutcutcodec.core.io.write_ffmpeg.ContainerOutputFFMPEG class.

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 to cutcutcodec.core.filter.video.colorspace.FilterVideoColorspace.