PDA

View Full Version : x264 H264 encoding without qpel


saimaf
18th August 2008, 18:30
Hello,

How can we encode a raw yuv stream into H264 format without qpel (quarter pixel) motion estimation in x264? For testing purposes I need only half pel in the h264 stream. Are there any runtime options or code changes required in x264?

Is there any other way to get half pel streams using any other h264 encoder?

A prompt reply will be appreciated.
Thanks,

Saima

Dark Shikari
18th August 2008, 19:06
1. Change the following line in encoder.c:h->param.analyse.i_subpel_refine = x264_clip3( h->param.analyse.i_subpel_refine, 1, 7 );toh->param.analyse.i_subpel_refine = x264_clip3( h->param.analyse.i_subpel_refine, 0, 7 );

2. Use --subme 0.

saimaf
18th August 2008, 20:44
Thanks a lot, I was able to generate an h264 stream without qpel.

Can you please send me your email address for future help and guidance. My email is saimaina@yahoo.com

foxyshadis
19th August 2008, 05:15
For support, you can use:

1. This forum.
2. The x264 irc channel.
3. x264-devel mailing list, if you absolutely must or you have code questions.

schweinsz
19th August 2008, 08:17
And you can learn to use the lencod at http://iphome.hhi.de/suehring/tml/,
it can produce any H.264 bitstream you want.

sysKin
19th August 2008, 09:27
And note it's not really a halfpixel stream, it's a quarterpixel stream with all vector components forced to be even values.

AVC doesn't do halfpixels.