Actions11
Video → Compress Video to Size
AI-generatedSummary
Compresses a video to a target file size via the Picsart Video API, optionally changing codec, format, bitrate, and color space.
Inputs
- videoUrl (required) — Source video URL (WEBM, MP4, or MOV, max 100MB, max 1920x1080).
- max_size_mb (required) — The maximum target size in megabytes (not strict).
- mode — Simple mode uses default settings; Advanced mode allows codec, format, audio codec, bitrate, and color space configuration.
Output shape
A single processed item with a binary video attachment and JSON metadata.
The node polls the Picsart API for completion (up to 600 attempts). Returns a binary 'data' property containing the compressed MP4 video.
Examples
Example 1: Quick compression to under 80MB
Use default settings; node reduces video size to a target maximum.
Example 2: Custom compression with specific codec and format
Enable Advanced mode; set HEVC codec and WEBM format to optimize for web compatibility.