Log in

View Full Version : Best multiple factor to encode


burnix
17th August 2022, 21:00
Hi all.

i'm coding a small app to cut dtv record, and at this point i'm coding a "crop detect" function.

My question is : do width and height are to be multiple of 8 or 16 ???

Because, when i dont detect black bar on height, if i divide 1080 by 16 i dont have a strict int, so if i convert back i obtain 1072.

Finally, it is a requirement to have w and h multiple of 8 or 16.

Thanks to all

benwaggoner
18th August 2022, 02:07
Hi all.

i'm coding a small app to cut dtv record, and at this point i'm coding a "crop detect" function.

My question is : do width and height are to be multiple of 8 or 16 ???

Because, when i dont detect black bar on height, if i divide 1080 by 16 i dont have a strict int, so if i convert back i obtain 1072.

Finally, it is a requirement to have w and h multiple of 8 or 16.

Thanks to all
No, HEVC doesn't have a hard mod8 or mod16 requirement. I like to stick to at least mod4 as the 4x4 block is the smallest TU, but even mod2 will work IIRC.