Actions21
- Auto Caption Video Actions
- Create Video Actions
- Edit Video Actions
- File Actions
- HTML Video Actions
- Job Actions
- React Video Actions
- Template Actions
- Video Audio Actions
- Video Thumbnail Actions
Edit Video → Resize / Change Aspect Ratio
AI-generatedSummary
Resize a video to a preset aspect ratio or custom pixel dimensions, with a selectable fit mode. Choose an output format and how to receive the result; the node submits the resize job to VideoApiHub for each input item.
Inputs
- Video Source (required) — A video URL or a file path in VideoApiHub storage.
- Output Format — Result format: MP4 (default), MOV, WebM, or MKV.
- How to Get the Result — Choose a file, permanent public URL, temporary download link, or storage-only output. Defaults to File.
- Link Expires After (Seconds) — For a temporary download link, set its lifetime in seconds; defaults to 3600.
- Custom Save Path — Optional storage path for the result; leave empty to let VideoApiHub generate one.
- Size Mode — Choose a preset aspect ratio (default) or enter custom dimensions.
- Aspect Ratio — When using preset mode, choose 1:1, 16:9, 21:9, 4:3, 4:5, or 9:16. Defaults to 16:9.
- Width (Pixels) — When using custom mode, set output width from 64 to 3840 pixels; defaults to 1920.
- Height (Pixels) — When using custom mode, set output height from 64 to 3840 pixels; defaults to 1080.
- Fit Mode — Choose how the source fits the output frame: Fill & Crop, Fit Inside (may add black bars), or Stretch to Fill. Defaults to Fill & Crop.
Output shape
One output item per input item, containing the VideoApiHub API response as JSON.
The node sends a POST request to the aspect-ratio conversion endpoint. Depending on the selected output type, the response may provide a file result, URL, or storage details; the source does not convert this operation's response into n8n binary data.