ffmpex v0.2.1 FFprobe
Execute ffprobe CLI commands.
ffprobeis a simple multimedia streams analyzer. You can use it to output all kinds of information about an input including duration, frame rate, frame size, etc. It is also useful for gathering specific information about an input to be used in a script.
Summary
Functions
Get the duration in seconds, as a float.
If no duration (e.g., a still image), returns :no_duration
Get the “format” map, containing general info for the specified file, such as number of streams, duration, file size, and more
Get a list of formats for the file
Types
format_map :: %{optional(binary) => binary}
Functions
Specs
duration(binary | format_map) :: float | :no_duration
Get the duration in seconds, as a float.
If no duration (e.g., a still image), returns :no_duration
Specs
format(binary) :: format_map
Get the “format” map, containing general info for the specified file, such as number of streams, duration, file size, and more.
Specs
format_names(binary | format_map) :: [binary]
Get a list of formats for the file.