Frame Size Secrets: Your Video Dimensions Should Be Evenly Divisible By 16

Whether you are encoding to QuickTime or Flash Video, it is a best practice to ensure that the width and height of your video is evenly divisible by 16. Although some modern codecs do not require this, it is best to keep it in mind for all your projects to guarantee the best results.

In many codecs if a side is not divisible by 16 evenly, it will then have to keep splitting the macro blocks into smaller and smaller chunks until it finds a common denominator. This can result in lots of tiny little blocks in your video, and horrible encodes, especially for high action and/or animation sequences.

Robert Reinhardt has posted a table listing the optimal frame dimensions for flash video for both 16:9 and 4:3 aspect ratios. This information is a great resource for every compressionist.

http://www.flashsupport.com/books/fvst/files/tools/video_sizes.html

Related posts

This entry was posted in Tutorials and tagged , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

4 Comments

  1. Posted August 5, 2009 at 3:43 am | Permalink

    Thanks for great information. I have one qustion: Should it divisible by 16 before or after croping? Should the crop be even?

    • VideoPro
      Posted August 5, 2009 at 7:34 am | Permalink

      Your final encoded frame size should be evenly divisible by 16 (after cropping, scaling, etc)

  2. Nigel Watson
    Posted March 17, 2010 at 1:18 pm | Permalink

    So how come 1080p standard is not evenly divisible? (1080/16=67.5)

    • VideoPro
      Posted March 17, 2010 at 1:54 pm | Permalink

      That is a good question… it is evenly divisible by 4 and 8 though. From what I understand the 16x macroblock issue only applies to MP4 codecs, so it is not really specific to HD or SD.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>