Skip to main content

from_cli_args

Function from_cli_args 

Source
pub fn from_cli_args<S: AsRef<str>>(
    args: &[S],
) -> Result<FfmpegContext, CliError>
Expand description

Builds a ready-to-start FfmpegContext from ffmpeg-style argv tokens.

This is the primary form: argv has zero quoting ambiguity (the same shape ffmpeg.wasm chose). A leading ffmpeg / ffmpeg.exe token is tolerated and stripped.

The command must classify completely against the compatibility manifest AND match a verified (golden-backed) shape, and the linked FFmpeg must be a verified runtime profile — otherwise a typed CliError is returned before any I/O. See the module docs for the exact surface.