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 <[email protected]>:
> I need information how to set those parameter via c/c++! this where things
> become tricky
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to