[x264-devel] How to speed ffmpeg-x264 encoder for better performance.
Jason Garrett-Glaser
jason at x264.com
Wed Mar 7 07:27:51 CET 2012
On Tue, Mar 6, 2012 at 9:02 PM, Sureshkumar M <sureshmenon87 at gmail.com> wrote:
> Hi,
>
> I have ported ffmpeg-x264 with neon for android but the issue is
> encoder takes more time to encode a single frame .It takes above 150ms
> to encode and cpu rises to 85% in some devices like LG and
> samsung.when both encode and decoder active device struggle to give a
> good smooth output.It is working better in Samsung GTI9000 compared to
> other devices such as HTC Desire,..etc.i am using the following ffmpeg
> avcodeccontext settings during ffmpeg initialization.
>
> c->bit_rate = 256000;
> c->width = width;
> c->height = height;
> c->gop_size = 2;
> c->pix_fmt = PIX_FMT_YUV420P;
> c->codec_type=AVMEDIA_TYPE_VIDEO;
> c->codec_id=CODEC_ID_H264;
> c->cqp=36;
>
>
> Is there any other settings available or have to rebuild the x264
> with any advanced configure options?
Those settings look like complete nonsense; a keyframe interval of 2?
x264.h contains all of the x264 parameters and API functions. Try
starting by setting a preset, like "superfast", using
x264_param_default_preset().
Jason
More information about the x264-devel
mailing list