<p>Are you using the inbuilt After Effects render queue? It's a bit easier to use custom settings when you use the Adobe Media Encoder instead. AME comes with After Effects and is installed automatically when you install AE. Simply open the composition you want to export in After Effects and select <em>Composition</em> → <em>Add to Adobe Media Encoder Queue</em>. This will open AME and add the current state of your composition to the render queue (this might take some time). Once you see the item in the render queue, press the highlighted format designation to open the Export Settings dialogue. </p>

<p><a href="https://i.sstatic.net/e6NGz.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/e6NGz.png" alt="AME render queue"></a></p>

<p><a href="https://i.sstatic.net/gDGWj.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/gDGWj.png" alt="AME export settings"></a></p>

<p>In the Export Settings, you can change the format (codec/container) as well as the other export parameters. Make sure to set the dimensions (Width/Height) to whatever you need them to be. To bring down the size, the most important option is the bitrate setting (<em>Target</em> / <em>Maximum Bitrate</em> for H.264).</p>

<p>Read <a href="https://video.stackexchange.com/questions/16051/rendered-two-videos-from-adobe-premiere-with-the-same-settings-but-different-res/16056#16056">this</a> for an explanation of bitrate and it's relation to the resolution of your video and <a href="https://video.stackexchange.com/questions/18621/how-to-export-maximum-quality-in-minimum-size/18623#18623">this</a> for the math you need to figure out the appopriate bitrate dependent of your desired output size. Since you mentioned you need the video for your website, you might also be interested in <a href="https://video.stackexchange.com/questions/14728/encode-settings-for-html5-background-video/14730#14730">my post here</a> regarding recommended encoding settings for web video. </p>

CC BY-SA 3.0
2017-05-08T06:42:48.267Z
I can export with odd resolution.
But the quality isn't super good. See my post.
Finduilas
CC BY-SA 3.0
2017-05-08T11:00:01.273Z
@Finduilas Your bitrate is way too low, that's why you get the crappy quality. Please read the posts I linked in my answer, I don't want to write the same thing twice. Also you don't need to use level 5.1, 4.2 should be sufficient for your resolution and bitrate. Keep stib's answer regarding video dimensions in mind as well when setting up your export.
MoritzLost
CC BY-SA 3.0
2017-05-08T11:27:11.430Z
Sorry, I readed it, and now it seems to be clear.. Hope this will result in a good quality.
Finduilas
CC BY-SA 3.0
2017-05-09T14:28:47.257Z
It works like a charm ;-). 
Thanks to everyone for the help.
Finduilas
CC BY-SA 3.0
2017-05-05T12:13:51.780Z
2017-05-09T17:09:22.300Z
2017-05-09T17:09:22.300Z
MoritzLost
<p>You won't be able to render it to h.264 because of the odd number of pixels in the vertical resolution (odd as in not even, not odd as in unusual).</p>

<p>You simply can't encode h.264 video with odd numbers as either one of the frame dimensions, that's just part of the codec. This is true for quite a few codecs (any that use macroblocks).</p>

<p>I actually can't think of a codec where I'd be confident that you can encode. Maybe uncompressed, something like v210, or Apple Animation. Certainly nothing that you could deliver over the internet.</p>

<p>You need to lose or gain one row of pixels, because it will make your encoding waaaay simpler.</p>

CC BY-SA 3.0
2017-05-05T15:06:38.263Z
And if I use odd number, then H264 will be available? Thats necessary because I want to use it in html5 video..
Finduilas
CC BY-SA 3.0
2017-05-06T11:25:53.060Z
No, h.264 can only accept pixel dimensions that are *even* numbers. Theoretically you'll get the best compression if the dimensions are multiples of 8. 1496 x 640 would be good for example, and close to your original aspect ratio.
stib
CC BY-SA 3.0
2017-05-08T06:42:43.700Z
I can export with odd resolution.
But the quality isn't super good. See my post.
Finduilas
CC BY-SA 3.0
2017-05-08T09:11:57.143Z
*if the dimensions are multiples of 8* --> 16, since that's the MB size. *that's just part of the codec.* --> it's not a H.264 restriction. Normally video is 4:2:0 i.e. chroma is subsampled at half the luma rate, so H.264 encoders enforce a mod 2 requirement, so that decoders expecting to apply a chroma sample to a 2x2 luma grid don't fail. But if you encode to 4:4:4, odd values aren't an issue. What Adobe is probably doing is setting a cropping flag that the H.264 spec allows for, to discard one pixel row/column from the decoded output. But I haven't checked Adobe's bitstream output, though.
Gyan
CC BY-SA 3.0
2017-05-08T11:27:37.550Z
I will try this!
Finduilas
CC BY-SA 3.0
2017-05-09T12:55:41.897Z
Thanks mulvya, I always thought it was because of the macroblocking, rather than the chroma subsampling that caused the even pixel restriction, but I guess it makes more sense. I somehow doubt that the OP is encoding 4:4:4 though.
stib
CC BY-SA 3.0
2017-05-05T12:30:10.383Z
2017-05-05T12:30:10.383Z
stib
<p>I have a composition of 1500 x 643. I need this format for a moviebanner in a website. My assets are in 4K, very good quality.</p>

<p>I can render it as an AVI, best quality. Then it's almost 4 GB for 30 seconds.</p>

<p>When I choose H264, it has problems with framerate and the size (it resizes, ...). What do I have to choose as render settings to have a good quality movie (+30mb? instead of 4Gb), for web with my custom size?</p>

<p>I use After Effects CS5.</p>

<p>EDIT: After changing the settings to an odd resolution, I can export as H.264.. 
But I don't like the quality. The size is 3.3Mb, it could be a little bit more.
How can I get better quality for this export?</p>

<p>My screens:
<a href="https://i.sstatic.net/nWHUL.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/nWHUL.png" alt="No Adobe Media Encoder Queue"></a>
<a href="https://i.sstatic.net/dhegd.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/dhegd.png" alt="Composition settings"></a>
<a href="https://i.sstatic.net/BGzrU.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/BGzrU.png" alt="Export settings"></a>
<a href="https://i.sstatic.net/bkvZc.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/bkvZc.png" alt="Export settings 2"></a>
<a href="https://i.sstatic.net/7He34.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/7He34.png" alt="Bitrate"></a></p>

<p>The results can you find here: <a href="https://wetransfer.com/downloads/a15013dad2f4bc5c0b4ce0aa92cb821c20170508063926/347bd4" rel="nofollow noreferrer">https://wetransfer.com/downloads/a15013dad2f4bc5c0b4ce0aa92cb821c20170508063926/347bd4</a></p>

<after-effects><animation-rendering>
Best render options for custom size movie in after effects
Finduilas
# Best render options for custom size movie in after effects

(Asked by: username_0 on 2017-05-04)

I have a composition of 1500 x 643. I need this format for a moviebanner in a website. My assets are in 4K, very good quality.

I can render it as an AVI, best quality. Then it's almost 4 GB for 30 seconds.

When I choose H264, it has problems with framerate and the size (it resizes, ...). What do I have to choose as render settings to have a good quality movie (+30mb? instead of 4Gb), for web with my custom size?

I use After Effects CS5.

EDIT: After changing the settings to an odd resolution, I can export as H.264..
But I don't like the quality. The size is 3.3Mb, it could be a little bit more.
How can I get better quality for this export?

My screens:
[![No Adobe Media Encoder Queue](https://i.sstatic.net/nWHUL.png)](https://i.sstatic.net/nWHUL.png)
[![Composition settings](https://i.sstatic.net/dhegd.png)](https://i.sstatic.net/dhegd.png)
[![Export settings](https://i.sstatic.net/BGzrU.png)](https://i.sstatic.net/BGzrU.png)
[![Export settings 2](https://i.sstatic.net/bkvZc.png)](https://i.sstatic.net/bkvZc.png)
[![Bitrate](https://i.sstatic.net/7He34.png)](https://i.sstatic.net/7He34.png)

The results can you find here: <https://wetransfer.com/downloads/a15013dad2f4bc5c0b4ce0aa92cb821c20170508063926/347bd4>

**Tags:** after-effects, animation-rendering


---

## 2 answers

### Answer by username_1 on 2017-05-05. Score: 1 | Accepted answer

Are you using the inbuilt After Effects render queue? It's a bit easier to use custom settings when you use the Adobe Media Encoder instead. AME comes with After Effects and is installed automatically when you install AE. Simply open the composition you want to export in After Effects and select *Composition* → *Add to Adobe Media Encoder Queue*. This will open AME and add the current state of your composition to the render queue (this might take some time). Once you see the item in the render queue, press the highlighted format designation to open the Export Settings dialogue.

[![AME render queue](https://i.sstatic.net/e6NGz.png)](https://i.sstatic.net/e6NGz.png)

[![AME export settings](https://i.sstatic.net/gDGWj.png)](https://i.sstatic.net/gDGWj.png)

In the Export Settings, you can change the format (codec/container) as well as the other export parameters. Make sure to set the dimensions (Width/Height) to whatever you need them to be. To bring down the size, the most important option is the bitrate setting (*Target* / *Maximum Bitrate* for H.264).

Read [this](https://video.stackexchange.com/questions/16051/rendered-two-videos-from-adobe-premiere-with-the-same-settings-but-different-res/16056#16056) for an explanation of bitrate and it's relation to the resolution of your video and [this](https://video.stackexchange.com/questions/18621/how-to-export-maximum-quality-in-minimum-size/18623#18623) for the math you need to figure out the appopriate bitrate dependent of your desired output size. Since you mentioned you need the video for your website, you might also be interested in [my post here](https://video.stackexchange.com/questions/14728/encode-settings-for-html5-background-video/14730#14730) regarding recommended encoding settings for web video.

> **Comments:**
> **username_0**: I can export with odd resolution. But the quality isn't super good. See my post.  
> **username_1**: @username_0 Your bitrate is way too low, that's why you get the crappy quality. Please read the posts I linked in my answer, I don't want to write the same thing twice. Also you don't need to use level 5.1, 4.2 should be sufficient for your resolution and bitrate. Keep username_2's answer regarding video dimensions in mind as well when setting up your export.  
> **username_0**: Sorry, I readed it, and now it seems to be clear.. Hope this will result in a good quality.  
> **username_0**: It works like a charm ;-).  Thanks to everyone for the help.  

---

### Answer by username_2 on 2017-05-05. Score: 1

You won't be able to render it to h.264 because of the odd number of pixels in the vertical resolution (odd as in not even, not odd as in unusual).

You simply can't encode h.264 video with odd numbers as either one of the frame dimensions, that's just part of the codec. This is true for quite a few codecs (any that use macroblocks).

I actually can't think of a codec where I'd be confident that you can encode. Maybe uncompressed, something like v210, or Apple Animation. Certainly nothing that you could deliver over the internet.

You need to lose or gain one row of pixels, because it will make your encoding waaaay simpler.

> **Comments:**
> **username_0**: And if I use odd number, then H264 will be available? Thats necessary because I want to use it in html5 video..  
> **username_2**: No, h.264 can only accept pixel dimensions that are *even* numbers. Theoretically you'll get the best compression if the dimensions are multiples of 8. 1496 x 640 would be good for example, and close to your original aspect ratio.  
> **username_0**: I can export with odd resolution. But the quality isn't super good. See my post.  
> **username_3**: *if the dimensions are multiples of 8* --> 16, since that's the MB size. *that's just part of the codec.* --> it's not a H.264 restriction. Normally video is 4:2:0 i.e. chroma is subsampled at half the luma rate, so H.264 encoders enforce a mod 2 requirement, so that decoders expecting to apply a chroma sample to a 2x2 luma grid don't fail. But if you encode to 4:4:4, odd values aren't an issue. What Adobe is probably doing is setting a cropping flag that the H.264 spec allows for, to discard one pixel row/column from the decoded output. But I haven't checked Adobe's bitstream output, though.  
> **username_0**: I will try this!  
> **username_2**: Thanks mulvya, I always thought it was because of the macroblocking, rather than the chroma subsampling that caused the even pixel restriction, but I guess it makes more sense. I somehow doubt that the OP is encoding 4:4:4 though.  

---

