ffmpeg Node icon

ffmpeg Node

n8n Node for some Ffmpeg functionality

Actions11

Overview

This node provides video processing capabilities specifically for adding subtitles to videos. It supports two subtitle embedding methods:

  • Softcoded: Subtitles are added as a separate selectable track, allowing viewers to toggle them on or off.
  • Hardcoded: Subtitles are permanently burned into the video frames.

Common scenarios include enhancing accessibility by adding subtitles to videos, preparing content for platforms that require embedded subtitles, or providing multiple subtitle options without altering the original video stream.

For example, you can input a video file and a subtitle file (such as an SRT file) and produce a new video with hardcoded subtitles for social media sharing or softcoded subtitles for streaming platforms.

Properties

Name Meaning
Video Input A valid video URL or the name of the input binary field containing the video file.
Subtitle Input A valid subtitle file URL or the name of the input binary field containing the subtitle file.
Video Output Name The name of the output binary field where the processed video file will be stored.
Add Method Method to add subtitles:
- Softcoded (subtitles as a separate selectable track)
- Hardcoded (subtitles burned into video)
Video Processing Options Optional settings for video encoding:
- Video Bitrate (number, e.g., 480)
- Frame Rate (fps, number, e.g., 480)
- Resolution (string, e.g., "640x480")

Output

The node outputs a binary video file in the specified output binary field. This file contains the original video with subtitles added according to the selected method (softcoded or hardcoded). The output binary data represents the processed video ready for further use or export.

Dependencies

  • Requires access to an FFMPEG processing service or API, authenticated via an API key credential configured in n8n.
  • The node depends on external video and subtitle files accessible either via URLs or provided as binary inputs.
  • Proper configuration of the FFMPEG API credentials within n8n is necessary for operation.

Troubleshooting

  • Invalid Input URLs or Binary Fields: Ensure that the video and subtitle inputs are correctly specified as valid URLs or existing binary fields in the workflow.
  • Unsupported Subtitle Formats: The subtitle file must be in a supported format (commonly SRT). Unsupported formats may cause processing errors.
  • API Authentication Errors: Verify that the API key credential for the FFMPEG service is correctly set up and has sufficient permissions.
  • Processing Failures: If the video processing fails, check the video bitrate, frame rate, and resolution options for valid values.
  • Output Field Conflicts: Make sure the output binary field name does not conflict with existing fields to avoid overwriting data unintentionally.

Links and References

Discussion