Skip to content

Compress video

  • Type video.compress
  • Group MZBase
  • Role action
  • Risk reads only
  • Side effect none
  • Runs once per item
  • Needs media

Makes a video smaller for a size, bitrate or platform

Also available to AI agents and over MCP as a tool.

source

Source · string · required · default binary · one of binary, media

Where the input file comes from: the item’s file (binary), a media library item, or a URL.

binaryProperty

File field · string · optional · default data

Shown when source is binary.

mediaId

Media · string · optional

Shown when source is media.

mode

Mode · string · optional · default preset · one of targetSize, bitrate, preset

How the step works; the fields below change with it.

targetMb

Target size (MB) · number · optional · default 50 · range 0.5 – 4096

Shown when mode is targetSize.

bitrateKbps

Bitrate (kbps) · integer · optional · default 2500 · range 100 – 100000

Shown when mode is bitrate.

preset

Preset · string · optional · default tiktok · one of tiktok, instagramReels, youtubeShorts, facebook, telegram, zalo

Settings tuned for a platform (TikTok, Reels, Shorts…).

Shown when mode is preset.

into

Into field · string · optional · default data

saveTo

Save to · string · optional · default none · one of none, media

Where the result goes: back on the item as a file, or into the media library (the item then gets mediaId).

mediaFolder

Media folder · string · optional

Shown when saveTo is media.

mediaTags

Media tags · array · optional

Shown when saveTo is media.

  • main

← All nodes