Wrapper scripts for FFmpeg and FFprobe that run these tools inside a Docker container. These scripts allow you to use FFmpeg and FFprobe without installing them directly on your system. Goal: enable speech models like Whisper without installing ffmpeg + depedencies on the host.
- Run FFmpeg and FFprobe commands using Docker
- Handle input from stdin and output to stdout
- Process local files by temporarily copying them into the Docker container
- Copy output files back to the host system
- Support for all FFmpeg and FFprobe command-line options
- Docker
- Zsh shell
- Clone this repository or download the script files.
- Make the scripts executable:
chmod +x ffmpeg ffprobe
- Add the directory containing these scripts to your PATH:
export PATH=$PATH:.
Use these scripts just as you would use the regular ffmpeg and ffprobe commands. The scripts will handle the Docker setup and file management automatically.
./ffmpeg -i input.mp4 -c:v libx264 -crf 23 -c:a aac -b:a 128k output.mp4
./ffprobe -v quiet -print_format json -show_format -show_streams input.mp4
- The scripts create a temporary directory to store input and output files.
- Input files are copied to this temporary directory.
- The FFmpeg or FFprobe command is run inside a Docker container, with the temporary directory mounted as a volume.
- Output files are copied back to the current directory.
- The temporary directory is cleaned up.
- The scripts use the
jrottenberg/ffmpeg
Docker image. - Input and output via stdin/stdout is supported.
- File paths in the command arguments are automatically adjusted for use within the Docker container.