---
title: "YouTube Download API: H.264 or AV1 in Your MP4? What 11 APIs Delivered"
description: "Tornado API sent the same YouTube videos to 10 other download APIs with the same MP4, 1080p setting. Five returned H.264/AAC every time, five returned AV1 or VP9 on some videos."
url: https://tornadoapi.io/blog/youtube-download-api-h264-or-av1
published: 2026-12-01
---

# YouTube Download API: H.264 or AV1 in Your MP4? What 11 APIs Delivered

The same request, MP4 at 1080p, does not return the same file from every YouTube download API. In a test run and published by Tornado API on 1 December 2026, five services returned H.264 video with AAC audio on every file and Tornado API on 49 of 50, while five services returned AV1 or VP9 on at least one video, three of them with Opus audio. On the same 21 videos, the AV1 files were 40% smaller in total than the H.264 files. Neither result is better in general: it depends on where the file is played, edited and billed.

If you are choosing a [YouTube downloader API that delivers finished MP4 files](https://tornadoapi.io/youtube-downloader-api), check the codec before the price per GB.

## How was this measured?

- Date: 1 December 2026, one pass.
- Videos: public YouTube videos under a Creative Commons licence.
- Settings: the same on both sides of each pair, MP4 at 1080p at most. One pair ran at 720p (VidFetch), and one pair was run at 2160p.
- Each competitor was tested against Tornado API on the same video, submitted at the same moment, one pair at a time, from a single computer. FlashData was tested separately on 50 videos sent to the same storage bucket.
- Every competitor ran on its free trial.
- Every delivered file was read with `ffprobe`. The `vcodec`, `acodec` and `octets` (bytes) columns come from that reading.

The raw rows are public: [measurements.csv](https://tornadoapi.io/resources/benchmarks/2026-12-01/measurements.csv) for the pairs and [flashdata-pilot.csv](https://tornadoapi.io/resources/benchmarks/2026-12-01/flashdata-pilot.csv) for the 50-video run.

The CSV also holds two times per job. They are different things: the time until the API announces the job as finished, and the time until the complete file is on the test machine. For Tornado API and the other services that return a finished file, the second time depends on the connection of the test machine (one connection, about 55 to 60 MB/s), not only on the service.

## Which APIs delivered H.264/AAC, and which delivered AV1 or VP9?

| Service (competitors on their free trial) | Files read | Video codec | Audio codec |
| --- | ---: | --- | --- |
| Tornado API, 50-video run | 50 | 49 H.264, 1 AV1 | AAC |
| Vid Kraken | 5 | H.264 | AAC |
| Suprsonic | 4 | H.264 | AAC |
| SaveAPI | 4 | H.264 | AAC |
| FastSaver | 4 | H.264 | AAC |
| VidFetch (720p) | 3 | H.264 | AAC |
| Importly | 4 | 2 AV1, 2 H.264 | AAC |
| VideoDL | 4 | 2 AV1, 2 H.264 | Opus |
| RenderIO | 5 | 4 AV1, 1 H.264 | Opus |
| FlashData | 40 | 22 AV1, 16 H.264, 2 VP9 | Opus |
| VideoDownloadAPI (2160p) | 1 | VP9 | AAC |

Two details matter for a fair reading.

- Tornado API is not H.264 only. One of its 50 files at 1080p was AV1, and its 2160p file was AV1 with AAC. If your pipeline requires H.264, test your own URLs.
- No service returned AV1 at 720p in this data. All 15 FlashData files at 720p were H.264, with Opus audio.

## How much smaller were the AV1 files?

Same video, same 1080p height, same duration. Sizes in MB (1 MB = 1,000,000 bytes).

| Video (duration) | AV1 file | Tornado API H.264/AAC file | AV1 size vs H.264 |
| --- | ---: | ---: | ---: |
| sO_lhW8av3U (2 min 29 s) | RenderIO, AV1/Opus: 21.3 MB | 42.5 MB | 50% |
| mHrHLqQj7Ts (4 min 39 s) | RenderIO, AV1/Opus: 33.4 MB | 64.9 MB | 52% |
| mHrHLqQj7Ts (4 min 39 s) | Importly, AV1/AAC: 33.9 MB | 64.9 MB | 52% |
| mfAelJR6B7A (10 min 59 s) | RenderIO, AV1/Opus: 40.4 MB | 81.3 MB | 50% |
| 9DlaEI4Xhgg (12 min 29 s) | RenderIO, AV1/Opus: 183.2 MB | 293.2 MB | 63% |
| ZDxF2uiuyvQ (40 min 9 s) | VideoDL, AV1/Opus: 197.5 MB | 222.2 MB | 89% |
| ZDxF2uiuyvQ (40 min 9 s) | Importly, AV1/AAC: 200.9 MB | 222.2 MB | 90% |

The 50-video run gives a wider view. On the 21 videos where FlashData delivered AV1 and Tornado API delivered H.264:

| | FlashData, AV1/Opus | Tornado API, H.264/AAC |
| --- | ---: | ---: |
| Total delivered | 3.82 GB | 6.41 GB |
| AV1 size as a share of H.264, total | 60% | |
| Median per video | 63% | |
| Range per video | 47% to 84% | |

## Is the alternative codec always smaller?

No. Three results go the other way or show almost no gap.

| Case | Other file | Tornado API file |
| --- | ---: | ---: |
| YLDfPf_mQHs, 1080p, FlashData VP9/Opus vs H.264/AAC | 947.0 MB | 397.9 MB |
| dVrELpmfcEQ, 1080p, FlashData VP9/Opus vs H.264/AAC | 2,014.2 MB | 477.1 MB |
| sO_lhW8av3U, 2160p, VideoDownloadAPI VP9/AAC vs AV1/AAC | 277.1 MB | 114.2 MB |

- The two VP9 files at 1080p were 2.4 and 4.2 times larger than the H.264 file of the same video.
- When both sides delivered H.264, sizes matched closely. The five Vid Kraken files were within 1% of the Tornado API files.
- With H.264 video on both sides at 720p, the 15 FlashData files with Opus audio were 9% smaller in total than the Tornado API files with AAC audio.

## What does the codec change for playback and editing?

The MP4 extension does not answer this. The streams inside do, as explained in [MP4 is a container: check video codecs before blaming the file](https://tornadoapi.io/blog/mp4-container-video-codec-compatibility).

| Use | What usually fits | Why |
| --- | --- | --- |
| Editing software, older devices, upload to third-party platforms | H.264 video with AAC audio | The most widely accepted pair. Fewer rejected imports. |
| Long-term archive, large volumes, modern browsers | AV1 | Smaller files on most videos in this test. Decoding needs recent hardware or software. |
| Transcription or audio analysis | Either | The video codec is discarded. Check the audio codec your tool accepts. |

Opus audio inside an MP4 deserves its own check. Some editors and players that open H.264/AAC without trouble do not accept it. MDN keeps a [guide to video codecs](https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Formats/Video_codecs) and their support.

## What does it change on the bill?

When a service bills by volume, a smaller file costs less. The codec choice is therefore also a price choice.

- Importly reported a cost of $0.066 for its 33.9 MB AV1 file of mHrHLqQj7Ts. Its public price on 1 December 2026 is $0.002 per MB. The 64.9 MB H.264 file of the same video would come to about $0.13 at that rate. That last figure is our arithmetic, not a measurement.
- Importly documents a `compatibleCodecs` option that requests H.264 with AAC. This test did not measure the cost with that option.
- Tornado API bills on billable volume per GB, and a billing floor can make that volume differ from the delivered file size. Its H.264 files were the larger ones in most pairs above, so compare cost on files of the codec you will actually use. A method is in [estimate media API cost from a representative sample](https://tornadoapi.io/blog/estimate-media-api-cost-representative-sample).
- Storage in your own bucket follows the same logic: 6.41 GB against 3.82 GB for the same 21 videos.

## How do you check the codec of a delivered file?

Run `ffprobe` on a delivered file, not on the API response:

```bash
ffprobe -v error -show_entries stream=codec_type,codec_name,width,height -of csv=p=0 delivered.mp4
```

A 1080p H.264/AAC file prints two lines like these:

```text
video,h264,1920,1080
audio,aac
```

If you see `av1`, `vp9` or `opus`, decide whether your player, editor or next processing step accepts it. Check the height in the same pass, as described in [verify delivered video resolution](https://tornadoapi.io/blog/verify-delivered-video-resolution). Run the check on several URLs: in this test, the same service returned different codecs for different videos.

## What about speed?

The same CSV shows where Tornado API was not first. SaveAPI was faster on one video of four (5.1 s against 11.4 s). VideoDL (14.1 s against 13.6 s) and Vid Kraken (6.8 s against 7.6 s) were each within one second on one video.

## What this test does not show

- Few videos per pair: 3 to 5 for most services, 40 for FlashData, 1 at 2160p.
- One pass, one day, one computer.
- Free trials may be served differently from paid plans, including the codec.
- Codec options, where a service has them, were not compared.
- Nothing about reliability, and nothing about picture quality at equal size.

To see which codec Tornado API delivers for your own sources, run a few representative URLs and read the files with `ffprobe`. Eligible new accounts get 100 GB free for 7 days: [open the Tornado API dashboard](https://dash.tornadoapi.io).
