Skip to content

probe

Functions:

Name Description
probe

Run ffprobe on the given file and return a JSON representation of the output

probe

probe(
    filename: str | Path,
    cmd: str = "ffprobe",
    timeout: int | None = None,
    **kwargs: Any
) -> dict[str, Any]

Run ffprobe on the given file and return a JSON representation of the output

Parameters:

Name Type Description Default
filename str | Path

The path to the file to probe.

required
cmd str

The ffprobe command to run. Defaults to "ffprobe".

'ffprobe'
timeout int | None

The timeout for the command. Defaults to None.

None
**kwargs Any

The arguments for the ffprobe command.

{}

Returns:

Type Description
dict[str, Any]

The JSON representation of the ffprobe output.