FFmpeg Video Editor

Edit videos using FFmpeg (trim, resize, watermark)

Resize

AI-generated

Summary

Resize an input video's dimensions to a specified width and height, optionally preserving aspect ratio by setting one dimension to -1, and output the result in a chosen video format.

Inputs

  • Input Binary Property (required) — Name of the binary property containing the input video to be resized.
  • Output Binary Property (required) — Name of the binary property to store the resized output video.
  • Output Format (required) — Choose the output video format: MP4, AVI, or MOV.
  • Width (required) — Set the new width in pixels; use -1 to automatically adjust width to preserve aspect ratio based on the height.
  • Height (required) — Set the new height in pixels; use -1 to automatically adjust height to preserve aspect ratio based on the width.

Output shape

A list of items where each item contains the original JSON data and the resized video binary data under the specified output binary property.

Output binary includes base64-encoded video data with appropriate MIME type and file extension matching the selected output format. The operation processes each input item individually; errors can be handled per item depending on node settings.

Examples

Example 1: Resize a video to 1280x720 pixels and output as MP4.

Set Input Binary Property to the incoming video's binary property name (e.g., 'data'), Output Binary Property to a new name (e.g., 'output'), Width to 1280, Height to 720, and Output Format to MP4.

Discussion