ffmpeg Node icon

ffmpeg Node

n8n Node for some Ffmpeg functionality

Actions11

Overview

This node provides video processing capabilities using ffmpeg functionality within n8n. Specifically, the "Trim Video" operation allows users to trim a video from a specified start time to an end time based on a given time range. This is useful for extracting clips, removing unwanted sections, or preparing videos for further processing or sharing.

Common scenarios include:

  • Extracting highlights from longer videos.
  • Removing intros/outros from recorded footage.
  • Creating short previews or teasers from full-length videos.

Example: Given a video URL and a trim time of "00:00 - 00:10", the node will output a video clip containing only the first 10 seconds of the original video.

Properties

Name Meaning
Video Url A valid URL pointing to the source video to be trimmed.
Trim Time The time range specifying the segment to keep, formatted as "start - end" (e.g., "00:00 - 00:10").

Output

The node outputs JSON data representing the trimmed video. Typically, this includes metadata about the processed video and may contain a binary field with the actual trimmed video file. The binary data represents the resulting video clip after trimming.

Dependencies

  • Requires access to an ffmpeg API service configured via an API key credential in n8n.
  • The node depends on external ffmpeg functionality exposed through this API to perform video trimming operations.
  • Network access to the provided video URL is necessary for fetching the source video.

Troubleshooting

  • Invalid Video URL: If the video URL is incorrect or inaccessible, the node will fail to fetch the video. Ensure the URL is publicly accessible or properly authenticated.
  • Incorrect Trim Time Format: The trim time must be in the format "HH:MM - HH:MM". Invalid formats may cause errors or unexpected results.
  • API Authentication Errors: Missing or invalid API credentials for the ffmpeg service will prevent execution.
  • Large Video Files: Processing very large videos might lead to timeouts or memory issues depending on the API limits.

Links and References

Discussion