skvideo.io.ffprobe
skvideo.io.ffprobe¶get metadata by using ffprobe
Checks the output of ffprobe on the desired video file. MetaData is then parsed into a dictionary.
Path to the video file
Dictionary containing all header-based information about the passed-in source video.
For each codec type present in the file (e.g. video, audio,
subtitle), the dictionary contains two entries:
<type> — the first stream of that type (backward-compatible
with the pre-#165 single-stream behavior).
<type>_streams — a list of all streams of that type, in the
order ffprobe reported them. Use this when the file contains
multiple streams of the same codec type (issue #165).
Example for a file with one video stream and two audio streams:
info = ffprobe("foo.mkv")
info["video"] # first (and only) video stream
info["audio"] # first audio stream
info["audio_streams"] # list of both audio streams