Log in

View Full Version : disable quarterpel in x264


malikcis
13th December 2011, 16:13
Hi,

How do I disable quarterpel and halfpel motion vectors in x264. I know there is no command line parameter for that.
I want to modify the source code.
I want to do that in order to check how much bitrate saving is gained by subpel search.

Thanks,

malikcis
13th December 2011, 16:57
--subme 0 did not work by the way

akupenguin
13th December 2011, 17:24
What did --subme 0 not do? Are you just referring to the fact that it also disables SATD and RDO, thus making it not a fair comparison of motion vector precision, or is there some actual bug?

malikcis
13th December 2011, 17:50
In my opignion there is a bug:
h->param.analyse.i_subpel_refine = x264_clip3( h->param.analyse.i_subpel_refine, 0, 7 );
should be replaced by:
h->param.analyse.i_subpel_refine = x264_clip3( h->param.analyse.i_subpel_refine, 1, 7 );
otherwise one cannot disable half and quarter pel.
I am using an older version of x264 though (2010)

malikcis
13th December 2011, 17:59
Sorry:
The opposite is true:
h->param.analyse.i_subpel_refine = x264_clip3( h->param.analyse.i_subpel_refine, 1, 7 );
should be replaced by:
h->param.analyse.i_subpel_refine = x264_clip3( h->param.analyse.i_subpel_refine, 0, 7 );

MasterNobody
13th December 2011, 18:08
malikcis
You sources are probably before --subme 0 addition so it probably cause more problems than allow feature which doesn't exist in your codebase.
And probably they are more than 3 years old (not 2010) if you have max 7 there.

malikcis
13th December 2011, 18:26
Thanks for advices