FFmpeg Video & Audio Converter — Compress, Trim, MP4, MP3, GIF avatar

FFmpeg Video & Audio Converter — Compress, Trim, MP4, MP3, GIF

Pricing

from $25.00 / 1,000 minute of encoded video (up to 720p)s

Go to Apify Store
FFmpeg Video & Audio Converter — Compress, Trim, MP4, MP3, GIF

FFmpeg Video & Audio Converter — Compress, Trim, MP4, MP3, GIF

FFmpeg video converter and video compressor API for links to your own media: convert to MP4, WebM, MOV, MKV, MP3, M4A, WAV, FLAC or OGG, compress to a target size, trim, resize to 9:16, extract audio, mute, normalize loudness, change speed, make GIFs, merge files, probe. Export via API.

Pricing

from $25.00 / 1,000 minute of encoded video (up to 720p)s

Rating

0.0

(0)

Developer

Steady Scrape

Steady Scrape

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

13 days ago

Last modified

Features

Limited permissions

Share

FFmpeg Video Converter & Compressor — MP4, MP3, GIF, trim, resize

Convert, compress, trim and resize video and audio files with FFmpeg in the cloud. Give direct links to your own files — or pick a dataset of links from another Actor — and this FFmpeg video converter returns every result as a download link with its duration, size, resolution and codecs: MP4, WebM, MOV, MKV, MP3, M4A, WAV, FLAC, OGG or GIF. No FFmpeg to install, no command line to learn, no subscription: you pay per minute of media, only for files that come out.

One operation per run, on every file: convert, compress (by quality or to a target file size), trim, resize or reshape to 9:16, 1:1, 4:5 or 16:9, extract audio (including 16 kHz mono WAV for speech-to-text), mute, normalize loudness, change speed, make a GIF, join files into one, or just probe a file's metadata.

Made for automations. Call it from n8n, Make, Zapier or your own code, feed it the files another Actor produced (a scraper's videos, a render's MP4s, a podcast list), and hand its links to the next step.

What this FFmpeg video converter does

OperationWhat you getBilled as
ConvertThe file in another format. When its codecs already fit the new container (H.264 into MP4, AAC into M4A…) the streams are copied without re-encoding: instant and lossless.video minutes when the picture is encoded, audio minutes when it is copied
CompressA smaller video, by quality preset (high, balanced, small, smallest) or to a target size in MB with a two-pass encode — 8 MB for Discord, 16 MB for WhatsApp, 25 MB for email. If the size leaves too few bits for the full resolution, the video is downscaled so it still looks sharp, and the row says so.video minutes
TrimThe part between a start and an end time, cut to the exact frame, or with fast trim by copying the streams (lossless, starts on a keyframe).video minutes, or audio minutes for a fast trim
Resize / reshapeA maximum resolution (1080p, 720p, 480p, 360p — never upscaled) and/or a new shape: 9:16 for TikTok, Reels and Shorts, 1:1 or 4:5 for feeds, 16:9 for YouTube. Fit by crop, pad (black bars) or blur (the picture over a blurred copy of itself).video minutes
Extract audioThe sound track as MP3, M4A, WAV, 16 kHz mono WAV, FLAC or OGG/Opus. AAC into M4A is copied as it is.audio minutes
MuteThe video without its sound, the picture copied as it is when the format can hold it.audio minutes
Normalize loudnessThe sound brought to a loudness target: -14 LUFS for YouTube and Spotify, -16 for podcasts, -23 for EBU R128 broadcast. Two passes (measure, then apply), true peaks kept under -1.5 dBTP; the picture is copied.audio minutes
Change speedFaster or slower, 0.25× to 4×, with the voice keeping its pitch.video or audio minutes of the output
Video to GIFA looping GIF of up to 30 seconds and 480 px wide, from the start time you choose, with one optimized palette.one GIF
ConcatenateAll the links joined into one file, in the order given. Videos of different sizes are brought to the first one's frame; a silent part gets silence so sound stays in sync.video or audio minutes of the joined file
ProbeMetadata only, read in place without downloading the file: duration, size, codecs, resolution, rotation, frame rate, bitrate, sample rate, channels — plus one poster frame as JPEG.one probe

Every output video also gets a thumbnail JPEG. Phone videos recorded sideways come out upright, and an HEVC video copied into MP4 is tagged so Apple devices play it.

Use cases

  • Compress videos to a size limit before sending them by email, Discord, WhatsApp or an upload form.
  • Convert MOV, MKV, AVI or WebM to MP4 that plays everywhere, or MP4 to MP3 to keep only the sound.
  • Prepare audio for transcription: 16 kHz mono WAV is what Whisper and most speech-to-text APIs want.
  • Reshape landscape clips to 9:16 for Shorts, Reels and TikTok, with a blurred background instead of black bars.
  • Normalize podcast episodes to -16 LUFS so every episode plays at the same volume.
  • Cut highlights: trim clips, speed them up, or turn them into GIFs for docs, tickets and chats.
  • Check files at scale: probe a dataset of media links for duration, resolution and codecs before processing them.

Input example

Compress two videos to 8 MB each:

{
"files": [
"https://example.com/uploads/demo-recording.mov",
"https://example.com/uploads/product-tour.mp4"
],
"operation": "compress",
"targetSizeMb": 8
}

Reshape to vertical 9:16 with a blurred background, capped at 720p:

{
"files": ["https://example.com/uploads/interview.mp4"],
"operation": "resize",
"aspectRatio": "9:16",
"fit": "blur",
"maxResolution": "720"
}

Extract the sound of every video in another Actor's dataset as 16 kHz mono WAV:

{
"datasetId": "<dataset id>",
"operation": "extract_audio",
"audioFormat": "wav-16k-mono"
}

Times are seconds (95.5) or timecodes (1:35.5, 00:01:35.500); startTime and endTime apply to every operation except concatenate and probe.

Output example

One row per file (one row in all for concatenate):

{
"status": "ok",
"reason": null,
"index": 1,
"operation": "convert",
"sourceUrl": "https://media.w3.org/2010/05/sintel/trailer.webm",
"outputUrl": "https://api.apify.com/v2/key-value-stores/<store>/records/001-trailer.mp4?signature=…",
"outputKey": "001-trailer.mp4",
"outputFormat": "mp4",
"contentType": "video/mp4",
"thumbnailUrl": "https://api.apify.com/v2/key-value-stores/<store>/records/001-trailer-thumbnail.jpg?signature=…",
"durationSeconds": 52.686,
"width": 640,
"height": 272,
"videoCodec": "h264",
"audioCodec": "aac",
"fileSizeBytes": 2606651,
"sizeChangePercent": -16,
"videoReencoded": true,
"source": { "formatName": "matroska,webm", "durationSeconds": 52.663, "video": { "codec": "vp8", "width": 640, "height": 272 }, "audio": { "codec": "vorbis" } },
"billedEvent": "video-minute",
"billedCount": 1,
"billedTransferCount": 0,
"processingSeconds": 3.1
}

The links open for anyone, without an Apify account, for as long as the run's storage is kept.

Output fields

FieldMeaning
statusok, or why nothing was made: invalid (the operation does not apply, e.g. compress on an MP3), unreachable, not_media, too_large, refused (a video platform page), skipped (spending limit or run timeout), failed (FFmpeg could not do it). Only ok rows are billed.
reasonWhy a row is not ok, or notes on an ok one (downscaled to meet a target size, end time past the end of the file…).
index, operationThe file's place in the run (from 1) and the operation done to it.
sourceUrl, datasetItemIndexThe link that was processed, and the item of the picked dataset it came from (from 0; empty for typed links).
outputUrl, outputKeyThe output file's public link and its key in the run's key-value store.
outputFormat, contentTypeThe output's extension (mp4, mp3, gif…) and its MIME type.
thumbnailUrlA JPEG of the output video (the GIF itself for GIFs, the poster frame for probes).
durationSeconds, width, height, videoCodec, audioCodec, fileSizeBytesMeasured on the output file (on the source for probes).
sizeChangePercentOutput size against the downloaded source, -60 means 60 % smaller.
videoReencodedfalse when the picture was copied as it is.
sourceThe source's metadata: format, duration, size, bitrate, video codec, size as shown, stored size, rotation, frame rate, pixel format, audio codec, sample rate, channels.
billedEvent, billedCount, billedTransferCountWhat this row was charged: its minutes (or GIF, or probe) and its transfer-10mb events.
joinedUrlsThe links joined, in order (concatenate).
processingSeconds, processedAtHow long the file took, download and upload included, and when work on it began (UTC).

Pricing

Pay per event, nothing per run or per month:

EventPriceWhen
video-minuteUS$0.025each started minute of output video whose picture is encoded, up to 720p on its short side
hd-video-minuteUS$0.045each started minute of output video encoded above 720p (up to 1080p)
audio-minuteUS$0.002each started minute of audio output, and of a video whose picture is copied (remux, fast trim, mute, normalize)
gifUS$0.01each GIF
probeUS$0.002each file probed
transfer-10mbUS$0.001each started 10 MB of an output file past its first 10 MB

Examples: a 10-minute phone video compressed to 720p (about 120 MB out) costs about US$0.26; kept at 1080p, about US$0.47. The audio of a one-hour video as MP3 (about 86 MB) costs about US$0.13. A two-hour, 2 GB MKV remuxed to MP4 without re-encoding costs about US$0.44. Links that fail, pages, damaged files and anything else that produces no output cost nothing.

Set a maximum cost per run in the run options: files that would go past it are skipped and listed, never half-made.

Limits

  • Your own files, by direct link: up to 2 GB each, 500 links per run (100 for concatenate). Links of video platforms (YouTube, TikTok, Instagram, Facebook, X, Vimeo…) are refused before anything is downloaded: this Actor does not download from them. Since build 1.0.7 (2026-11-09) so are the platforms' media servers (googlevideo.com, tiktokcdn.com, v.redd.it…) and any link that redirects to a platform, as free refused rows. Files behind a login need a link that opens for anyone.
  • Links to private, local or reserved addresses (localhost, 10.x, 192.168.x, the cloud metadata address 169.254.169.254…), typed, reached by a redirect or named inside a playlist, are free unreachable rows: nothing is requested from them.
  • Encoded video is capped at 1080p; a copied stream keeps its own resolution. GIFs are up to 30 s and 480 px wide.
  • Encoders: H.264 (x264), VP9, AAC, MP3, Opus, FLAC, PCM. No H.265 or AV1 encoding; HEVC and AV1 sources are read and can be copied into MKV and MP4 (HEVC also into MOV).
  • Long files take time: the default run has 4 GB of memory (one CPU core). Give a run more memory to encode faster; a file the run's timeout cannot finish is skipped and listed, not cut short.
  • Encrypted (DRM) media cannot be read.

Use it from the API, n8n or Make

Start a run with POST https://api.apify.com/v2/acts/steadyscrape~ffmpeg-video-converter/run-sync-get-dataset-items and the input above as the body, and the response is the rows. In n8n and Make use the Apify node or module with this Actor. Files in another run's key-value store can be passed as their signed record links, and a whole dataset with datasetId.

FFmpeg, licenses and your files

This Actor runs FFmpeg on Apify's servers. It is not affiliated with, sponsored or endorsed by the FFmpeg project; FFmpeg is a trademark of Fabrice Bellard, originator of the FFmpeg project. Process only files you own or have the right to convert, and respect the rights of their authors.