in mapillary_tools/ffmpeg.py [0:0]
def probe_video_streams(video_path: str):
if not os.path.isfile(video_path):
raise exceptions.MapillaryFileNotFoundError(
f"Video file not found: {video_path}"
)
output = run_ffprobe_json(
[
"-loglevel",
"quiet",
"-show_streams",
"-hide_banner",
video_path,
]
)
streams = output.get("streams", [])
return [s for s in streams if s["codec_type"] == "video"]