<p>I just found out how to solve my problem. The H.264 codec is the issue, it somehow does not work with it and AE gives you a warning: <em>Output file will be resized from 2085 x 2560 (1.0 PAR) to 2000 x 2000 (1.0 PAR) to meet format constraints.</em> </p>

<p><a href="https://i.sstatic.net/VhT2P.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/VhT2P.png" alt="enter image description here"></a></p>

<h1>Solution:</h1>

<p>I went with the <strong>MPEG4 codec</strong> and it worked as I wanted. </p>

CC BY-SA 3.0
2016-05-20T10:28:52.393Z
Did you test if the file works in a browser?
Gyan
CC BY-SA 3.0
2016-05-20T14:08:58.250Z
@Mulvya, yes, I converted the mov file into a mp4 file and it works well on the website. Here is what I'm using:
`<video class="wilb" width="100%" autoplay loop muted>
  <source src="http://###.com/wp-content/uploads/2016/Comp-1.mp4" type="video/mp4">
</video>`
Zararsiz
CC BY-SA 3.0
2016-05-20T10:21:27.737Z
2016-05-20T10:21:27.737Z
Zararsiz
<p>Update : Try this, precompose all the layers so you have only one layer remaining in the time-line.
Then resize your comp with even numbers only! (2,4,6...) in your height and width composition settings. Apply the same height and width to the layer's scale.
Now, it should go with the H264 codec as well.</p>

CC BY-SA 4.0
2021-06-12T15:05:30.403Z
2021-06-12T15:05:30.403Z
Nicolas
<p>I am new to AE, and hope this question makes sense for you and is easy to answer. </p>

<p>On my website I have some images in portrait format with 2085 × 2560 px. Now I will add a mp4 video file, which will be a simple animation of a logo. </p>

<p>The problem is that the exported file is not in the desired format (2085 × 2560 px); the width seams to be correct but the height is smaller than 2085px. </p>

<p><a href="https://i.sstatic.net/KCzgy.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/KCzgy.jpg" alt="video smaller than the right portrait format image"></a></p>

<p><a href="https://i.sstatic.net/RYduq.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/RYduq.png" alt="this was the first try"></a></p>

<p>I tried out different <em>Pixel Aspect Ratios</em> and different data for the height; unfortunately I just could not achieve my wanted result. </p>

<p><strong>What do I have to do to get a video which has the exact format like a 2085 × 2560 px image? 
Or did I something wrong while exporting?</strong></p>

<p><em>Thanks in advance!</em></p>

CC BY-SA 3.0
2016-05-19T17:18:30.313Z
If you're using the H.264 codec, you will need your dimensions to be even, so either 2084x2560 or 2086x2560.
Gyan
CC BY-SA 3.0
2016-05-20T10:16:53.727Z
Yes I was using the H.264 codec, and I have realized that is was not possible because AE was warning this: "Warning: Output file will be resized from 2085 x 2560 (1.0 PAR) to 2000 x 2000 (1.0 PAR) to meet format constraints." So I tried out the MPEG4 codec, and it worked as I wanted.
Zararsiz
<after-effects><formats><scale>
Width and Height troubles
Zararsiz
# Width and Height troubles

(Asked by: username_0 on 2016-05-19)

I am new to AE, and hope this question makes sense for you and is easy to answer.

On my website I have some images in portrait format with 2085 × 2560 px. Now I will add a mp4 video file, which will be a simple animation of a logo.

The problem is that the exported file is not in the desired format (2085 × 2560 px); the width seams to be correct but the height is smaller than 2085px.

[![video smaller than the right portrait format image](https://i.sstatic.net/KCzgy.jpg)](https://i.sstatic.net/KCzgy.jpg)

[![this was the first try](https://i.sstatic.net/RYduq.png)](https://i.sstatic.net/RYduq.png)

I tried out different *Pixel Aspect Ratios* and different data for the height; unfortunately I just could not achieve my wanted result.

**What do I have to do to get a video which has the exact format like a 2085 × 2560 px image?
Or did I something wrong while exporting?**

*Thanks in advance!*

**Tags:** after-effects, formats, scale

> **Comments:**
> **username_1**: If you're using the H.264 codec, you will need your dimensions to be even, so either 2084x2560 or 2086x2560.  
> **username_0**: Yes I was using the H.264 codec, and I have realized that is was not possible because AE was warning this: "Warning: Output file will be resized from 2085 x 2560 (1.0 PAR) to 2000 x 2000 (1.0 PAR) to meet format constraints." So I tried out the MPEG4 codec, and it worked as I wanted.  

---

## 2 answers

### Answer by username_0 on 2016-05-20. Score: 1 | Accepted answer

I just found out how to solve my problem. The H.264 codec is the issue, it somehow does not work with it and AE gives you a warning: *Output file will be resized from 2085 x 2560 (1.0 PAR) to 2000 x 2000 (1.0 PAR) to meet format constraints.*

[![enter image description here](https://i.sstatic.net/VhT2P.png)](https://i.sstatic.net/VhT2P.png)

# Solution:

I went with the **MPEG4 codec** and it worked as I wanted.

> **Comments:**
> **username_1**: Did you test if the file works in a browser?  
> **username_0**: @Mulvya, yes, I converted the mov file into a mp4 file and it works well on the website. Here is what I'm using: `<video class="wilb" width="100%" autoplay loop muted>   <source src="http://###.com/wp-content/uploads/2016/Comp-1.mp4" type="video/mp4"> </video>`  

---

### Answer by username_2 on 2021-06-12. Score: 0

Update : Try this, precompose all the layers so you have only one layer remaining in the time-line.
Then resize your comp with even numbers only! (2,4,6...) in your height and width composition settings. Apply the same height and width to the layer's scale.
Now, it should go with the H264 codec as well.


---

