How to Compress a Video for YouTube

The right way to compress a video for YouTube is to target the bitrate YouTube publishes rather than a file size you picked. For 1080p SDR that's 8 Mbps at standard frame rates and 12 Mbps at high frame rates.

Compress a video for YouTube to the recommended bitrate

Multiply that bitrate by your runtime and you have the file size you should be aiming at. Going under it means handing YouTube a degraded source, which it will then re-encode, so the loss is permanent and compounded. Going far over it mostly wastes your upload time, because the transcode happens regardless.

The rest of YouTube's recommended encode is specific enough to paste into an export dialog: H.264, progressive scan with no interlacing, High Profile, two consecutive B frames, closed GOP, CABAC, and variable bitrate.

The audio is not where you save space

There's a persistent instinct to drop audio quality when a file is too big. It's the wrong lever: audio is a small share of a video file's size, and it's the part viewers notice fastest.

YouTube asks for AAC-LC or Opus, in stereo or stereo plus 5.1, at a 48 kHz sample rate. Meet that and move on. The savings you were looking for are in the video stream, in the frame size, or in the runtime.

One export, already in an efficient codec

Montaj exports HEVC in an .mp4 container. HEVC compresses more efficiently than H.264 at comparable visual quality, which means the file coming out is already reasonably lean without a separate compression pass bolted on afterwards.

That matters mostly for what it prevents: a second encode. Editing on the device, exporting once, and uploading that file avoids the extra generation of loss that a compress-after-export workflow introduces. It's a shorter route to the same place as trying to compress a video for YouTube once you've already exported it.

How to get a YouTube upload down to a sensible size in 4 steps

  1. 1

    Aim at YouTube's published bitrate, not at a file size

    For 1080p SDR, YouTube's recommended upload bitrate is 8 Mbps at standard frame rates and 12 Mbps at high frame rates. That number, times the runtime, is your target.

  2. 2

    Encode with the settings YouTube asks for

    H.264 in High Profile, progressive scan, closed GOP, CABAC entropy coding, two consecutive B frames and variable bitrate. These are the exact terms in YouTube's recommended upload settings.

  3. 3

    Don't starve the audio

    YouTube asks for AAC-LC or Opus, stereo or stereo plus 5.1, at a 48 kHz sample rate. Audio is a small fraction of the file, so cutting it is a poor trade.

  4. 4

    Export once

    Every re-encode is a generation of loss. Compressing a finished export a second time to hit an arbitrary number costs quality that YouTube's own transcode will then compound.

The verdict

Most people compressing for YouTube are solving a problem they don't have. YouTube re-encodes everything you send it, so the only file size that matters is the one your connection can actually push, and squeezing below the recommended bitrate to save upload time hands the transcoder a worse source for no permanent gain. Hit 8 Mbps at 1080p, encode once, and spend the effort on the audio instead.

Kenji, Content Creator & Strategist

Download Montaj free

Frequently asked questions

How do I compress a video for YouTube without ruining the quality?
Target YouTube's published upload bitrate rather than a file size. For 1080p SDR that's 8 Mbps at standard frame rates and 12 Mbps at high frame rates, encoded as H.264 High Profile with variable bitrate.
What bitrate should I upload to YouTube?
YouTube recommends 8 Mbps for 1080p SDR at standard frame rates, and 12 Mbps for 1080p SDR at high frame rates.
What are YouTube's recommended encoding settings?
H.264 video using progressive scan, High Profile, two consecutive B frames, closed GOP and CABAC, with variable bitrate; and AAC-LC or Opus audio in stereo or stereo plus 5.1 at 48 kHz.
Does uploading a smaller file make my video look worse?
Below YouTube's recommended bitrate, yes. You're handing the transcoder a degraded source. Above it there's little to gain, because YouTube re-encodes every upload anyway.