# Video to MP4 - MOV, MKV, WEBM, AVI (no file retention) (`hushvert/video-to-mp4`) Actor

Convert MOV, MKV, WEBM, AVI and GIF to universally playable MP4 (H.264/AAC) with native ffmpeg - files up to 500 MB, no browser-sandbox size ceiling. Privacy-first: inputs deleted at conversion end, outputs within an hour, failed runs never charge.

- **URL**: https://apify.com/hushvert/video-to-mp4.md
- **Developed by:** [Nir Diamant](https://apify.com/hushvert) (community)
- **Categories:** Videos, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$150.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Video to MP4 - MOV, MKV, WEBM, AVI (no file retention)

Convert video containers to universally-playable MP4 (H.264/AAC): MOV, MKV,
WEBM, AVI, and GIF in; MP4 out. Native ffmpeg on a server lane - no WASM size
ceiling - with files up to 500 MB.

### Why this converter

- **Universal playback out.** The output is a valid H.264/AAC MP4 that plays
  in every browser, phone, and editor - the format everything accepts.
- **Real ffmpeg, big files.** The conversion runs on a native ffmpeg lane, not
  a browser sandbox: 500 MB inputs are fine.
- **No file retention.** The input is deleted the moment the conversion
  finishes. The output is kept for about an hour, then deleted. Your videos
  are not stored, mined, or used for anything.
- **Failed runs never charge.** One dataset item per successful conversion; a
  failure produces no item and no charge.

### How do I convert a video to MP4 on Apify?

1. Press **Start** with the prefilled sample, or paste your own direct video
   URL (`.mov`, `.mkv`, `.webm`, `.avi`, `.gif`).
2. Wait for the run to finish; video takes longer than documents, and a long
   high-resolution file can take several minutes.
3. Download the MP4 from the run's **Storage** tab (the `OUTPUT` record), or
   follow the `outputUrl` in the dataset row.

### Input

```json
{
  "fileUrl": "https://example.com/screen-recording.mov"
}
```

- `fileUrl` (required): direct http(s) URL of the video, up to 500 MB. The
  format comes from the extension (`.mov`, `.mkv`, `.webm`, `.avi`, `.gif`).
- `fileName` (optional): set it when the URL has no usable extension; it picks
  the input format and names the output.
- `maxWaitSeconds` (optional): how long to wait before failing, default 570
  (video conversion takes longer than documents).

### Output

- The MP4 is stored as the `OUTPUT` record of the run's key-value store
  (the dataset row carries its direct `outputUrl`).
- One dataset row per successful conversion: `pair`, `fileName`,
  `outputFileName`, `inputBytes`, `outputBytes`, `durationSeconds`, `outputUrl`.

### How much does it cost?

$0.15 per successful conversion, platform usage included - the price you see
is the whole price, whether the file is 5 MB or 500 MB. A failed run produces
no dataset item and no charge. A free Apify account is enough to use it;
conversions bill against your Apify usage balance.

### Run it from code

JavaScript ([apify-client](https://docs.apify.com/api/client/js/)):

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('hushvert/video-to-mp4').call({
  fileUrl: 'https://example.com/screen-recording.mov',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0].outputUrl); // direct MP4 download link, valid ~1 hour
```

Python ([apify-client](https://docs.apify.com/api/client/python/)):

```python
from apify_client import ApifyClient

client = ApifyClient('YOUR_APIFY_TOKEN')
run = client.actor('hushvert/video-to-mp4').call(
    run_input={'fileUrl': 'https://example.com/screen-recording.mov'})
items = client.dataset(run['defaultDatasetId']).list_items().items
print(items[0]['outputUrl'])
```

Plain HTTP (one call, returns the dataset row when the conversion finishes):

```bash
curl -X POST \
  'https://api.apify.com/v2/acts/hushvert~video-to-mp4/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN' \
  -H 'content-type: application/json' \
  -d '{"fileUrl": "https://example.com/screen-recording.mov"}'
```

### Can I use it from n8n, Make, Zapier, or LangChain?

Yes. Like any Apify actor, it plugs into
[n8n](https://docs.apify.com/platform/integrations/n8n),
[Make](https://docs.apify.com/platform/integrations/make),
[Zapier](https://docs.apify.com/platform/integrations/zapier), and
[LangChain](https://docs.apify.com/platform/integrations/langchain) through
Apify's official integrations; select the actor by name,
`hushvert/video-to-mp4`. AI agents can also call it as a tool through
[Apify's MCP server](https://docs.apify.com/platform/integrations/mcp).

### Is it private?

- The conversion runs on hushvert's server lane (native ffmpeg), not inside
  this actor. Retention: inputs deleted at conversion end, outputs auto-deleted
  after about an hour.
- Your videos are never stored beyond that window, never mined, and never used
  to train anything.

### FAQ

#### What codec does the output use?

Every input is re-encoded to H.264/AAC (x264, quality-targeted CRF 23, with
faststart for instant web playback), so the output plays everywhere regardless
of the source codec.

#### What is the file size limit?

500 MB per file - this runs on a native ffmpeg lane, not a browser sandbox.

#### My conversion timed out. What now?

A long high-resolution video can exceed the wait window; raise
`maxWaitSeconds` toward 570 for big files. A timed-out run charges nothing.

#### Does it convert GIFs?

Yes: animated GIF in, small universally-playable MP4 out - usually a fraction
of the GIF's size.

#### What happens when a conversion fails?

The run fails with the converter's real error message, produces no dataset
item, and charges nothing.

### More private converters from hushvert

- [DOCX to PDF](https://apify.com/hushvert/docx-to-pdf): Word to PDF.
- [PDF to DOCX](https://apify.com/hushvert/pdf-to-docx): PDF back to editable
  Word, real text and tables, correct Hebrew/Arabic reading order.
- [Office to PDF](https://apify.com/hushvert/office-to-pdf): Word, Excel,
  PowerPoint, OpenDocument, RTF, HTML in; PDF out.
- [PDF to Markdown](https://apify.com/hushvert/pdf-to-markdown): clean Markdown
  for LLM context windows and RAG ingestion.
- [Document to Markdown](https://apify.com/hushvert/document-to-markdown):
  eight document formats to Markdown, inline in the dataset.
- [HTML to PDF](https://apify.com/hushvert/html-to-pdf): real Chromium render,
  paste HTML inline for invoices and reports.

### Who is behind this actor?

Built by the hushvert founder. The browser-side conversion engine is MIT open
source (`@hushvert/engine` on npm); formats a browser can convert (images, HEIC,
audio, archives, PDF page ops) are free and client-side at
https://hushvert.com and are deliberately not sold here. Developer API docs:
https://hushvert.com/for-developers

# Actor input Schema

## `fileUrl` (type: `string`):

Direct http(s) download URL of the video, up to 500 MB. The format is inferred from the file extension. The file is fetched once, converted, and the input is deleted the moment the conversion finishes.

## `fileName` (type: `string`):

Set this when the URL has no usable extension, e.g. clip.mkv; it picks the input format and names the output.

## `maxWaitSeconds` (type: `integer`):

How long to wait for the conversion before failing. Default 570 (video takes longer).

## Actor input object example

```json
{
  "fileUrl": "https://hushvert.com/samples/sample.mov"
}
```

# Actor output Schema

## `convertedFile` (type: `string`):

The converted file, stored as the OUTPUT record of the run's key-value store.

## `conversions` (type: `string`):

One dataset row per successful conversion: file names, byte counts, duration.

# 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 = {
    "fileUrl": "https://hushvert.com/samples/sample.mov"
};

// Run the Actor and wait for it to finish
const run = await client.actor("hushvert/video-to-mp4").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 = { "fileUrl": "https://hushvert.com/samples/sample.mov" }

# Run the Actor and wait for it to finish
run = client.actor("hushvert/video-to-mp4").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 '{
  "fileUrl": "https://hushvert.com/samples/sample.mov"
}' |
apify call hushvert/video-to-mp4 --silent --output-dataset

```

## MCP server setup

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

```

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/GZ2rJbO3CsLkELuJM/builds/oFshZQ9Ocnym6cBw8/openapi.json
