Spaces:
Sleeping
Sleeping
Download iris/pipeline/ffmpeg.py from NextNeural/IRIS: direct link, hf CLI and curl.
- Browser
- Download file 483 Bytes
-
https://huggingface.co/spaces/NextNeural/IRIS/resolve/main/iris/pipeline/ffmpeg.py
- Command line
-
hf download hf://spaces/NextNeural/IRIS/iris/pipeline/ffmpeg.py
-
curl -L -o ffmpeg.py https://huggingface.co/spaces/NextNeural/IRIS/resolve/main/iris/pipeline/ffmpeg.py
483 Bytes
| from __future__ import annotations | |
| import shutil | |
| def resolve_ffmpeg_executable() -> str: | |
| executable = shutil.which("ffmpeg") | |
| if executable: | |
| return executable | |
| try: | |
| import imageio_ffmpeg | |
| return imageio_ffmpeg.get_ffmpeg_exe() | |
| except Exception as exc: | |
| raise RuntimeError( | |
| "ffmpeg is required for video processing. Install ffmpeg on PATH or install " | |
| "the Python package 'imageio-ffmpeg'." | |
| ) from exc | |