[Libav-user] FFmpeg x264 settings for zero-delay encoding?

Aleksey Shubin x.morion.x at gmail.com
Sun Jun 17 02:16:27 CEST 2012


There is "preset" and "tune" options in ffmpeg, you can set them that way:

#include "opt.h"

av_opt_set(codecContex->priv_data, "preset", "ultrafast", 0);
av_opt_set(codecContex->priv_data, "tune", "zerolatency", 0);

where codecContex is AVCodecContext.

For other x264 options that isn't presented in ffmpeg you could use
"x264opts" option:

av_opt_set(codecContex->priv_data, "x264opts",
"no-mbtree:sliced-threads:sync-lookahead=0", 0);


2012/6/17 Christian Brümmer <christian.bruemmer at gmx.de>:
> I need information how to set those parameter via c/c++! this where things
> become tricky


More information about the Libav-user mailing list