storyboard.fflocate module

Check existence of ffmpeg and ffprobe.

Routines

guess_bins() Guess ffmpeg and ffprobe binary names based on OS.
check_bins(bins) Check existance of ffmpeg and ffprobe binaries.

storyboard.fflocate.check_bins(bins)[source]

Check existance of ffmpeg and ffprobe binaries.

Parameters:

bins : tuple

A tuple (ffmpeg_bin, ffprobe_bin)` of the binary names/paths. Either of the two can be None, in which case the corresponding binary is not checked.

Returns:

True

If check is successful.

Raises:

OSError

If check fails.

storyboard.fflocate.guess_bins()[source]

Guess ffmpeg and ffprobe binary names based on OS.

Returns:

bins : tuple

A tuple (ffmpeg_bin, ffprobe_bin) of two strings, where ffmpeg_bin is the guessed ffmpeg binary, and ffprobe_bin is the guessed ffprobe binary.