Sign inSign up

ervannur/n8n-automation

By ervannur

β€’Updated 9 months ago

n8n image with yt-dlp and ffmpeg library

Image
0

2.6K

ervannur/n8n-automation repository overview

⁠🐳 ervannur/n8n-automation

Custom Docker image of n8n⁠ pre-installed with yt-dlp⁠ and ffmpeg⁠, ideal for workflows involving audio/video downloading and conversion.


β πŸ“¦ What’s Included

  • βœ… n8n (workflow automation platform)
  • βœ… ffmpeg (video/audio processing)
  • βœ… yt-dlp (YouTube/media downloader, fork of youtube-dl)
  • βœ… Alpine-based lightweight image
  • βœ… Works seamlessly with Docker Compose

β πŸš€ Use Cases

This image is perfect for workflows that involve:

  • Downloading videos or audio from YouTube and other platforms
  • Extracting or converting audio using ffmpeg
  • Automating media processing with n8n

⁠πŸ§ͺ Quick Test Example (in n8n)

Add an Execute Command node:

yt-dlp --version && ffmpeg -version

βœ… You should see version output from both tools.

To download audio and convert it:

yt-dlp -f bestaudio --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=dQw4w9WgXcQ

β πŸ›  How to Use (Docker Compose)

version: '3.8'

volumes:
  db_storage:
  n8n_storage:

services:
  postgres:
    image: postgres:16
    restart: always
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_DB=n8n
    volumes:
      - db_storage:/var/lib/postgresql/data

  n8n:
    image: ervannur/n8n-automation:1.80.2
    restart: always
    environment:
      - DB_TYPE=postgresdb
      - DB_POSTGRESDB_HOST=postgres
      - DB_POSTGRESDB_PORT=5432
      - DB_POSTGRESDB_DATABASE=n8n
      - DB_POSTGRESDB_USER=postgres
      - DB_POSTGRESDB_PASSWORD=postgres
      - N8N_BASIC_AUTH_ACTIVE=true
      - N8N_BASIC_AUTH_USER=admin
      - N8N_BASIC_AUTH_PASSWORD=secret
    ports:
      - 5678:5678
    volumes:
      - n8n_storage:/home/node/.n8n
    depends_on:
      - postgres

β πŸ— Dockerfile Summary

FROM n8nio/n8n:1.80.2

USER root

RUN apk update && \
    apk add --no-cache ffmpeg curl python3 py3-pip && \
    pip3 install --break-system-packages --upgrade yt-dlp

USER node

🧠 Based on Alpine, lightweight and fast. Ensures yt-dlp and ffmpeg are globally available for use in workflows.


β πŸ“‚ License

Tag summary

Content type

Image

Digest

sha256:45067b9d8…

Size

734.3 MB

Last updated

about 1 year ago

docker pull ervannur/n8n-automation