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.

Practical examples:

  • Extracting a 30-second highlight from a recorded webinar.
  • Trimming silence or ads from a podcast episode.
  • Creating short teaser clips from full-length videos for social media sharing.

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 be cut.
Cut Start Time (in Sec) The starting point (in seconds) from which the media will be trimmed. Must be zero or positive.
Cut End Time (in Sec) The ending point (in seconds) up to which the media will be trimmed. Must be zero or positive.
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 as binary data under the specified output field name. The json output typically contains metadata about the processed file, while the actual media content is available in the binary property named as per the "Video or Audio Output Name" input.

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 network access to the input media URLs or availability of the input binary data is necessary.

Troubleshooting

  • Invalid Input URL or Binary Field: If the input media cannot be accessed or found, the node will fail. Ensure the URL is correct and publicly accessible or that the binary field exists in the input data.
  • Start or End Times Out of Range: Providing negative values or an end time less than the start time may cause errors. Always use non-negative numbers with end time greater than start time.
  • Missing Output Field Name: The output binary field name must be provided; otherwise, the node cannot store the result.
  • API Authentication Errors: If the API key credential is missing or invalid, the node will not execute successfully. Verify credentials are correctly set up.
  • Large File Processing Delays: Cutting large media files might take significant time depending on the service performance and file size.

Links and References

Discussion