python:3.13-slim with FFmpeg and Git preinstalled. Ideal for automated multimedia related tasks.
4.1K
A production-ready Docker image that combines Python 3.13 with FFmpeg and Git, providing a seamless environment for multimedia processing automation.
python-ffmpeg is a Docker image built on python:3.13-slim with FFmpeg and Git pre-installed and configured. It serves as a drop-in replacement for the standard Python slim image, but with multimedia processing capabilities built right in.
Setting up FFmpeg alongside Python applications can be time-consuming and error-prone, especially across different environments. This image eliminates the need to:
Perfect for developers working with:
# Run interactive Python shell with FFmpeg available
docker run -it eswardudi/python-ffmpeg python
# Run a Python script that uses FFmpeg
docker run --rm -v $(pwd):/app -w /app eswardudi/python-ffmpeg python your_script.py
# Execute FFmpeg directly
docker run --rm -v $(pwd):/media eswardudi/python-ffmpeg ffmpeg -i input.mp4 output.mp3
FROM eswardudi/python-ffmpeg:latest
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
CMD ["python", "main.py"]
version: '3.8'
services:
video-processor:
image: eswardudi/python-ffmpeg:latest
volumes:
- ./media:/app/media
- ./scripts:/app
working_dir: /app
command: python process_videos.py
import subprocess
# Batch convert videos
def convert_video(input_path, output_path):
cmd = [
'ffmpeg', '-i', input_path,
'-c:v', 'libx264',
'-c:a', 'aac',
'-y', output_path
]
subprocess.run(cmd, check=True)
python:3.13-slimlatest - Latest stable version3.13.3 - Python 3.13.3 with FFmpegIf you found this image helpful, please consider giving it a star! It helps others find the project and encourages ongoing improvements
If you found this image helpful, please consider giving it a star 🌟 ! It helps others find the project and encourages ongoing improvements.
Content type
Image
Digest
sha256:664c745d4…
Size
206.4 MB
Last updated
over 1 year ago
docker pull eswardudi/python-ffmpeg