Docker image baseada na imagem oficial do n8n, com suporte adicional ao FFmpeg.
Ideal para fluxos de automação no n8n que envolvem manipulação de áudio e vídeo.
Docker image based on the official n8n image, with FFmpeg support.
Perfect for automation workflows in n8n that involve audio and video processing.
- Latest stable n8n
- FFmpeg installed via
apk(Alpine base)
docker build -t renatomb/n8n-ffmpeg .
docker run --rm -it -p 5678:5678 renatomb/n8n-ffmpegservices:
n8n:
image: renatomb/n8n-ffmpeg:latest
ports:
- "5678:5678"
volumes:
- n8n_data:/home/node/.n8n
environment:
- N8N_HOST=localhost
- N8N_PORT=5678
- N8N_PROTOCOL=http
- WEBHOOK_URL=http://localhost:5678/
volumes:
n8n_data:Access: http://localhost:5678
Built and published for amd64 and arm64 (runs on x86_64 servers and ARM devices like Raspberry Pi).
This project follows the n8n license and only adds FFmpeg support.
This example demonstrates how to merge multiple video files from URLs into a single video using n8n and FFmpeg. Considering that the video files are in MP4 format and have the same codec and resolution. In this example we assume that we have a /data folder mounted as a volume in the n8n container to store temporary files.
- Create a new workflow in n8n.
- Add a "HTTP Request" node to download a video file, choose "GET" method and provide the video URL, Options - Response Format: File.
- Add a "Read / Write files From Disk" node to read the downloaded file, set Operation to "Write file to disk", File and path name:
/data/part_{{$itemIndex}}.mp4. - Add a "Execute command node" to generate a text file with the list of videos to merge, set Command to:
for f in /data/part_*.mp4; do echo "file '$f'" >> /data/list.txt; doneor
ls -1v /data/part*.mp4 | awk '{print "file \x27" $0 "\x27"}' > /data/list.txt- Add another "Execute command" node to merge the videos using FFmpeg, set Command to:
ffmpeg -f concat -safe 0 -i /data/list.txt -c copy /data/output.mp4- Add a final "Read / Write files From Disk" node to read the merged video file, set Operation to "Read file from disk", File path:
/data/output.mp4.