# MP4 to MP3 & Video Converter: Compress, Trim, WAV (`ingeniela/video-audio-converter-compressor`) Actor

Convert your own videos and audio from Dropbox, Google Drive or any link to MP4, MP3, M4A or WAV, compress to a target size, resize, trim and normalize loudness. Returns download links, perfect for n8n and Make.

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

## Pricing

from $20.00 / 1,000 file converteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## MP4 to MP3 & Video Converter: Compress, Trim, WAV

Convert **your own videos and audio** from **Dropbox, Google Drive or any direct link** into the format you need: **MP4** that plays everywhere, **MP3**, **M4A**, **WAV**, or **WAV for transcription** (16 kHz mono, what Whisper and most speech-to-text APIs want). You can also **compress to a target size**, **resize** (1080p, 720p, 480p…), **trim** and **normalize loudness**. Every file comes back with a **download link**, so it slots into **n8n, Make or Zapier** automations.

### Tutorial (1 minute)

![Step-by-step tutorial: what to fill in, click Start, the real result and the price](https://api.apify.com/v2/key-value-stores/RXaOr7FspyrQ4JP88/records/media-converter-tutorial.gif)

### What people use it for

- **Too big to send:** compress a 300 MB screen recording to 25 MB for email, or 100 MB for WhatsApp or LinkedIn.
- **Podcast and transcription:** extract the audio as MP3, or as speech WAV before a transcription step.
- **Phone videos that don't play:** turn iPhone MOV/HEVC into H.264 MP4.
- **Clips for social media:** trim a part (`0:15` to `1:45`), resize to 720p, even out the volume.
- **Automations:** a new file in Dropbox or Drive → n8n calls this Actor → the converted file link goes to the next step (captions, upload, email).

### What you get (one row per file)

File name, **download link**, format, new size and original size in MB, duration, width and height. If a file fails (not a media file, or a private Drive link), the row says why. You are only charged for files that were converted.

Real run: a 2.72 MB sample video became **0.76 MB at 480p** with even loudness.

### How to use it

1. Paste **file links**. For Google Drive and Dropbox, share the file as *anyone with the link*.
2. Choose the **format**. For MP4, optionally a **max height** and a **target size**.
3. Optional: **start and end** times, and **normalize loudness**.
4. Click **Start** and download the files from the results (or use the `fileUrl` in your automation).

### Input example

```json
{
  "fileUrls": ["https://www.dropbox.com/s/abc123/interview.mov?dl=0"],
  "format": "mp4",
  "maxHeight": "720",
  "targetSizeMb": 25,
  "trimStart": "0:15",
  "trimEnd": "1:45",
  "normalizeAudio": true
}
```

### Pricing

| Event | Price |
|---|---|
| File converted | $0.02 |

### Good to know

- **Your own or licensed files only.** Links to YouTube, TikTok, Instagram, Facebook, X, Vimeo or Twitch are not downloaded. Use the original file of your video instead.
- Files up to 2 GB. Very long 4K videos take a few minutes. Give the run more memory for faster conversions.
- Converted files stay in the run's storage for as long as your Apify plan keeps run data (7 days on the free plan). Download them or move them in your automation.

# Actor input Schema

## `fileUrls` (type: `array`):

Dropbox, Google Drive ('anyone with the link') or direct links to your own video or audio files.

## `format` (type: `string`):

Output format.

## `maxHeight` (type: `string`):

MP4 only. Never upscales.

## `targetSizeMb` (type: `integer`):

MP4 only. e.g. 25 for email, 100 for WhatsApp or LinkedIn. Empty = good quality, normal size.

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

Seconds or mm:ss, e.g. 0:15.

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

Seconds or mm:ss, e.g. 1:45.

## `normalizeAudio` (type: `boolean`):

Even volume at the -16 LUFS level used by podcasts and social platforms.

## Actor input object example

```json
{
  "fileUrls": [
    "https://download.samplelib.com/mp4/sample-5s.mp4"
  ],
  "format": "mp4",
  "maxHeight": "original",
  "normalizeAudio": false
}
```

# Actor output Schema

## `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 = {
    "fileUrls": [
        "https://download.samplelib.com/mp4/sample-5s.mp4"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ingeniela/video-audio-converter-compressor").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 = { "fileUrls": ["https://download.samplelib.com/mp4/sample-5s.mp4"] }

# Run the Actor and wait for it to finish
run = client.actor("ingeniela/video-audio-converter-compressor").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 '{
  "fileUrls": [
    "https://download.samplelib.com/mp4/sample-5s.mp4"
  ]
}' |
apify call ingeniela/video-audio-converter-compressor --silent --output-dataset

```

## MCP server setup

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

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/aWWAa2ROZh8EJNlwH/builds/QBcQ6PyimOMyGEBlw/openapi.json
