mendevi.cmd.CmdFFMPEG¶
- class mendevi.cmd.CmdFFMPEG(video: Path | str, general: list[str] | str | None = None, decode: list[str] | str | None = None, vid_filter: str = '', encode: list[str] | str | None = None)[source]¶
Allow easy manipulation of a complete ffmpeg expression.
ffmpeg -y -hide_banner -loglevel verbose
Attributes¶
- decodelist[str]
The options between -c:v and -i (read and write).
- vid_filterstr
The filter string after -vf (read and write).
- generallist[str]
The options immediately after ffmpeg and immediately before the decoder (read and write).
- videopathlib.Path
The input video path (readonly).
- encodelist[str]
The encoder name and options after -c:v (read and write).
Initialise the ffmpeg cmd.
Parameters¶
- videopathlike
The input video path.
- 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.