mendevi.cmd

Allow to handle ffmpeg command line.

Classes

CmdFFMPEG(video, **kwargs)

Allow easy manipulation of a complete ffmpeg expression.

Details

class mendevi.cmd.CmdFFMPEG(video: Path | str, **kwargs: dict[str])[source]

Allow easy manipulation of a complete ffmpeg expression.

ffmpeg -y -hide_banner -loglevel verbose

Attributes

generallist[str]

The options immediately after ffmpeg and immediately before the decoder (read and write).

decodelist[str]

The options between -c:v and -i (read and write).

videopathlib.Path

The input video path (readonly).

vid_filterstr

The filter string after -vf (read and write).

encodelist[str]

The encoder name and options after -c:v (read and write).

outputlist[str]

The final arguments of the ffmpeg cmd (read and write).

Initialise the ffmpeg cmd.

Parameters

videopathlike

The input video path.

**kwargs: dict

See above.

generallist[str], str, optional

The options immediately after ffmpeg and immediately before the decoder.

decodelist[str], str, optional

The options between -c:v and -i.

vid_filterstr, optional

The filter string after -vf.

encode: list[str], str, optional

The encoder name and options after -c:v.

output: list[str], str, default=”-f null -”

The final arguments of the ffmpeg command, after the encoder description.