Tool

Re-encoded and the File Got Bigger: Diagnose It with Two ffprobe Outputs

Have you ever encoded with H.265 or CRF to save space and ended up with a file bigger than the original? Paste the ffprobe output of the source and of the result, and the tool shows the bitrate change, how heavily compressed the source already is, and likely causes such as resolution, codec and audio, in priority order. Your input is analyzed only inside this browser.

Run ffprobe -hide_banner file.mp4 on each file and paste the whole output (in PowerShell, add 2>&1 at the end). The example uses made-up values to try out this tool; it is not a measurement.

If you enter file sizes, the tool compares size ÷ duration instead of ffprobe's overall bitrate (MB = 1,000,000 bytes). In this tool, 1 MB is 8,000 kbit.

Conversion basis

Why can an encode meant to shrink a file make it bigger?

CRF is a quality target, not an order to “make it smaller than the source.” CRF decides how precisely the encoder follows the input picture, so if you re-encode a source that is already heavily compressed and low in bitrate (phone footage, screen recordings, downloaded videos and the like) at a low CRF, it can spend more bits than the source did. It does not restore the detail the source already lost, yet it stores what is left more precisely.

The likely causes below are found by comparing the values written in the two ffprobe outputs you entered.

  • Source-equivalent CRF: the tool divides the source video bitrate by resolution and fps to get bits per pixel (bpp), then finds which CRF the same bpp corresponds to on our measured curves. If the CRF you used is lower than that range, you asked for more precision than the source has, so the file tends to grow.
  • Higher resolution or fps: it compares whether the number of pixels processed per second (width × height × fps) went up from the source.
  • Codec direction: it checks whether you went from an HEVC, AV1 or VP9 source back to H.264, or switched to an editing or lossless family (ProRes, MJPEG, FFV1 and so on).
  • Audio: it checks whether the audio bitrate went up, whether lossless or uncompressed audio was added, and what share of the total increase comes from audio. Unless you use -c:a copy, ffmpeg re-encodes the audio too.
  • Bit depth, hardware encoder, number of audio tracks: only as far as the information in the file lets us check.

How to get the ffprobe output

  1. Run ffprobe -hide_banner file.mp4 on each of the source and the result.
  2. ffprobe writes its info to the error stream, so in PowerShell add 2>&1 at the end, then copy the whole output and paste it into the matching box.
  3. The Duration: …, bitrate: … kb/s line is needed for the size ratio. If it is missing, enter the size (MB) of both files yourself.
  4. If you picked a CRF yourself, enter it in the ‘CRF I used’ box so the tool can compare it with the source-equivalent CRF. ffprobe output does not record the CRF.

How to read the result and how to use it

  • The ‘70% of source’ row of the table: the CRF range that matches 70% of the source video bitrate. If shrinking is the goal, start from the upper value of this range and run it yourself. The command the tool builds uses that value and leaves the audio untouched.
  • Why the range can be wide: even at the same CRF, the bitrate differs a lot with the content. Our measurement shows the minimum to maximum of four clips as is. The surest way to find out which end your video is closer to is to run a short segment at two or three CRF values. The representative segment picker helps with choosing the segment.
  • When the source-equivalent CRF is outside the measured range (marked ≤ or ≥), the source spends more or fewer bits than the highest or lowest quality on our curves. The tool does not extrapolate and shows only the end point.
  • When not shrinking is normal: a source that is already at a low bpp is hard to shrink further without losing quality. To decide whether you can accept lower quality, check the expected VMAF in the bpp judge.
  • To preview how the size changes when you switch codecs, use the codec conversion size predictor; to pick a CRF for a target quality, use the CRF Recommender.
  • How much smaller x265 gets than x264 is in the HEVC 50% savings measurement, how much the size drops when you raise CRF by a step is in the size change per CRF step measurement, and the cost of lossless or very low CRF is in the lossless CRF 0 archive cost measurement.
  • The size share of each audio bitrate is calculated in the audio bitrate tool.

The measured data behind the conversion

The conversion uses the results (bitrates) of four 10-second 1080p25 clips from our CRF size-vs-quality measurement, each encoded with x264 and x265 (preset medium) at six CRF levels. The tool finds the source’s bpp on these curves and reads it off as a CRF. If the resolution and fps differ from 1080p25, the assumption is that the same bpp means the same CRF.

Limitations worth knowing

  • ‘Source-equivalent CRF’ is a rough conversion. The ffprobe summary cannot tell which encoder, preset or settings made the source, so the tool only finds the same bpp on the x264 and x265 medium curves. Sources made by phones, screen recorders or hardware encoders can have different quality characteristics even at the same bpp.
  • The measurements are four 10-second clips, 8-bit, on one PC. If your video differs from these four, it can fall outside the range. 10-bit, HDR and 4K were not measured.
  • AV1, VP9 and hardware encoders are not converted. The conversion uses only the CRF of x264 and x265. For AV1, you can see the curve in the bpp judge.
  • These are only likely causes. The explanations about codecs and hardware encoders are general statements based on widely known usage experience, not numbers this site reproduced with this tool. The judgment criteria are this site’s own.
  • Only ffprobe’s default text output is read. Only the first video stream is compared, and files of different lengths are compared by bitrate, so entering the file sizes (MB) yourself is more accurate.
  • The generated command has not been run on this site. After running it, check the size and quality yourself.