ffmpeg Node icon

ffmpeg Node

n8n Node for some Ffmpeg functionality

Actions11

Overview

This node provides video transcoding functionality using ffmpeg. It allows users to convert input videos into different formats or codecs with customizable parameters such as video codec, bitrate, frame rate, and resolution. This is useful for scenarios like preparing videos for web streaming, reducing file size, or converting videos to a compatible format for specific devices.

Practical examples include:

  • Transcoding an uploaded video to H.264 codec with a specific resolution and bitrate for optimized playback.
  • Changing the frame rate of a video to match broadcast standards.
  • Converting videos from one format to another while adjusting quality settings.

Properties

Name Meaning
Video Input A valid video URL or the name of the input binary field containing the video to transcode.
Video Output Name The name of the output binary field where the transcoded video file will be stored.
Video Codec The codec to use for transcoding the video (e.g., h264, vp9).
Transcoding Options Collection of optional parameters:
- Video Bitrate: target bitrate in kbps (number).
- Fram Rate: frames per second (number).
- Resolution: output resolution as width x height string (e.g., "640x480").

Output

The node outputs the transcoded video file in a binary field named according to the "Video Output Name" property. The json output contains metadata about the operation result, but the main content is the binary video data ready for further processing or saving.

Dependencies

  • Requires an API key credential for accessing the underlying ffmpeg service or API.
  • The node depends on an external ffmpeg-based service or library to perform the actual transcoding.
  • No additional environment variables are explicitly required based on the static code.

Troubleshooting

  • Invalid Video Input: If the input video URL or binary field name is incorrect or missing, the node will fail to locate the source video. Ensure the input is correctly specified and accessible.
  • Unsupported Codec or Parameters: Using an unsupported video codec or invalid transcoding options may cause errors. Verify that the codec and options are supported by the underlying ffmpeg service.
  • API Authentication Errors: Missing or invalid API credentials will prevent the node from executing. Confirm that the API key credential is properly configured.
  • Output Field Conflicts: If the output binary field name conflicts with existing fields, it may overwrite data unintentionally. Use unique names for output fields.

Links and References

Discussion