# Audio & Video Converter: MP4, WebM, MP3, GIF, Compress (`plotpointtech/audio-video-converter`) Actor

Convert, compress, resize and trim your own audio and video files with ffmpeg: MP4, WebM, MOV, GIF, MP3, M4A, WAV, FLAC. Target file size, loudness normalisation, download links. From $6 per 1,000 video minutes.

- **URL**: https://apify.com/plotpointtech/audio-video-converter.md
- **Developed by:** [Plot Point Technologies](https://apify.com/plotpointtech) (community)
- **Categories:** Videos, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.24 / 1,000 output files

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Audio & Video Converter: MP4, WebM, MP3, GIF, Compress

**Convert, compress, resize and trim audio and video files in bulk from $0.006 per minute of video and $0.002 per minute of audio.** Give it direct links to your media files or an Apify key-value store, pick one or more output formats (**MP4, WebM, MOV, MKV, GIF, MP3, M4A, WAV, OGG, FLAC, Opus**), and get a download link for every converted file with its size, duration, codecs and resolution. It runs on **ffmpeg**, so it reads almost any format.

### What can this media converter do?

- **Convert video** to MP4 (H.264 or H.265), WebM (VP9), MOV or MKV, or change only the container without re-encoding (`copy`).
- **Extract audio** from video as MP3, M4A, WAV, OGG, FLAC or Opus, or convert audio files between those formats.
- **Compress**: set a **target file size** in MB (two-pass bitrate) or a constant-quality **CRF** value, and choose a speed preset.
- **Resize** to a maximum width or height (aspect ratio kept, never enlarged) and change the **frame rate**.
- **Trim** to a start and end time, **remove the audio** track or **normalise loudness** to the streaming standard (EBU R128, -16 LUFS).
- **Animated GIF** from any clip, with its own frame rate and width.
- **Speech-ready audio:** mono, 16 kHz output for speech-to-text tools.
- **Batch:** every input file is converted to every format you pick, several files in parallel. Limits for file size, duration and number of files keep costs predictable.

### What data do you get?

One record per converted file:

| Field | Description |
|---|---|
| `status`, `fileName`, `downloadUrl` | Result and download link of the converted file |
| `source`, `outputFormat`, `contentType` | Which input file and which format |
| `inputBytes`, `outputBytes`, `sizeChangePercent` | File size before and after |
| `inputDurationSeconds`, `outputDurationSeconds` | Length before and after trimming |
| `videoCodec`, `audioCodec`, `width`, `height`, `fps`, `bitrateKbps` | Properties of the output file |
| `inputContainer`, `inputVideoCodec`, `inputAudioCodec`, `inputWidth`, `inputHeight` | Properties of the input file |
| `operations`, `crf`, `preset`, `targetSizeMB`, `targetMet` | What was done to the file |
| `priceTier`, `billedMinutes` | How the file was charged |

### Who uses it?

- **Marketers and social media teams** turning one master video into MP4, WebM and GIF versions in the right sizes.
- **Podcasters and e-learning teams** extracting MP3 audio from recordings and evening out the volume.
- **Developers** adding a "convert and compress uploads" step to an app or pipeline without running ffmpeg servers.
- **AI and data teams** preparing 16 kHz mono audio for transcription and shrinking video before analysis.

### How to use it

1. Click **Try for free** (or **Start**).
2. Add **Media file URLs** (direct links to the files) or choose an Apify **key-value store** that holds your files.
3. Pick the formats under **Convert to**.
4. Optionally set a target size or quality, a maximum width or height, trim times or audio options.
5. Run it and open the **Output** tab to download every converted file.

### Input example

```json
{
  "mediaUrls": [{ "url": "https://example.com/videos/product-demo.mov" }],
  "outputFormats": ["mp4", "webm", "mp3"],
  "maxWidth": 1280,
  "targetSizeMB": 20,
  "normalizeLoudness": true
}
```

### Output example

From a real run with the default public-domain NASA sample (the default run converts its first 10 seconds):

```json
{
  "status": "ok",
  "fileName": "ksc_080504_apollo-mobile.webm",
  "downloadUrl": "https://api.apify.com/v2/key-value-stores/g6kiYZbF4KX5qbf9J/records/ksc_080504_apollo-mobile.webm?signature=...",
  "outputFormat": "webm",
  "contentType": "video/webm",
  "inputBytes": 5102231,
  "outputBytes": 236965,
  "sizeChangePercent": -95.4,
  "inputDurationSeconds": 116.94,
  "outputDurationSeconds": 10.01,
  "inputVideoCodec": "h264",
  "videoCodec": "vp9",
  "audioCodec": "opus",
  "width": 320,
  "height": 212,
  "fps": 15,
  "operations": ["trim 0s to 10s", "encode VP9 (veryfast, CRF 33)"],
  "priceTier": "sd",
  "billedMinutes": 1
}
```

### How much does it cost?

You pay **$0.002 per output file** plus a price per started minute of output, by resolution:

| Output | Price per minute |
|---|---|
| Audio (MP3, M4A, WAV, OGG, FLAC, Opus) | $0.002 |
| Video up to 576p, and GIF | $0.006 |
| Video 720p | $0.012 |
| Video 1080p | $0.020 |
| Video above 1080p (up to 4K) | $0.080 |

Plus a $0.00005 start fee per run.

| You convert | You pay |
|---|---|
| The default run (sample clip to WebM and MP3) | $0.01 |
| 100 podcast episodes of 45 minutes to MP3 | $9.20 |
| 50 two-minute 1080p clips to WebM | $2.10 |
| A one-hour 720p webinar compressed to MP4 | $0.72 |

Files that cannot be downloaded or read, or that are over your size or duration limits, are listed with an error and not charged. Set a maximum cost per run in Apify Console and the tool stops when it is reached.

**Volume discounts on higher Apify plans.** The prices above are for the Apify Free plan. On paid plans they drop automatically: about 15% lower on Bronze, 25% lower on Silver and 38% lower on Gold and above.

### Use it via API, Make, Zapier, n8n or an AI agent

**Apify API.** Start a run and get the results back in one HTTP request (replace `YOUR_API_TOKEN` with the token from Apify Console > Settings > Integrations):

```bash
curl -X POST "https://api.apify.com/v2/acts/plotpointtech~audio-video-converter/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mediaUrls": [{"url": "https://example.com/audio/episode-12.wav"}], "outputFormats": ["mp3"], "normalizeLoudness": true}'
```

Official `apify-client` libraries exist for Python and JavaScript; the **API** tab on this page has ready-made code.

**No-code automation.** Connect the tool to **Make, Zapier, n8n, Google Drive, Dropbox, Slack** or any webhook with Apify integrations.

**AI agents (MCP).** Give Claude, ChatGPT, Cursor or any MCP-compatible agent direct access through the hosted Apify MCP server:

```
https://mcp.apify.com?tools=plotpointtech/audio-video-converter
```

### FAQ

**Can I convert YouTube, TikTok, Instagram or Vimeo links?**
No. The tool only reads **direct links to media files** and files in your Apify storage. Downloading from video platforms is against their terms, so page links from those sites are refused. Use it on your own files or ones you have the right to process.

**Which formats can it read?**
Anything ffmpeg reads: MP4, MOV, WebM, MKV, AVI, M4V, MPEG-TS, FLV, 3GP, WMV, MP3, WAV, M4A, AAC, FLAC, OGG, Opus and more. DRM-protected files and streaming playlists (HLS/DASH) are not supported.

**How do I make a video smaller?**
Set **Target file size (MB)** for a predictable size, or a **CRF** value (higher means smaller) and a **Maximum width**. H.265 makes smaller MP4 files than H.264 but plays on fewer devices.

**How big can files be?**
Up to 1 GB and 60 minutes per file by default; you can raise both limits. Long or high-resolution videos take longer, so give the run more memory (more memory also means more CPU on Apify).

**Where are the converted files stored?**
In your Apify key-value store, kept for as long as your plan keeps run storage. The download links contain a signature, so anyone you share a link with can download that file.

### Related tools from Plot Point Technologies

- [Video Frame Extractor: Thumbnails & Scene Changes](https://apify.com/plotpointtech/video-frame-extractor): still frames, thumbnails and contact sheets from your videos.
- [Audio & Podcast Transcription - Whisper (Bulk)](https://apify.com/plotpointtech/audio-podcast-transcription-whisper): transcripts with timestamps from audio and video files.
- [Bulk Image Converter & Compressor: WebP, AVIF, JPG, PNG, Resize](https://apify.com/plotpointtech/bulk-image-converter-compressor): the same for images.

Plot Point Technologies is not affiliated with the FFmpeg project or NASA (source of the public-domain sample video). Questions: support@plotpoint.tech.

***

If this tool saved you time, we would be grateful for a short review on this page; it helps other people find it. If something did not work as expected, please open an issue on the **Issues** tab and we will look into it quickly.

# Actor input Schema

## `mediaUrls` (type: `array`):

Direct links to audio or video files (MP4, MOV, WebM, MKV, AVI, MP3, WAV, M4A, FLAC, ...). Platform pages such as YouTube, TikTok, Instagram or Vimeo are refused. Leave empty and add nothing else to convert the first 10 seconds of a public-domain NASA sample clip.

## `keyValueStoreId` (type: `string`):

Optional. Convert every file in one of your key-value stores (for example uploads from another run).

## `keyPrefix` (type: `string`):

Only convert keys in the store that start with this text.

## `outputFormats` (type: `array`):

One or more output formats. Each input file is converted to every format you pick. Video: mp4, webm, mov, mkv, gif. Audio only: mp3, m4a (AAC), wav, ogg (Opus), flac.

## `videoCodec` (type: `string`):

Auto picks H.264 for MP4/MOV/MKV and VP9 for WebM. Copy changes the container or trims without re-encoding.

## `preset` (type: `string`):

Slower presets make slightly smaller files and take longer.

## `crf` (type: `integer`):

Constant quality. Lower is better and bigger. Typical: 23 for H.264, 28 for H.265, 32 for VP9. Leave empty for sensible defaults.

## `targetSizeMB` (type: `integer`):

Compress each video to about this size (two-pass bitrate). Overrides CRF.

## `maxWidth` (type: `integer`):

Shrink larger videos to this width (aspect ratio kept). Never enlarges.

## `maxHeight` (type: `integer`):

Shrink larger videos to this height (aspect ratio kept). Never enlarges.

## `fps` (type: `integer`):

Leave empty to keep the original.

## `trimStart` (type: `string`):

Seconds or hh:mm:ss, for example 0:30.

## `trimEnd` (type: `string`):

Seconds or hh:mm:ss, for example 1:45.

## `mute` (type: `boolean`):

Drop the audio track from video outputs.

## `normalizeLoudness` (type: `boolean`):

Even out volume to the streaming standard (EBU R128, -16 LUFS).

## `audioBitrateKbps` (type: `integer`):

For MP3, M4A, OGG and the audio track of videos.

## `audioChannels` (type: `string`):

Keep, or mix down to mono or stereo.

## `audioSampleRate` (type: `string`):

Keep, or resample (16000 is common for speech-to-text).

## `gifFps` (type: `integer`):

Frames per second for animated GIF output.

## `gifWidth` (type: `integer`):

Width of animated GIF output; height follows the aspect ratio.

## `maxFileSizeMB` (type: `integer`):

Files larger than this are skipped (not charged).

## `maxDurationMinutes` (type: `integer`):

Longer files are skipped (not charged).

## `maxFiles` (type: `integer`):

Stop after this many input files.

## Actor input object example

```json
{
  "mediaUrls": [
    {
      "url": "https://images-assets.nasa.gov/video/ksc_080504_apollo/ksc_080504_apollo~mobile.mp4"
    }
  ],
  "outputFormats": [
    "webm",
    "mp3"
  ],
  "videoCodec": "auto",
  "preset": "veryfast",
  "mute": false,
  "normalizeLoudness": false,
  "audioBitrateKbps": 128,
  "audioChannels": "original",
  "audioSampleRate": "original",
  "gifFps": 12,
  "gifWidth": 480,
  "maxFileSizeMB": 1024,
  "maxDurationMinutes": 60,
  "maxFiles": 0
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `files` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mediaUrls": [
        {
            "url": "https://images-assets.nasa.gov/video/ksc_080504_apollo/ksc_080504_apollo~mobile.mp4"
        }
    ],
    "outputFormats": [
        "webm",
        "mp3"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("plotpointtech/audio-video-converter").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mediaUrls": [{ "url": "https://images-assets.nasa.gov/video/ksc_080504_apollo/ksc_080504_apollo~mobile.mp4" }],
    "outputFormats": [
        "webm",
        "mp3",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("plotpointtech/audio-video-converter").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mediaUrls": [
    {
      "url": "https://images-assets.nasa.gov/video/ksc_080504_apollo/ksc_080504_apollo~mobile.mp4"
    }
  ],
  "outputFormats": [
    "webm",
    "mp3"
  ]
}' |
apify call plotpointtech/audio-video-converter --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plotpointtech/audio-video-converter"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/59kQaIY9c051ILRuG/builds/KDhEaVabRr0a4oEk1/openapi.json
