Media Converter: Video, Audio, GIF and Frames with FFmpeg
Pricing
from $4.00 / 1,000 media minute processeds
Media Converter: Video, Audio, GIF and Frames with FFmpeg
Convert audio and video files from direct links with FFmpeg: MP4, WebM, MP3, M4A, WAV, OGG, Opus, FLAC and GIF. Extract audio, trim, resize, compress, mute, grab frames and read media metadata. Several jobs per run, files in the key-value store. Pay per media minute.
Pricing
from $4.00 / 1,000 media minute processeds
Rating
0.0
(0)
Developer
Markus Heiß
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Convert audio and video files from direct links. Change the format, extract the audio track, trim, resize, compress, mute, make an animated GIF, grab still frames or read the media metadata. Each job is one link plus an operation and options. Results go to the run's key-value store, with one dataset row per produced file.
The processing runs inside the Actor with FFmpeg and FFprobe. Your files are not sent to any third-party conversion API, and you need no API key.
Not affiliated with the FFmpeg project. FFmpeg is a trademark of Fabrice Bellard.
What it does
- Converts between formats: MP4 (H.264 + AAC), WebM (VP9 + Opus), animated GIF, MP3, M4A (AAC), AAC (ADTS), WAV (16 bit PCM), OGG (Vorbis), Opus and FLAC.
- Reads almost any input: MP4, MOV, MKV, WEBM, AVI, MPEG-TS, FLV, 3GP, GIF, MP3, M4A, AAC, WAV, OGG, OPUS, FLAC, WMA and more.
- Eight operations:
convert,extract_audio,trim,resize,compress,mute,framesandmetadata. - Combines options in one pass: for example trim from 00:01:00 to 00:01:30, scale to 720 px height and write WebM, all in one job.
- Quality presets or exact bitrates:
high,medium,low,small, or set the video and audio bitrate yourself. Mono or stereo, any sample rate. - Frames and thumbnails: JPG or PNG at the times you give, every N seconds, or one frame from the middle. Up to 100 frames per job.
- GIFs that look right: FFmpeg's two pass palette, frame rate and width of your choice, up to 60 seconds per GIF.
- Metadata via FFprobe: duration, container, bitrate, video codec, resolution, frame rate, rotation, audio codec, sample rate and channels. Every row carries the input metadata too.
- No needless re-encoding:
mutecopies the video stream when nothing else changes, andextract_audiocopies the audio stream when the target format matches (for example AAC to M4A). - Several jobs per run: up to 50 jobs, each with its own settings, one or two at a time.
- Refuses video platforms. Links to YouTube, TikTok, Instagram, Facebook, X, Vimeo, Twitch, Spotify, SoundCloud and similar sites return an error row. The Actor only processes files you supply.
Use cases
- Web video: turn MOV or MKV uploads into MP4 and WebM for the browser, with a fast start flag for streaming.
- Podcasts and recordings: extract the audio from a video call, convert WAV to MP3 or M4A, make a mono 16 kHz WAV for speech recognition.
- Clips and previews: cut a 15 second clip, make a GIF preview or a thumbnail for a product page.
- Storage and bandwidth: compress large videos with a quality preset or a target bitrate, or scale them down to 720p.
- Media audits: check duration, codecs and resolution of many files before a migration, without converting anything.
- Automations and AI agents: call it from Make, Zapier, n8n or the Apify API as one media step in a larger flow.
Input
| Field | Description | Default |
|---|---|---|
| URLs | Direct http(s) links. Each link becomes one job with the settings below | |
| Operation | convert, extract_audio, trim, resize, compress, mute, frames, metadata | convert |
| Output format | auto, mp4, webm, gif, mp3, m4a, aac, wav, ogg, opus, flac | auto |
| Quality preset | high, medium, low, small | medium |
| Trim start, end, duration | Seconds (12.5) or HH:MM:SS (00:01:30). Use end or duration | |
| Max width, max height | Pixels. Scales down only, keeps the aspect ratio | |
| Video bitrate, audio bitrate | kbps, instead of the preset | |
| Audio channels, sample rate | 1 or 2, and Hz | keep input |
| Frame times | For frames: list of times, at most 100 | middle frame |
| Frame every N seconds | For frames: one image every N seconds | |
| Frame format, max frames | jpg or png, 1 to 100 | jpg, 20 |
| GIF fps, max width, max length | 1 to 30 fps, pixels, 1 to 60 seconds | 10, 480, 15 |
| Jobs | JSON array of job objects with url and any of the fields above, plus label | |
| Jobs at the same time | 1 or 2 | 1 |
| Max input file size | MB, at most 500 | 500 |
| Max input duration | Minutes, at most 60 | 60 |
| Download timeout | Seconds, 30 to 1800 | 600 |
auto keeps the family of the input: MP4 for most videos, WebM for WebM input, the matching audio format for audio files and MP3 for extract_audio.
Same operation for several files:
{"urls": ["https://example.com/uploads/product-demo.mov","https://example.com/uploads/team-intro.mkv"],"operation": "convert","format": "mp4","quality": "medium","maxHeight": 720}
Different settings per file:
{"jobs": [{ "url": "https://example.com/webinar.mp4", "operation": "extract_audio", "format": "mp3", "audioBitrateKbps": 128, "label": "webinar-audio" },{ "url": "https://example.com/webinar.mp4", "operation": "frames", "frameEvery": 60, "frameFormat": "jpg", "maxWidth": 640 },{ "url": "https://example.com/webinar.mp4", "operation": "convert", "format": "gif", "start": "00:02:10", "duration": 6, "gifWidth": 400 },{ "url": "https://example.com/interview.wav", "operation": "convert", "format": "flac" },{ "url": "https://example.com/raw-footage.mp4", "operation": "metadata" }]}
Top-level settings are the defaults for every job. A job's own fields win.
Where to put your files: any link that downloads the file directly works, for example a file on your web server, or a public or pre-signed S3, Google Cloud Storage or Azure Blob link. Share links that open a web page (Google Drive, Dropbox preview pages) do not work, use their direct download link.
Output
One dataset row per produced file. A frames job gives one row per frame, a metadata job one row without a file. The example is a real row: a 10 second trim ("start": "00:00:10", "end": "20") of the Sintel trailer (Blender Foundation, CC BY 3.0).
{"jobIndex": 0,"label": null,"sourceUrl": "https://media.w3.org/2010/05/sintel/trailer.mp4","operation": "trim","format": "mp4","fileUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/001-trailer.mp4?signature=<signature>","key": "001-trailer.mp4","contentType": "video/mp4","bytes": 676058,"durationSeconds": 10,"width": 854,"height": 480,"videoCodec": "h264","audioCodec": "aac","bitrateKbps": 541,"frameIndex": null,"frameTimeSeconds": null,"input": {"durationSeconds": 52.209,"formatName": "mov,mp4,m4a,3gp,3g2,mj2","sizeBytes": 4372373,"bitrateKbps": 670,"hasVideo": true,"hasAudio": true,"videoCodec": "h264","width": 854,"height": 480,"fps": 24,"rotation": 0,"pixelFormat": "yuv420p","videoBitrateKbps": 538,"audioCodec": "aac","sampleRate": 48000,"channels": 2,"channelLayout": "stereo","audioBitrateKbps": 127,"streams": 2,"fileName": "trailer.mp4","contentType": "video/mp4"},"mediaMinutes": 1,"resolutionFactor": 1,"chargedEvent": "media-minute","chargedCount": 1,"processingSeconds": 1.145,"note": null,"error": null,"processedAt": "2026-11-21T10:42:12.178Z"}
fileUrlopens the file from the run's key-value store. It carries a signature, so it works without an API token. Copy files you want to keep, because the store follows your retention settings.durationSeconds,width,height,videoCodec,audioCodecandbitrateKbpsdescribe the output file (read back with FFprobe). Formetadatarows they describe the input.inputis the FFprobe summary of the source file.widthandheightare the displayed size, so rotated phone videos show portrait sizes.frameIndexandframeTimeSecondsare set for frames.mediaMinutesis the started minutes of processed media,resolutionFactorthe factor for the output size (see Pricing).chargedEventandchargedCountshow what the job cost:mediaMinutesxresolutionFactormedia-minute events for conversions, one file event for frames and metadata. For frames only the first row of a job carries the count.noteexplains special cases, for example a GIF that was cut togifMaxSeconds, or a stream that was copied without re-encoding.- Failed jobs return a row with
errorset, for exampleThe file has no video track. Use an audio format (mp3, m4a, aac, wav, ogg, opus, flac) instead of mp4. Not charged.
Pricing
Pay per use, no subscription:
- Media minute processed: 0.004 USD per event for
convert,extract_audio,trim,resize,compressandmute. A job is charged its started media minutes times a resolution factor (table below). The minutes count the part you keep: a 30 second trim from a 1 hour video is 1 minute, a full 90 second file is 2 minutes. At least 1 minute per job. - File processed: 0.001 USD per
framesjob (up to 100 frames) and permetadatajob. - Free: failed downloads, refused links, files that are too long or too large, files without the needed track and any other error.
The resolution factor depends on the largest side of the output video or GIF, so a portrait video costs the same as the landscape video of the same quality. Encoding larger video takes much more computing time, which is why the factor grows.
| Output | Largest side | Factor | Price per started minute |
|---|---|---|---|
| Audio only (MP3, M4A, AAC, WAV, OGG, Opus, FLAC) | x1 | 0.004 USD | |
| Video or GIF up to 480p | up to 854 px | x1 | 0.004 USD |
| Video or GIF up to 720p | up to 1280 px | x4 | 0.016 USD |
| Video or GIF up to 1080p | up to 1920 px | x8 | 0.032 USD |
| Video or GIF above 1080p | more than 1920 px | x16 | 0.064 USD |
Examples: a 90 second 1080p video compressed to 1080p is 2 minutes x8 = 16 events = 0.064 USD. The same file resized to 720p ("maxHeight": 720) is 2 x4 = 8 events = 0.032 USD, and its audio extracted to MP3 is 2 x1 = 0.008 USD. A GIF at the default 480 px width is x1. mute counts like the video it keeps.
Each row shows mediaMinutes, resolutionFactor and chargedCount (the number of events charged for the job).
Before each job the Actor checks that its events (minutes times factor) fit into what is left of the maximum cost you set for the run. A job that does not fit is skipped with a free error row that says how many events it needs, and the run goes on with the next jobs. When the limit is reached, the run stops with a clear status message.
Each run also has a start fee of 0.00005 USD per GB of memory, which Apify shows as Actor Start.
Limits
- Input files up to 500 MB and 60 minutes each. Up to 50 jobs per run, one or two at a time.
- Only direct file links. The Actor does not log in, solve captchas, read pages that embed a player or handle DRM protected files.
- Video platforms, streaming and social media sites are refused on purpose, also their CDN links. Streaming playlists (
.m3u8,.mpd) are not supported. - Only the first video and the first audio track are used. Subtitles, chapters and extra tracks are dropped.
- Output files are stored in the run's key-value store, never in the dataset. The 9 MB limit of the Apify SDK applies to dataset items and request queue batches, not to key-value store records, so large outputs work. Tested with a 67 MB WAV file. Files above 50 MB are uploaded as a stream.
- Disk space is about twice the run memory. At 512 MB the run has about 1 GB of disk, so very large inputs need more memory. The Actor checks this before the download.
- Video encoding needs CPU. Apify gives about 1 CPU core per 4 GB of memory. The default of 2048 MB is fine for audio, frames, metadata and SD video: a 52 second 480p clip took about 3 seconds. Full HD needs more: 10 seconds of 1080p took 33 seconds at 2048 MB. Use 4096 MB or more for long HD videos and raise the run timeout. 512 MB works for audio, frames and small clips, not for 1080p.
- WebM uses fast VP9 settings. For the smallest files at the best quality, MP4 (H.264) is usually the better choice.
Data source, permitted use and legal
- Data source: only the files you link in the input. The Actor downloads each file once, processes it inside the run and does not call any other service.
- Software and license: FFmpeg and FFprobe from the Debian 12 (bookworm) package, built by Debian with
--enable-gpland without--enable-nonfree, so the binaries are under the GNU GPL version 2 or later and contain no non-free codecs. H.264 is encoded with x264 (GPL), VP9 with libvpx, Opus with libopus, MP3 with LAME, Vorbis with libvorbis and AAC with FFmpeg's own encoder. The source code is available from Debian at sources.debian.org/src/ffmpeg, and we send you the exact source on request. Not affiliated with the FFmpeg project. FFmpeg is a trademark of Fabrice Bellard. - Snapshot: Each run processes the files as they are at the link at the time of the run.
- Your files, your rights: Only submit files that you own or that you are allowed to process, for example your own videos and recordings, or material under a license that permits it. Links to video platforms, streaming and social media sites are refused.
- Storage: The downloaded file and intermediate files exist only on the run's temporary disk and are deleted when the job is done. Output files and rows are stored only in the run's own key-value store and dataset, under your Apify account and your retention settings. We do not keep copies.
- For business use: This Actor is offered to businesses only, not to consumers.
- Your responsibility: You choose the files and decide what happens with the results. Respect copyright and the rights of the people shown or heard. If your files contain personal data, you are the controller and need your own legal basis.
- No circumvention: The Actor downloads plain file links only. It does not bypass logins, paywalls, DRM or access restrictions.
- Request volume: One download per job, at most two at the same time, retries with backoff on HTTP 429 and 5xx (at most 3 attempts). Do not use it to put excessive load on a server.
- Provider: forgeloop, Markus Heiss, Austria. Imprint, Privacy Notice, Terms of Use.
Questions and issues
Open an issue on the Actor page.