ffmpeg Node icon

ffmpeg Node

n8n Node for some Ffmpeg functionality

Actions11

Overview

This node provides video and audio processing capabilities using ffmpeg. Specifically, the "Cut Video/Audio" operation allows users to trim a segment from a given video or audio file by specifying start and end times in seconds. This is useful for extracting highlights, removing unwanted sections, or creating clips from longer media files.

Common scenarios include:

  • Extracting a specific scene from a video.
  • Trimming silence or noise from an audio recording.
  • Creating short previews or teasers from full-length media.

For example, if you have a 10-minute video but only want the segment from 2:00 to 3:30, this node can cut that portion and output it as a new file.

Properties

Name Meaning
Video or Audio Input A valid URL pointing to the video/audio file or the name of the input binary field containing the media to process.
Cut Start Time (in Sec) The starting point (in seconds) from which to begin cutting the media. Must be ≥ 0.
Cut End Time (in Sec) The ending point (in seconds) at which to stop cutting the media. Must be ≥ 0 and greater than start time.
Video or Audio Output Name The name of the output binary field where the resulting trimmed media file will be stored.

Output

The node outputs the trimmed video or audio segment in a binary field named as specified by the "Video or Audio Output Name" property (default is "data"). The output contains the media file data corresponding to the cut segment.

The json output field typically includes metadata about the processed item, but the main content is delivered as binary data representing the trimmed media file.

Dependencies

  • Requires an API key credential for accessing the underlying ffmpeg service.
  • The node depends on ffmpeg functionality exposed via an external API or service configured within n8n.
  • Proper configuration of the API authentication token or credentials is necessary for the node to function.

Troubleshooting

  • Invalid Input: If the input URL or binary field does not contain a valid video or audio file, the node may fail. Ensure the input is correct and accessible.
  • Start/End Times: Providing a start time greater than or equal to the end time will likely cause errors. Verify that the start time is less than the end time and both are within the media duration.
  • API Authentication Errors: Missing or incorrect API credentials will prevent the node from executing. Confirm that the required API key or token is properly set up in n8n.
  • Unsupported Formats: Some media formats might not be supported by the underlying ffmpeg service, leading to processing failures.
  • Timeouts or Large Files: Processing very large files or slow network connections might cause timeouts. Consider splitting large files or improving connectivity.

Links and References

Discussion