Actions11
- Filters and Effect Actions
- Metadata Actions
- RTMP Restreaming Actions
- Transcoding Actions
- Video Processing Actions
Overview
This node provides video processing capabilities using ffmpeg, specifically supporting a "Trim Video" operation under the "Video Processing" resource. The "Trim Video" operation allows users to specify segments of a video to extract based on highlight times and reasons. This is useful for creating clips from longer videos, such as extracting key moments from sports footage, interviews, or presentations.
Practical examples:
- Extracting highlights from a recorded webinar by specifying start and end times.
- Creating short promotional clips from a full-length video.
- Automatically trimming surveillance footage to relevant events.
Properties
| Name | Meaning |
|---|---|
| Video Url | A valid URL pointing to the source video to be trimmed. |
| Video Highlights | An array of objects each containing: |
| - Highlight Reason: A string describing why this segment is important (e.g., "Goal"). | |
| - Highlight Time: A string specifying the time range to trim in the format "HH:MM - HH:MM". |
Output
The node outputs JSON data representing the result of the trimming operation. While the exact structure is not detailed in the provided code, typically it would include metadata about the trimmed video segments or URLs/paths to the newly created video clips.
If binary data output is supported (common with video processing nodes), it would represent the actual trimmed video files ready for further use or download.
Dependencies
- Requires an API key credential for accessing the underlying ffmpeg service.
- Depends on external ffmpeg-based services or APIs to perform video trimming.
- The node expects the input video to be accessible via the provided URL.
Troubleshooting
- Invalid Video URL: Ensure the video URL is accessible and points to a valid video file.
- Incorrect Highlight Time Format: Highlight times must follow the "HH:MM - HH:MM" format; otherwise, trimming may fail.
- API Authentication Errors: Verify that the API key credential is correctly configured and has necessary permissions.
- Timeouts or Long Processing Times: Large videos or many highlight segments can increase processing time; consider limiting input size or number of highlights.
Links and References
- FFmpeg Official Documentation
- n8n Documentation on Custom Nodes
- General guide on video trimming concepts: https://en.wikipedia.org/wiki/Video_editing