cutcutcodec.core.io.read_av

Decode a video stream with libav.

Classes

FrameAnticipator(filename, idx, av_kwargs)

Accurate and predictive reader of raw frames.

Details

class cutcutcodec.core.io.read_av.FrameAnticipator(filename: Path, idx: int, av_kwargs: dict[str])[source]

Accurate and predictive reader of raw frames.

Initialise the Anticipator.

Parameters

filenamepathlib.Path

The path of the video file.

idxint

The absolute index of the video stream, including the position of all the other streams.

av_kwargsdict

Transmitted to av.open.