Troubleshooting, tested
Why did compressing my video make the file bigger?

Short answer
Compression makes a file bigger when the encoder is asked for more data than the file already holds. In the test, a 671 KB HEVC clip came out at 1,638 KB after a common H.264 re-encode, and its picture was no closer to the original. Read the source bitrate with the first command below, then re-encode below that number or keep the original. Uncompressed PCM sound and a very fast preset can also add size. This was one 3-second clip tested with ffmpeg, so treat the figures as an example, not a rule.
Video compressor: shrink a clip in your browser, then compare the sizes (free, 100 MB per file)
Key takeaways
- A 671 KB HEVC test clip re-encoded to H.264 at CRF 23, the ffmpeg default, became 1,637,610 bytes, 2.44 times the input. The same setting shrank the rich 4 MB original to 0.53 of its size.
- The bigger file was not a better one. Against the original, the input scored SSIM 0.9457 and the 3.1 MB CRF 18 file scored 0.9433. Extra bytes do not bring back detail the first compression removed.
- A fixed target of 20 Mbps turned the 10.8 Mbps original into 1.46 times its size; 3 Mbps made it 0.23 times. Sound saved as PCM added 578,496 bytes to a 3-second file, AAC at 128 kbps added 51,650.
- The same CRF is not the same size on every preset: CRF 23 on ultrafast gave 11,383,228 bytes, on medium 1,637,610. The Koldflux compressor (CRF 28, veryfast) took the lean test clip down to 544,356 bytes.
- The FFmpeg wiki excerpts give the +6 rule and a sane CRF range but not what happens to an already compressed input. This page measures that on one clip and states what it cannot show.
Your file came back bigger. Did something break?
No. It is a frustrating result, because "compress" sounds like a one-way street, and you did nothing wrong. An encoder does not shrink your file. It decodes the pictures, builds a new file and aims at a quality or a bitrate you picked. If that aim is higher than what the source already holds, the new file is larger. That is the whole mechanism.
Here is a case you can reproduce. The test clip is 3 seconds of Big Buck Bunny, 1920 x 1080 at 60 frames per second, from Blender Foundation (CC BY 3.0), 4,057,134 bytes. It was first made lean on purpose in HEVC at CRF 30, which gave 671,161 bytes, like a file that came out of a phone or an editor already squeezed. Then it was re-encoded to H.264 at CRF 23, the ffmpeg default. The output was 1,637,610 bytes.
The FFmpeg wiki H.264 guide describes CRF as a quality scale from 0 to 51 where 23 is the default and a +6 step roughly halves the bitrate. In the excerpts read, it does not say what happens when the input was already compressed harder than the setting expects. The source stops at the settings, and the tests below fill in that gap for one clip.
Which cause is yours?
Start with the row that matches what you see on your screen. The table lists the cause, the check that takes under a minute, and the fix. Each cause has its own section with the measurement behind it; the encoder row is a note, because our one encoder test did not make a file bigger.
| What you see | Likely cause | Quick check | Fix |
|---|---|---|---|
| Source was small already (phone export, HEVC, social download) | Re-encoding at a quality target above what the source holds | Run ffprobe; compare the bitrate with your setting | Keep the original, or set a bitrate below the source |
| You typed a bitrate such as 8M or 20M | Target well above the source bitrate | Source bitrate from ffprobe | Set a target below the source bitrate (our rule of thumb from one clip: about 80% or less) |
| Output has sound and the source did not, or the file is a .mov or .wav-style export | Sound saved as PCM, uncompressed (in a .mov here) | ffprobe shows pcm_s16le | Use AAC at 128 kbps |
| Same CRF as last time, much bigger file | Different preset | Compare the preset in both runs | Use the preset you used before |
| Switched encoder and the size changed (note: x265 was smaller here) | CRF values are not comparable between encoders | Compare encoder names | Re-test with one change at a time |
Four causes of a bigger output and one note, in the order to check them.
If none fits, run the first command in the fix section and read the two bitrate lines. Two numbers, and you know where you stand.
Cause 1: the source was already small
This is the common one, and the one you are most likely to hit. The test took the 671 KB HEVC file and re-encoded it to H.264 with only the CRF changed. Everything else was held equal: the input, the medium preset, no sound. The chart shows what you would see: the output size for each CRF against the input.
Look at the pattern. CRF 18 gave 3,126,720 bytes (4.66 times the input), CRF 23 gave 1,637,610 (2.44), CRF 28 gave 931,681 (1.39), CRF 30 gave 753,515 (1.12) and CRF 34 gave 495,253 (0.74). The file only got smaller than the input once the CRF went past the 30 used to make it, and even then the gain was modest next to the jump in the other direction, which is the part that surprises people when they see their own numbers for the first time. The Koldflux bar is a different preset, so read it as a separate result, explained in a later section.
Your input matters as much as the setting you pick. At CRF 23 on medium, the rich 4 MB original came out at 0.53 of its size, a 893 KB H.264 version of the same clip at 1.32 and the 671 KB HEVC version at 2.44. That test varied only the input file.
Is the bigger file at least better? The test scored each file against the original clip with the SSIM filter, where 1.0 means identical. The input scored 0.9457. CRF 18 scored 0.9433, CRF 23 scored 0.9372, CRF 28 scored 0.9189 and CRF 34 scored 0.8687. The 3.1 MB file was a little further from the original than the 0.67 MB one it came from.
That is the point to carry away. Bytes are not quality. The first compression removed detail, and a second encoder spends bytes on describing what is left, including the first encoder's blocky artefacts. SSIM is a number, not a pair of eyes; the clips were not rated by viewers.

Cause 2: you set a bitrate well above the source
A fixed bitrate does what you tell it to. The test took the 10.8 Mbps original and changed only the target bitrate with the x264 average-bitrate mode, medium preset, no sound. At 3 Mbps the file was 931,619 bytes (0.23 of the original). At 10 Mbps it was 3,168,440 (0.78). At 20 Mbps it was 5,929,693 bytes, 1.46 times the original. Average-bitrate mode does not hit the number exactly: on the lean clip a 2 Mbps target, just above its 1.77 Mbps stream, gave 602,044 bytes, smaller than the 671,161 input.
So a number that sounds modest to you can still be above what the source uses. Easy to miss. Read your source bitrate first, before you type a target. For the lean test clip, ffprobe printed 1,774,760 bits per second for the video stream, so a target far above it, such as 8M, grew it to 2,445,594 bytes. A target only slightly above the source, 2 Mbps, did not grow it.
Can you rely on "CRF +6 halves the size"? On the original clip, with only the CRF changed, CRF 17 gave 4,109,260 bytes, CRF 23 gave 2,168,897 (0.53 of the step before), CRF 29 gave 1,014,319 (0.47) and CRF 35 gave 485,120 (0.48). The rule held to within a few percent on this clip. It is a rule of thumb for one encoder on one kind of picture.
Cause 3: the sound was saved uncompressed
Check your sound before the picture when your output is a .mov, or when your editor offers "uncompressed" or "PCM". The test took one 893 KB video stream (H.264, copied unchanged) and added 3 seconds of a 440 Hz stereo tone at 48 kHz. The audio codec and the container both differed: PCM (pcm_s16le) went in a .mov and AAC in an .mp4. With PCM in a .mov the file was 1,471,107 bytes. With AAC at 128 kbps in an .mp4 it was 944,261. The video-only file was 892,611.
PCM in a .mov added 578,496 bytes to this 3-second clip. The sound alone is 1,536 kbps, which is 576,000 bytes in 3 seconds, so almost all of it is the PCM data; the .mov wrapper was not tested apart. AAC added 51,650. The tone is synthetic, so the AAC figure for music or speech will differ. The PCM figure does not depend on what the sound is: it is fixed by the sample rate and channel count.
As a control for the container, a stream copy of the 4,057,134 byte original into a new .mp4 came out at exactly 4,057,134 bytes: nothing was re-encoded, so nothing changed.
Cause 4 and a note: the preset and the encoder
Two settings that look harmless change size without touching quality targets. First the preset, a cause of big differences. On the lean HEVC input at CRF 23, with only the preset changed, ultrafast gave 11,383,228 bytes, veryfast 1,099,342, medium 1,637,610 and slow 1,640,238. At CRF 28 veryfast gave 541,358 bytes and medium 931,681. A faster preset is not smaller or bigger in one direction here. Do not assume.
Second the encoder, which is a note and not a measured cause of growth. On the same lean HEVC input at CRF 23 and the medium preset, libx264 gave 1,637,610 bytes and libx265 gave 888,673, so here the other encoder was smaller. The CRF scales of the two encoders are not the same scale, so equal numbers do not mean equal results. This test measured size only; it did not compare picture quality between the two encoders.
The practical rule is short. When you compare two exports, change one thing, and write the preset and the encoder next to the CRF.
What does the Koldflux compressor do with the test file?
The Koldflux video compressor runs in your browser. The test drove it in headless Chromium on a local copy of the site with the 1080p preset, once with the 4 MB original and once with the lean 671 KB file. The original became 630,566 bytes and the lean file 544,356 bytes, so on this scenario it did not grow either file. The tool page itself warns: "A file that is already small can grow: our smallest source grew 22.3% at 1080p". At the 720p preset the results were 287,748 and 269,940 bytes.
Why did it not grow the lean file when CRF 28 on medium did? The tool's code uses libx264 at CRF 28 with the veryfast preset and AAC at 128 kbps. Rerunning those exact arguments in native ffmpeg gave 626,721 and 541,358 bytes, within about 1% of the browser output. So the browser run did not change the result; the preset did.
The smaller file is also less faithful, which makes sense: an encoder asked for CRF 28 on a clip that has already lost its fine detail has little left to spend bytes on, and what remains shows up as softness and blocks. Not free. Scored against the original, the tool's 544,356-byte file reached SSIM 0.8937, below the 671 KB input at 0.9457. If the quality of an already small file matters to you, keep your original; the compressor is for when the size limit matters more.

How do you fix it, step by step?
Run these in order. You need ffmpeg and ffprobe, which come together.
- Compare the two sizes you have. If the output is bigger than the input, do not delete your original.
- Read your source bitrate and sound codec with the first command below.
- If your source is small or is HEVC, ask whether it needs compressing at all. Our rule of thumb from one clip, not a tested threshold: a 671 KB, 1.8 Mbps file did not need it. An 18 KB clip with sound grew 2.6 times at the second command's 1,400 kbps, so the video target must be below the source stream's bitrate.
- If you do need to compress, set a video bitrate below your source stream (our rule of thumb from one clip: about 80%) with the second command, and use AAC for sound.
- Compare the new size and watch the video before you replace anything.
Both ran on the lean test file and on two edge files (commands.log). On the test file the first printed 1,774,760 for the video stream and 1,789,762 for the whole file; the second turned 671,161 bytes into 430,425. On a Matroska copy the stream line printed N/A because that container stores no per-stream bitrate, while the whole-file figure was still given. On an H.264 .mov with PCM sound the first command listed pcm_s16le at 1,536,000 and the second turned 1,471,107 bytes into 488,205. The exit code was 0 each time.
The 1,400k figure is the example for this file, about 79% of its video bitrate, and it is not a recommendation for every video. On an 18,152-byte clip (a flat grey picture at about 5 kbps plus a tone) the same command gave 47,457 bytes, 2.6 times bigger, so the target must sit below the source bitrate. Average-bitrate mode does not promise to hit the number, and the 430,425-byte output is below the 525,000 bytes that 1,400 kbps for 3 seconds would suggest.
ffprobe -v error -show_entries format=duration,size,bit_rate:stream=codec_name,bit_rate -of default=noprint_wrappers=1 in.mp4
ffmpeg -i in.mp4 -c:v libx264 -b:v 1400k -c:a aac -b:a 128k out.mp4Limits: what this does not show
Claim | varied | held equal | why, in one line each: re-encoding a lean file at CRF 23 makes it bigger | the input file, then the CRF | the encoder, preset and no sound | because 4,057,134 bytes shrank to 0.53 and 671,161 grew to 2.44 times. Next: a target bitrate far above the source grows the file (a target slightly above did not, in two runs) | the target bitrate | the input, encoder and preset | because 20 Mbps gave 1.46 times and 3 Mbps 0.23 times. Next: PCM sound in a .mov adds size | the audio codec, with the container also changing (.mov against .mp4) | the video stream, copied | because PCM added 578,496 bytes and AAC 51,650. Next: the Koldflux compressor did not grow the lean file | the preset, in a native rerun | the CRF, filter and input | because medium at CRF 28 gave 931,681 bytes and veryfast 541,358.
This does not prove that every file grows when re-encoded, only that these did. It used one 3-second animated clip with no camera noise, one ffmpeg build and one browser. Real footage, other encoders such as hardware encoders in phones, and editors such as CapCut or HandBrake were not tested. SSIM is one measure of closeness and no one watched the clips. The FFmpeg wiki excerpts were read through search results because the page refused an automated fetch.
Do it in your browser
Free Koldflux tools, no account needed.
Video compressor: shrink a clip in your browser, then compare the sizes (free, 100 MB per file)Video bitrate calculator (bitrate for a target size)
Questions people ask
Why did compressing my video make the file bigger?
The encoder was asked for more data than the file already held. In the test, a 671 KB HEVC clip re-encoded to H.264 at CRF 23 became 1,637,610 bytes, 2.44 times larger.
Does a bigger file mean better quality?
Not here. The 3.1 MB CRF 18 file scored SSIM 0.9433 against the original, a little below the 671 KB input at 0.9457. The first compression had already removed the detail.
Does CRF +6 halve the file size?
On the test clip, each +6 step gave 0.53, 0.47 and 0.48 of the size before. The FFmpeg wiki gives the same rule of thumb; it is not exact for every video.
Why is my file bigger with PCM audio?
PCM is uncompressed. At 48 kHz stereo it is 1,536 kbps, which added 578,496 bytes to a 3-second file; AAC at 128 kbps added 51,650.
Will the Koldflux video compressor make my file bigger?
On the two test files it did not: 4,057,134 became 630,566 bytes and 671,161 became 544,356 at the 1080p preset. The tool page itself says a file that is already small can grow (22.3% on its smallest source at 1080p), so compare sizes and keep the original.
How do I find my video bitrate?
Run ffprobe with the command in the fix section and read the bit_rate lines. Some containers, Matroska for one, print N/A for the stream; use the whole-file figure then.
Related
More guides on this topic
Sources and how we checked
- FFmpeg wiki: H.264 Video Encoding Guide (FFmpeg project; excerpts on CRF read November 21, 2026 through search results, the live page refused an automated fetch) (checked 2026-11-21)
- Koldflux video compressor (our own tool, run November 21, 2026) (checked 2026-11-21)
- Koldflux test log: CRF, input, encoder, bitrate, audio and preset tests (our measurement, November 21, 2026) (checked 2026-11-21)
- test-run.sh: how to rerun every ffmpeg test (Koldflux, shell script) (checked 2026-11-21)
- ssim-results.txt: SSIM against the original (Koldflux measurement) (checked 2026-11-21)
- ssim.sh: the SSIM script (Koldflux, shell script) (checked 2026-11-21)
- tool-results.txt: the Koldflux compressor run on the test files (Koldflux measurement) (checked 2026-11-21)
- tool.cjs: drives the compressor in headless Chromium (Koldflux, Node.js) (checked 2026-11-21)
- native-tool-results.txt: the tool arguments rerun in native ffmpeg (Koldflux measurement) (checked 2026-11-21)
- native-tool-args.sh: the script behind that rerun (Koldflux, shell script) (checked 2026-11-21)
- commands.log: the published commands, run on the test file and on two edge files (Koldflux) (checked 2026-11-21)
- mkcmd.sh: builds the edge files and writes commands.log (Koldflux, shell script) (checked 2026-11-21)
- figs.py: draws the size chart from the test log (Koldflux, Python 3) (checked 2026-11-21)
- Big Buck Bunny, Blender Foundation, CC BY 3.0 (source of the test clip) (checked 2026-11-21)
On November 21, 2026 we cut a 3-second 1080p 60 fps excerpt from Big Buck Bunny (CC BY 3.0), made lean copies in HEVC and H.264 at CRF 30 and ran ffmpeg 6.1.1 re-encodes that changed one thing at a time: CRF, input file, encoder, target bitrate, CRF step, audio codec and preset. A stream copy was the control. SSIM was measured against the original. The live Koldflux compressor was driven in headless Chromium on two files and its arguments were rerun in native ffmpeg. The two published commands ran on the test file and on two edge files. We did not test hardware encoders, editors or real camera footage, and the FFmpeg wiki was read through search-result excerpts.