Skip to content

Add ffmpeg package to n8n Docker image for media processing#118

Open
SashkoMarchuk wants to merge 1 commit intomainfrom
feature/add-ffmpeg-to-n8n
Open

Add ffmpeg package to n8n Docker image for media processing#118
SashkoMarchuk wants to merge 1 commit intomainfrom
feature/add-ffmpeg-to-n8n

Conversation

@SashkoMarchuk
Copy link
Contributor

@SashkoMarchuk SashkoMarchuk commented Feb 16, 2026

Click Up Task: https://app.clickup.com/t/86c7xzdpc

Summary by CodeRabbit

  • Chores
    • Updated system dependencies to enable enhanced media processing capabilities.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

CodeRabbit CodeRabbit

🤖 CodeRabbit AI Review Available

To request a code review from CodeRabbit AI, add [coderabbit-ai-review] to your PR title.

CodeRabbit will analyze your code and provide feedback on:

  • Logic and correctness
  • Security issues
  • Performance optimizations
  • Code quality and best practices
  • Error handling
  • Maintainability

Note: Reviews are only performed when [coderabbit-ai-review] is present in the PR title.

@coderabbitai
Copy link

coderabbitai bot commented Feb 16, 2026

📝 Walkthrough

Walkthrough

The Dockerfile.n8n is updated to include ffmpeg as an additional package in the apk package installation command, expanding the set of system dependencies bundled in the Docker image alongside git.

Changes

Cohort / File(s) Summary
Docker Configuration
Dockerfile.n8n
Added ffmpeg to the apk package installation command for system-level audio/video processing capabilities.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A whisker-twitch of joy, ffmpeg joins the fold,
Video dreams in Docker now, stories yet untold,
Multimedia magic flows through layers new and bright,
Building better containers with each compile light! 🎬✨

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add ffmpeg package to n8n Docker image for media processing' directly and accurately summarizes the main change: adding ffmpeg to the Dockerfile.n8n.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/add-ffmpeg-to-n8n

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
Dockerfile.n8n (1)

13-13: Pin ffmpeg to a specific version for reproducible builds.

git is pinned to 2.49.1-r0, but ffmpeg is unpinned. This inconsistency means the image isn't fully reproducible — a rebuild could pull a different ffmpeg version with breaking changes or vulnerabilities.

Proposed fix

First, find the current version available in the base image's Alpine release:

#!/bin/bash
# Check which Alpine version the base image uses and the available ffmpeg package version
docker run --rm n8nio/n8n:1.109.2 sh -c "cat /etc/alpine-release && apk info ffmpeg 2>/dev/null || apk list ffmpeg 2>/dev/null || apk search -e ffmpeg"

Then pin accordingly, e.g.:

-  apk add --no-cache git=2.49.1-r0 ffmpeg && \
+  apk add --no-cache git=2.49.1-r0 ffmpeg=<version> && \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant