Audio and video converter

Would be cool to have an audio and video converter in n8n. I researched a bit and it seams fairly easy to implement.

Converter: ffmpeg Documentation
NPM package of the converter: ffmpeg-static - npm

Hi @jwillmer.

What’s the problem you’re trying to solve with the converter?

I have a PTT system that sends me opus-files and I like to use Rhasspy for voice command recognition. But Rhasspy only works with wav-files so I need to convert them.

Yes, there are online converters but both, n8n and Rhasspy, work offline so it would be nice to also offline convert the audio files.

You can do that by creating a custom node that uses the following npm package: https://www.npmjs.com/package/ffmpeg

Also, you might need to install ffmpeg to the machine where N8N is installed (you can use the Docker image and add some dependencies there).

If anyone makes a FFmpeg n8n node please post it here

I’ve been searching for some node that optimizes videos, but found none

I’ve looked into it just now
Apparently it requires external npm javascript libraries:

This can not be done in the cloud
And the link explaining how to do it for self-hosted deployments is broken… (This one: Environment Variables Overview | n8n Docs)

At this point I gave up and decided to do it as a telegram bot / simple web service for myself

1 Like

Check out my Patreon to see if any of this fits your needs. I have FFMPEG working in N8N and use it to automatically create videos. It’s a 2 stage process, and requires you to install FFMPEG into the docker instance.

But basically these FFMPEG Stages will first take a group of images and audio files and combine them into small videos that match the length of the audio file. Then the second stage combines these videos in chronological order into a single video.

My Patreon is: Lazy Media’s Patreon