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 selectable track)
- Hardcoded (burned in)
Video Processing Options Collection of optional video settings:
- Video Bitrate (number)
- Frame Rate (fps) (number)
- Resolution (string, e.g., "640x480")

Output

The node outputs a binary video file with the subtitles added according to the selected method. The output is stored in the specified binary field name (Video Output Name).

  • The json output typically contains metadata about the processed video.
  • The binary output contains the actual video file with subtitles embedded either softly or hardcoded.

Dependencies

  • Requires access to an FFMPEG API service configured via an API key credential in n8n.
  • The node depends on the external FFMPEG processing backend to perform video transcoding and subtitle embedding.
  • Proper URLs or binary inputs for both video and subtitle files must be provided.

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 format supported by the FFMPEG backend (commonly SRT or similar).
  • API Authentication Errors: Verify that the API key credential for the FFMPEG service is correctly set up and has sufficient permissions.
  • Output Field Conflicts: Make sure the output binary field name does not conflict with existing fields to avoid overwriting data unintentionally.
  • Performance Issues: Large video files or high-resolution settings may increase processing time; adjust bitrate, fps, or resolution accordingly.

Links and References

Discussion