Skip to main content

Generate & Translate Video Subtitles with OpenAI Whisper and LibreTranslate

Workflow preview

Workflow preview
100%
Generate & Translate Video Subtitles with OpenAI Whisper and LibreTranslate preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n template demonstrates how to automatically generate accurate subtitles from any video and optionally translate them into other languages. By combining FFmpeg, OpenAI Whisper, and LibreTran...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.httprequest, n8n-nodes-base.executecommand, n8n-nodes-base.readbinaryfile, n8n-nodes-base.writebinaryfile, n8n-nodes-base.merge, n8n-nodes-base.gmail, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Paul Abraham.

Original n8n.io source

1.1 Workflow description

Title
Generate & Translate Video Subtitles with OpenAI Whisper and LibreTranslate
Workflow name
Generate & Translate Video Subtitles with OpenAI Whisper and LibreTranslate

This n8n template demonstrates how to automatically generate accurate subtitles from any video and optionally translate them into other languages. By combining FFmpeg, OpenAI Whisper, and LibreTranslate, this workflow turns video audio into ready-to-use .srt subtitle files that can be delivered via email.

Use cases

  • Auto-generate subtitles for training or educational videos
  • Translate videos into multiple languages for global reach
  • Create accessibility-friendly content with minimal effort
  • Build a backend for media platforms to process subtitles automatically

Good to know

This workflow requires a self-hosted n8n instance since it uses the Execute Command node. FFmpeg is used for audio extraction and must be installed on the host machine. OpenAI Whisper (Local) is used for transcription, providing highly accurate speech-to-text results. LibreTranslate is used for translating subtitles into other languages.

How it works

  • Webhook Trigger – Starts when a video URL is received.
  • Download Video – Fetches the video file from the provided link.
  • Extract Audio (FFmpeg) – Separates audio from the video file.
  • Run Whisper (Local) – Transcribes the extracted audio into text subtitles.
  • Read SRT File – Loads the generated .srt subtitle file.
  • Merge Paths – Combines both original and translated subtitle flows.
  • Translate Subtitles (LibreTranslate) – Translates the .srt file into the target language.
  • Write Translated SRT – Creates a translated .srt file for delivery.
  • Send a Message (Gmail) – Sends the final subtitle file (original or translated) via email.

How to use

  • Clone this workflow into your self-hosted n8n instance.
  • Ensure FFmpeg and Whisper are installed and available via your server’s shell path.
  • Add your LibreTranslate service credentials for translation.
  • Configure Gmail (or another email service) to send subtitle files.
  • Trigger the workflow by sending a video URL to the webhook, and receive subtitle files in your inbox.

Requirements

  • Self-hosted n8n instance
  • FFmpeg installed and available on the server
  • OpenAI Whisper (Local) installed and callable via command line
  • LibreTranslate service with API credentials
  • Gmail (or any email integration) for delivery

Customising this workflow

  • Replace Gmail with Slack, Telegram, or Drive uploads for flexible delivery.
  • Switch LibreTranslate with DeepL or Google Translate for higher-quality translations.
  • Add post-processing steps such as formatting .srt files or embedding subtitles back into the video.
  • Use the workflow as a foundation for building a multi-language subtitle automation pipeline.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Webhook Trigger

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 1

Block 2 - Download Video

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 2

Block 3 - Extract Audio (FFmpeg)

Type / Role
n8n-nodes-base.executeCommand - executeCommand
Config choices
Version 1

Block 4 - Run Whisper (Local)

Type / Role
n8n-nodes-base.executeCommand - executeCommand
Config choices
Version 1

Block 5 - Read SRT File

Type / Role
n8n-nodes-base.readBinaryFile - readBinaryFile
Config choices
Version 1

Block 6 - Translate Subtitles (LibreTranslate)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 2

Block 7 - Write Translated SRT

Type / Role
n8n-nodes-base.writeBinaryFile - writeBinaryFile
Config choices
Version 1

Block 8 - Merge Paths

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 1

Block 9 - Send a message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 10 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate & Translate Video Subtitles with OpenAI Whisper and LibreTranslate
Complexity intermediate
Nodes 13
Categories Content Creation, Multimodal AI
Author Paul Abraham
Published 06 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9301/9301.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate & Translate Video Subtitles with OpenAI Whisper and LibreTranslate do?

This n8n template demonstrates how to automatically generate accurate subtitles from any video and optionally translate them into other languages. By combining FFmpeg, OpenAI Whisper, and LibreTran...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.