Actions11
- Filters and Effect Actions
- Metadata Actions
- RTMP Restreaming Actions
- Transcoding Actions
- Video Processing Actions
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), choose whether to hardcode or softcode the subtitles, optionally adjust video bitrate, frame rate, and resolution, and receive a processed video with subtitles embedded accordingly.
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 with subtitles will be stored. |
| Add Method | Method to add subtitles: • Softcoded (subtitles as selectable track) • Hardcoded (burned in) |
| Video Processing Options | Optional settings for video processing: • Video Bitrate (number) • Frame Rate (fps) (number) • Resolution (string, e.g., "640x480") |
Output
The node outputs the processed video file with subtitles embedded according to the selected method. The output is placed in a binary field named as specified by the "Video Output Name" property.
- The
jsonoutput typically contains metadata about the processed video. - The binary output contains the actual video file data with subtitles added.
If the subtitles are hardcoded, the video frames themselves contain the subtitle text. If softcoded, the subtitles are included as a separate selectable track within the video container.
Dependencies
- Requires access to an external Ffmpeg API service configured via an API key credential.
- The node depends on this external service to perform video processing tasks such as transcoding and subtitle embedding.
- Proper configuration of the API authentication token in n8n credentials is necessary.
Troubleshooting
- Invalid Input URLs or Binary Fields: Ensure that the video and subtitle inputs are correctly specified either as accessible URLs or valid 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 is correctly set up and has sufficient permissions.
- Processing Failures: Errors during video processing might occur if the video options (bitrate, fps, resolution) are set to unsupported values. Use standard values to avoid failures.
- Output Field Conflicts: Make sure the output binary field name does not conflict with existing fields in the workflow to prevent overwriting data unintentionally.