Video Compressor & Resizer: Shrink MP4 for Web, Social & AI
Pricing
from $16.00 / 1,000 video minute (720p)s
Video Compressor & Resizer: Shrink MP4 for Web, Social & AI
Compress videos from direct file URLs to smaller H.264 mp4: 480p, 720p or 1080p presets, CRF quality or a target file size in MB. Any frame rate, audio kept or removed, signed download links, saved MB per video. No YouTube. Billed per output minute, free on failure.
Pricing
from $16.00 / 1,000 video minute (720p)s
Rating
0.0
(0)
Developer
Data Done Right
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
0
Monthly active users
12 days ago
Last modified
Categories
Features
Share
This video compressor shrinks video files from direct URLs into smaller H.264 mp4 files: pick a 480p, 720p or 1080p size preset, set the quality with CRF, or ask for a target file size in MB. Every video gets a download link, its size before and after and the percent saved. It runs ffmpeg in the cloud, so there is nothing to install and no API key.
What it does not do. It reads direct video files (mp4, mov, webm, mkv, avi) from a public URL; it does not download from YouTube, Vimeo, TikTok, Instagram or other streaming sites and rejects those links without charge. HLS/DASH playlists (.m3u8, .mpd) are not supported. It only outputs H.264/AAC mp4: no H.265, AV1, WebM or GIF, and nothing above Full HD (4K sources are scaled down; sources above Full HD are limited to 10 minutes). It does not cut, crop, rotate, merge or add anything to the picture. A target size is a goal, not a guarantee: hard-to-encode footage can overshoot, and the row says so. If the result would not be smaller than the source, it is not delivered and not charged. It follows the robots.txt of the host that serves your files. Use it only on videos you own or have the right to process.
What you get
- One dataset row per video: source and result size in bytes, percent saved, source and result resolution, measured duration, the price tier and minutes billed, a signed download link, and a status or a clear error.
- Size presets by the short side of the picture, so portrait video works too (a 1080x1920 phone clip at 720p becomes 720x1280). Videos already smaller than the preset are never enlarged.
- Bad inputs never stop the run, say exactly what is wrong and are free.
How to compress a video
- Put one or more direct video URLs in
videoUrls. - Choose a
preset(480p,720pdefault,1080pororiginal) and, if you like, a qualitycrf(lower = better and bigger; default 26). - Run it. Open the dataset: each row has
urlto the compressed mp4 andsavedPercent. TheSUMMARYrecord totals the minutes billed and the bytes saved.
How to compress a video to a target file size
Set targetSizeMb, for example 25 for an upload or email limit. The Actor works out the video bitrate from the duration (after reserving the audio bitrate) and runs a two-pass encode, which takes about twice as long. crf is ignored in this mode. The row has targetBytes and targetMet. If the target would leave less than 40 kbps for the picture, the video is rejected with a message that says so, for free. If the source is already under the target, it is skipped for free.
How to resize a video for social media and the web
Use preset: "720p" and maxFps: 30 for a light upload version, or 480p for previews and chat. removeAudio drops the sound; audioBitrateKbps sets the AAC bitrate (default 96). Output is always yuv420p with +faststart, so it plays in browsers and starts before it has fully loaded. Metadata (including GPS tags) and chapters are removed.
How to compress videos for AI and video pipelines
A 480p or 720p file at CRF 28 is usually much smaller than a camera original and still readable for frame sampling, vision models and transcription. Pair it with Video Frame Extractor: Keyframes, Scenes & Thumbnails for AI or a transcription step.
Price tiers
You pay per output minute, in the tier of the result (short side of the output frame), not of the source or the preset:
| Result | Event | Per minute |
|---|---|---|
| up to 480 px (854x480, 640x360, 480x854) | video-minute-sd | $0.007 |
| 481 to 720 px (1280x720, 960x540, 720x1280) | video-minute-720p | $0.020 |
| 721 to 1080 px (1920x1080, 1080x1920) | video-minute-1080p | $0.040 |
The duration of the result is rounded up to whole minutes, with a minimum of 1 minute per video: a 5-second clip costs one SD minute ($0.007) and a 61-second clip two minutes.
Input
| Field | Default | What it does |
|---|---|---|
videoUrls | sample video | Direct video file links (required). |
preset | 720p | Short-side limit: 480p, 720p, 1080p or original (capped at 1080). |
crf | 26 | Quality, 18 (best) to 35 (smallest). Ignored with targetSizeMb. |
targetSizeMb | empty | Aim for about this size (two-pass). |
maxFps | 0 | Lower the frame rate to this value (0 = keep). |
removeAudio | false | Drop the sound track. |
audioBitrateKbps | 96 | AAC bitrate of the kept audio (first track, stereo). |
encoderPreset | veryfast | veryfast, faster, fast or medium: slower = a bit smaller. |
deliverIfLarger | false | Deliver and charge even if the result is not smaller. |
videos | empty | Per-video overrides: [{"url", "preset", "targetSizeMb", "name"}]. |
maxDurationMinutes | 30 | Source duration cap (above Full HD: 10 min). |
maxVideoSizeMb | 500 | Source size cap (max 2048). |
maxVideosPerRun | 50 | Hard cap on videos per run (max 1000). |
videoTimeoutSecs | 1800 | Per download and per encode. |
outputStoreName | empty | Save the files in a named store that is kept until you delete it. |
Input example:
{"videoUrls": ["https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4"],"preset": "480p"}
Output
One row per video, from a real local run of the input above:
{"sourceUrl": "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4","videoIndex": 1,"name": null,"preset": "480p","mode": "crf","sourceBytes": 1128375,"bytes": 180154,"savedBytes": 948221,"savedPercent": 84.0,"sourceWidth": 960,"sourceHeight": 540,"width": 854,"height": 480,"durationSeconds": 5.055,"tier": "video-minute-sd","billedMinutes": 1,"targetBytes": null,"targetMet": null,"url": "https://api.apify.com/v2/key-value-stores/<store>/records/v01-compressed.mp4","key": "v01-compressed.mp4","status": "ok","error": null,"note": null}
A failure row has status: "error" and an error naming the problem. status: "skipped" means a free skip: the result would not be smaller, the source is already under your target, the spending limit was reached or maxVideosPerRun was hit. On Apify the url is a signed link that downloads without a token.
Use with the Apify API, MCP, n8n and Make
Python:
from apify_client import ApifyClientclient = ApifyClient("<APIFY_TOKEN>")run = client.actor("data-done-right/video-compressor").call(run_input={"videoUrls": ["https://example.com/demo.mp4"], "preset": "720p", "maxFps": 30})for row in client.dataset(run["defaultDatasetId"]).iterate_items():print(row["status"], row.get("savedPercent"), row["url"] or row["error"])
JavaScript:
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: '<APIFY_TOKEN>' });const run = await client.actor('data-done-right/video-compressor').call({videoUrls: ['https://example.com/demo.mp4'], targetSizeMb: 25 });const { items } = await client.dataset(run.defaultDatasetId).listItems();
In n8n or Make use the Apify node with the actor name and the same JSON. With Apify's MCP server (mcp.apify.com) an AI assistant can call it: "compress this mp4 to under 25 MB". It needs only a video URL.
Use cases
- Get product demos, screen recordings and UGC under an upload, email or chat size limit with
targetSizeMb. - Make light 720p copies of camera originals for a CMS, a web page or a review tool.
- Shrink a video library before storing it or feeding it to a vision or transcription pipeline.
- Cap frame rate and size of user-submitted video in a content workflow.
- Re-wrap odd formats (mov, mkv, avi, webm) as a standard H.264 mp4 that plays everywhere (set
deliverIfLargerif the result may be bigger).
How much does it cost
Pay per event, per output minute: $0.007 SD, $0.02 720p, $0.04 Full HD (see the table above). Failed videos, skipped videos, rejected links and the SUMMARY record are free. Plan discounts apply (Silver about 10%, Gold and higher about 20%).
- 1,000 minutes at 720p: $20 (for example 1,000 one-minute clips).
- 10,000 minutes at 480p: $70.
- 1,000 videos of 5 minutes at 1080p: 5,000 minutes, $200.
Apify platform usage is included. maxVideosPerRun caps a run, and if you set a maximum spend per run the Actor stops cleanly when it is reached and removes the file it could not charge for. Speed: in a local single-thread test a generated 1080p clip encoded at about 3.5x real time at 1080p and 8x at 720p; cloud machines are slower than a desktop, and real footage is slower than test patterns, so budget a few minutes for each 10-minute video.
FAQ
Will it make my file smaller every time?
Not always. A video that is already heavily compressed can come out bigger. In that case the row says skipped with the sizes, and you are not charged. Choose a smaller preset or a higher crf, or set deliverIfLarger if you want the re-encode anyway.
Does the target size hit the number exactly?
No. It sets a bitrate from the duration and runs two passes, which usually lands close to the target, but complex footage can overshoot. Each row has targetMet. If it is false, lower targetSizeMb a little or use a smaller preset.
Which size does the price depend on?
On the short side of the file we produce. A 640x360 source at the 720p preset stays 640x360 (it is not enlarged) and is billed at the SD rate.
What about portrait video and audio?
Portrait and landscape both work, because presets limit the short side. The first audio track is kept as AAC stereo; other audio tracks, subtitle tracks, data tracks, chapters and metadata are dropped.
Which limits apply?
Source files up to 2 GB (default 500 MB) and 30 minutes by default (set maxDurationMinutes for more; above Full HD the limit is 10 minutes and frames larger than 4K are rejected), up to 1,000 videos per run. Links to private or internal addresses are blocked, and the hosts of your files must allow automated fetching in their robots.txt. The whole source file is downloaded once per video.
How long are the files kept?
They live in the run's key-value store, which expires with your plan's retention period. Set outputStoreName to keep them in a named store until you delete them.
Related tools
- Video Frame Extractor: Keyframes, Scenes & Thumbnails for AI pulls still images from the same videos.
- Cut Video: Video Trimmer, Clip Cutter & Video to GIF cuts clips and makes GIFs.
- Merge Videos: Concatenate, Join & Combine Video Clips joins clips into one file.
- Add Watermark to Video: Logo, Text & Image Overlay (Bulk) puts a logo or text on the same files.
- Extract Audio from Video: MP3, WAV & FLAC in Bulk keeps only the sound.