<p>That has to do with choosing a variable bitrate aswell as how h264 essentially works. Some videos can be compressed better than others. If in one video for example you have a lot of "still" frames with not much moving the scene, h264 can compress that a lot better than a video with a lot of action.</p>

<p>H.264 is doing motion estimation and works in so called Group of Picture where there are only a few frames that actually contain a full video frame and the in-between frames just contain information to calculate a full frame during playback. That's the reason why you sometimes get these smearing artifacts when playing a h264 video.
Also the reason why resolution doesn't necessarily affect the file size that much and a higher resolution video can sometimes be smaller than a lower resolution video, it depends on the content.</p>

<p>That size difference should be less though if you encode both with constant quality.</p>

CC BY-SA 3.0
2014-07-30T13:37:30.120Z
2014-07-30T13:37:30.120Z
timonsku
<p>You are using the same bitrate for each video.  The bitrate determines how much data is used per second.  The resolution has nothing to do with how much data is used, it only impacts the number of points of data which are encoded (and thus determines part of the quality of the video output for a given bitrate).</p>

<p>What you end up with is a lower resolution file that more faithfully reproduces the original format since it has more data storage allocated per pixel where as the higher resolution file produces more pixels in the output, but as it has less data available per pixel, it is a less faithful reproduction.  </p>

<p>It is a fluid question as to whether you lose more quality from the downscale or bitrate being used, so there is no preferred value to change.  In some situations the best overall quality will be to reduce the resolution and bitrate and in other cases the best result will be to keep the resolution the same but only reduce the bitrate.</p>

<p>If you intend to make different resolutions for different connection speeds, you should decrease both the resolution and the bitrate.  This will result in a smaller file with similar relative quality, so long as you use similar compression ratios (the relationship between the size of the input and the file size).  </p>

<p>For example, as a rough guideline, if a video is 1080p and takes 225MB in total, then you would want the 720p version to take around 100MB because there is a little under half the pixels in a 720p video than there is in the 1080p video.  The amount of data used to store each pixel is thus the same, so the amount of artifacts should be pretty similar.  (Though the loss of detail will make it slightly unpredictable, so it doesn't hold exactly.  I'm oversimplifying a bit since compression is actually a pretty complicated field.)</p>

CC BY-SA 3.0
2014-07-31T18:10:50.137Z
Not necessarily, the bitrate can be quite different as long as you choose a variable bit rate TARGET like in this case and not a fixed bitrate. One video can tend to be quite higher than 700kbps and the other can be quite a bit lower than that which can affect the file size greatly depending on the length of the video.
timonsku
CC BY-SA 3.0
2014-07-31T18:18:09.483Z
True, quality VBR rather than data rate VBR will result in different file sizes since it will adjust the actual bitrate used for you.  I was only addressing bitrate VBR though, and especially for 2-pass it will be pretty close to the target, at least if the encoder is any good.
AJ Henderson
CC BY-SA 3.0
2017-07-05T10:15:00.800Z
Sorry for replying to such an old answer, but I was about to ask a similar question. Is this the same reason why adjusting the framerate doesn't impact on overall file size?
BiscuitBaker
CC BY-SA 3.0
2017-07-05T14:05:12.970Z
Yes, it's going to pick the level of compression based on the bitrate and the number of frames or the resolution being used or the bit depth of color or any other factor is just going to impact the compression ratio that has to be used.
AJ Henderson
CC BY-SA 3.0
2014-07-30T14:21:10.083Z
2014-07-30T14:21:10.083Z
AJ Henderson
<p>I'm converting a video with resolution 960x720p using HandBrake on Mac. When I convert two videos with exactly the same settings but with different resolutions, the file size is almost the same. Actually, the video with larger resolution (960x720p) is slightly smaller than the video with smaller resolution (720x540p). File size of the larger resolution video is 18,7 MB and the file size of the smaller resolution video is 19,1 MB. Like I said, the conversion settings are exactly the same, only resolution is different. I'm using H.264 codec with variable bitrate. Please check the settings from the attached screenshot.</p>

<p>Why the file size isn't smaller on the lower resolution video?</p>

<p><img src="https://i.sstatic.net/UGmXA.jpg" alt="settings"></p>

CC BY-SA 4.0
2020-07-31T02:13:18.990Z
Think of resolution as the canvas of a painting and bitrate as the paint. You can change the size of the canvas and still use the same amount of paint, but the resulting image will be worse. For a larger canvas you need more paint if you would like to see the same overall quality as on a smaller one.
totymedli
<video><conversion><compression><h.264>
Converting video with different resolutions slightly affects in file size, why?
nqw1
# Converting video with different resolutions slightly affects in file size, why?

(Asked by: username_0 on 2014-07-30)

I'm converting a video with resolution 960x720p using HandBrake on Mac. When I convert two videos with exactly the same settings but with different resolutions, the file size is almost the same. Actually, the video with larger resolution (960x720p) is slightly smaller than the video with smaller resolution (720x540p). File size of the larger resolution video is 18,7 MB and the file size of the smaller resolution video is 19,1 MB. Like I said, the conversion settings are exactly the same, only resolution is different. I'm using H.264 codec with variable bitrate. Please check the settings from the attached screenshot.

Why the file size isn't smaller on the lower resolution video?

![settings](https://i.sstatic.net/UGmXA.jpg)

**Tags:** video, conversion, compression, h.264

> **Comments:**
> **username_1**: Think of resolution as the canvas of a painting and bitrate as the paint. You can change the size of the canvas and still use the same amount of paint, but the resulting image will be worse. For a larger canvas you need more paint if you would like to see the same overall quality as on a smaller one.  

---

## 2 answers

### Answer by username_3 on 2014-07-30. Score: 6 | Accepted answer

You are using the same bitrate for each video. The bitrate determines how much data is used per second. The resolution has nothing to do with how much data is used, it only impacts the number of points of data which are encoded (and thus determines part of the quality of the video output for a given bitrate).

What you end up with is a lower resolution file that more faithfully reproduces the original format since it has more data storage allocated per pixel where as the higher resolution file produces more pixels in the output, but as it has less data available per pixel, it is a less faithful reproduction.

It is a fluid question as to whether you lose more quality from the downscale or bitrate being used, so there is no preferred value to change. In some situations the best overall quality will be to reduce the resolution and bitrate and in other cases the best result will be to keep the resolution the same but only reduce the bitrate.

If you intend to make different resolutions for different connection speeds, you should decrease both the resolution and the bitrate. This will result in a smaller file with similar relative quality, so long as you use similar compression ratios (the relationship between the size of the input and the file size).

For example, as a rough guideline, if a video is 1080p and takes 225MB in total, then you would want the 720p version to take around 100MB because there is a little under half the pixels in a 720p video than there is in the 1080p video. The amount of data used to store each pixel is thus the same, so the amount of artifacts should be pretty similar. (Though the loss of detail will make it slightly unpredictable, so it doesn't hold exactly. I'm oversimplifying a bit since compression is actually a pretty complicated field.)

> **Comments:**
> **username_2**: Not necessarily, the bitrate can be quite different as long as you choose a variable bit rate TARGET like in this case and not a fixed bitrate. One video can tend to be quite higher than 700kbps and the other can be quite a bit lower than that which can affect the file size greatly depending on the length of the video.  
> **username_3**: True, quality VBR rather than data rate VBR will result in different file sizes since it will adjust the actual bitrate used for you.  I was only addressing bitrate VBR though, and especially for 2-pass it will be pretty close to the target, at least if the encoder is any good.  
> **username_4**: Sorry for replying to such an old answer, but I was about to ask a similar question. Is this the same reason why adjusting the framerate doesn't impact on overall file size?  
> **username_3**: Yes, it's going to pick the level of compression based on the bitrate and the number of frames or the resolution being used or the bit depth of color or any other factor is just going to impact the compression ratio that has to be used.  

---

### Answer by username_2 on 2014-07-30. Score: 0

That has to do with choosing a variable bitrate aswell as how h264 essentially works. Some videos can be compressed better than others. If in one video for example you have a lot of "still" frames with not much moving the scene, h264 can compress that a lot better than a video with a lot of action.

H.264 is doing motion estimation and works in so called Group of Picture where there are only a few frames that actually contain a full video frame and the in-between frames just contain information to calculate a full frame during playback. That's the reason why you sometimes get these smearing artifacts when playing a h264 video.
Also the reason why resolution doesn't necessarily affect the file size that much and a higher resolution video can sometimes be smaller than a lower resolution video, it depends on the content.

That size difference should be less though if you encode both with constant quality.


---

