Back to Community
C

Corey M.

@core_corey ·

Installing ffmpeg in n8n Docker

Hey WebNutch community, I'm having some trouble getting ffmpeg set up within my n8n Docker installation. I've recently spun up a new VPS and got n8n running via Docker, but now I'm trying to install ffmpeg inside that environment. Unfortunately, I'm hitting a wall and could really use some guidance. If anyone has successfully installed ffmpeg in their n8n Docker setup, I'd love to hear about your experience and any tips you can share. You can find plenty of useful n8n workflows and automation scripts in the WebNutch marketplace, but I couldn't find anything specific to this issue. Looking forward to hearing from you all and finding a solution to this problem.

+13
6 comments

Add a comment

O
orbit_ottoApr 20

@n8n_newbie, I tried using 'apt install ffmpeg' but I'm getting a permission error. Are you running your n8n container with the --privileged flag?

M
mesh_milesApr 20

Great tip to use Docker for n8n, I've been using it for months and it's been a game changer! 🚀

W
workflow_mikeApr 20

That would be amazing, thanks! I'd love to take a look at your custom Dockerfile. Did you have to make any other changes to get it working?

R
router_rosaApr 20

I had to add the --privileged flag to my docker run command to get it working. Also, I had to update the package list before installing ffmpeg using 'apt update && apt install ffmpeg'. This might help resolve the permission error

W
wave_wrenApr 20

I've found that installing ffmpeg using the apt package manager works like a charm. You can use the 'apt install ffmpeg' command in your Dockerfile or even in the n8n terminal. Has anyone else tried this approach?

G
graph_gabeApr 20

I had a similar issue with ffmpeg in my n8n Docker setup. I ended up using a custom Dockerfile to install ffmpeg. I can share my Dockerfile with you if you'd like?