npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-ffmpeg-cli

v0.6.0

Published

Run any FFmpeg command directly in n8n — no wrappers, just raw FFmpeg

Readme

n8n-nodes-ffmpeg-cli

Run any FFmpeg command directly inside your n8n workflows. No wrappers, no abstractions — just raw FFmpeg power.

Why this node?

Other FFmpeg nodes try to wrap FFmpeg behind dropdowns and limited options. This node takes a different approach: you write the FFmpeg command, it runs it. If you know FFmpeg, you already know how to use this node.

  • Direct FFmpeg command execution — no hidden magic
  • Support for multiple binary inputs ({video}, {audio}, {image}, or any name)
  • Automatic temp file handling and cleanup
  • Works with any FFmpeg operation: transcode, merge, trim, overlay, extract, convert — anything

Installation

In your n8n instance:

  1. Go to Settings → Community Nodes
  2. Click Install
  3. Enter n8n-nodes-ffmpeg-cli
  4. Click Install

Requirement: FFmpeg must be installed on the machine/container running n8n.

How it works

  1. Binary inputs from previous nodes are written to temp files
  2. Placeholders in your command are replaced with actual file paths
  3. FFmpeg runs the command
  4. Output file is captured as binary data for the next node

Parameters

| Parameter | Description | Default | |-----------|-------------|---------| | FFmpeg Command | Your FFmpeg arguments with placeholders | -i {input} -c:v copy -c:a aac {output} | | Input Binary Properties | Comma-separated binary property names | data | | Output File Extension | Extension for the output file | mp4 | | Output Binary Property | Binary property name for the result | data | | Output File Name | File name for the output | output.mp4 | | Timeout (seconds) | Max execution time | 120 |

Placeholders

| Placeholder | Resolves to | |-------------|-------------| | {input} | First binary input file path | | {output} | Output file path | | {data} | Binary property named "data" | | {video} | Binary property named "video" | | {audio} | Binary property named "audio" | | {anyname} | Binary property named "anyname" |

Any binary property name wrapped in curly braces becomes a placeholder.

Examples

Replace video audio with a new track

Input Binary Properties: video, audio

-i {video} -i {audio} -c:v copy -c:a aac -map 0:v:0 -map 1:a:0 -shortest {output}

Convert video to GIF

Output File Extension: gif

-i {input} -vf "fps=10,scale=320:-1" -loop 0 {output}

Extract audio from video

Output File Extension: mp3

-i {input} -vn -acodec libmp3lame -q:a 2 {output}

Trim video (first 30 seconds)

-i {input} -t 30 -c copy {output}

Add image watermark to video

Input Binary Properties: video, watermark

-i {video} -i {watermark} -filter_complex "overlay=10:10" -c:a copy {output}

Resize video to 720p

-i {input} -vf "scale=-2:720" -c:a copy {output}

Merge audio and image into video

Input Binary Properties: image, audio Output File Extension: mp4

-loop 1 -i {image} -i {audio} -c:v libx264 -tune stillimage -c:a aac -b:a 192k -shortest {output}

Convert to WebM

Output File Extension: webm

-i {input} -c:v libvpx-vp9 -crf 30 -b:v 0 -c:a libopus {output}

Output

On success, the node outputs:

{
  "success": true,
  "command": "ffmpeg -y -i /tmp/ffmpeg_data_xxx.mp4 -c:v copy -c:a aac /tmp/ffmpeg_out_xxx.mp4",
  "outputSize": 1234567
}

Plus the binary output file attached to the specified binary property.

On failure:

{
  "success": false,
  "error": "Error message",
  "stderr": "FFmpeg stderr output"
}

Docker / Self-hosted

If your n8n runs in Docker, make sure FFmpeg is installed in the container:

# Add to your Dockerfile
RUN apt-get update && apt-get install -y ffmpeg

Or use an n8n image that already includes FFmpeg.

License

MIT