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 can be toggled on/off) and hardcoded (subtitles are permanently burned into the video). This functionality is useful in scenarios such as preparing videos for different platforms, accessibility enhancements, or localization by embedding subtitles.
Practical examples:
- Adding closed captions to a training video before publishing.
- Embedding translated subtitles directly into a marketing video.
- Creating versions of videos with optional subtitle tracks for streaming services.
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" (optional toggle) or "Hardcoded" (permanently burned in). |
| Video Processing Options | Optional settings including: - Video Bitrate (number) - Frame Rate (fps, number) - Resolution (string, e.g., "640x480") |
Output
The node outputs a binary video file with subtitles added according to the selected method. The output binary data is stored under the specified output field name. The json output typically contains metadata about the processed video, but the main content is the binary video file with embedded subtitles.
Dependencies
- Requires an API key credential for accessing the underlying ffmpeg-based video processing service.
- The node depends on ffmpeg functionality exposed via an external API or service configured in n8n credentials.
- Input video and subtitle files must be accessible either as URLs or as binary data within the workflow.
Troubleshooting
- Invalid input URLs or missing binary fields: Ensure that the video and subtitle inputs are correctly specified and accessible.
- Unsupported subtitle formats: Verify that the subtitle file format is supported by the underlying ffmpeg processing.
- Incorrect output field name: Make sure the output binary field name does not conflict with existing fields.
- API authentication errors: Confirm that the API key credential is valid and has necessary permissions.
- Video processing failures: Check video options like bitrate, frame rate, and resolution for valid values; invalid parameters may cause processing errors.
Links and References
- FFmpeg Documentation – For understanding video processing and subtitle embedding.
- Subtitles in FFmpeg – Guide on hardcoding subtitles.
- n8n Documentation – For general usage of custom nodes and credentials setup.