Go to example tasks

Compress videos to a target file size

Shrink videos to about the size you need, for email, WhatsApp, Discord or upload limits. Set a target size in MB and the bitrate is computed from each video's length; optionally resize to 1280 px wide. MP4 (H.264) output with download links. In this example a 30-second 1080p clip goes from 21.7 MB to 1.8 MB. $3 per 1,000 files plus $20 per 1,000 video minutes.

Try for free
Media Toolkit — Video Converter, Compressor, MP4 to MP3 & GIF
Media Toolkit — Video Converter, Compressor, MP4 to MP3 & GIFsaliga/media-toolkit
Input
Output
Format
Bytes
+4 fields
Text
Number
Boolean
List
Object

Input

Files(required):https://samplelib.com/mp4/sample-30s.mp4
Target size (MB):2
Width (pixels):1280

Output fields

Input
Output
Format
Bytes
Size change %
Seconds
Minutes
Error

How it works

Sign up on Apify or log in

The Media Toolkit — Video Converter, Compressor, MP4 to MP3 & GIF Actor is ready to run with the inputs already set for "Compress videos to a target file size". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Compress videos to a target file size" task

The Media Toolkit — Video Converter, Compressor, MP4 to MP3 & GIF Actor will start running based on the input automatically. You can also change all the input fields, like files, target size (mb), and more, to match your specific use case.

Receive the "Compress videos to a target file size" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as input, output, format, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Compress videos to a target file size" task via API.

Image

Integrate "Compress videos to a target file size" into your workflow

Connect "Compress videos to a target file size" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay