『漫游』酷论坛>『影音数码技术学习交流』>[新闻]x264 now allows non-m ..
[新闻]x264 now allows non-mod16 resolutions
jumbo@2005-10-11 16:13
http://forum.doom9.org/showthread.php?t=101195
As of revision 327 x264 allows non-mod16* resolutions. No more "width % 16 != 0 or height % 16 != 0" error messages
Now we can use:
mod16 - vaild (example 720x432)
mod8 - valid (example 712x424)
mod4 - valid (example 716x428)
width mod4, height mod2 - valid (example 716x430)
width mod2, height mod4 - invalid (example 718x428) -> Avisynth error: YV12 images for output must have a width divisible by 4 (use crop)!
However if either width or height is not divisible by 16, compression will suffer, so if possible always use mod16.
*note: The module (mod) is the remainder produced by dividing two integers. For example if we treat 20 / 6 as an integer divison, the quotient is 3 (rather than 3.333..) and the remainder is 2.
测试了一下vfw版的,的确可以了,解码也正常,cli版的用megui时突然无响应了,诡异......不过应该也是可以的。
MeteorRain@2005-10-12 14:01
However if either width or height is not divisible by 16, compression will suffer, so if possible always use mod16.
:o
Douglas·Kaien@2005-10-12 21:44
怕啥,有人就是喜欢做mod4的东西...
MeteorRain@2005-10-13 08:51
看了一下原理,好像是将最右边的那部分扩展成一整个block进行压缩。然后播放的时候自动crop掉。
| TOP