[FFmpeg-cvslog] libx264: use medium preset by default.
Anton Khirnov
git at videolan.org
Mon Aug 22 15:32:48 CEST 2011
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Aug 20 16:47:36 2011 +0200| [03eff2bf430a1d80e0854dfd58c8b353f774edde] | committer: Anton Khirnov
libx264: use medium preset by default.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=03eff2bf430a1d80e0854dfd58c8b353f774edde
---
libavcodec/libx264.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index fea67f1..50688fd 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -362,7 +362,7 @@ static av_cold int X264_init(AVCodecContext *avctx)
#define OFFSET(x) offsetof(X264Context, x)
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
static const AVOption options[] = {
- { "preset", "Set the encoding preset (cf. x264 --fullhelp)", OFFSET(preset), FF_OPT_TYPE_STRING, { 0 }, 0, 0, VE},
+ { "preset", "Set the encoding preset (cf. x264 --fullhelp)", OFFSET(preset), FF_OPT_TYPE_STRING, { .str = "medium" }, 0, 0, VE},
{ "tune", "Tune the encoding params (cf. x264 --fullhelp)", OFFSET(tune), FF_OPT_TYPE_STRING, { 0 }, 0, 0, VE},
{ "profile", "Set profile restrictions (cf. x264 --fullhelp) ", OFFSET(profile), FF_OPT_TYPE_STRING, { 0 }, 0, 0, VE},
{ "fastfirstpass", "Use fast settings when encoding first pass", OFFSET(fastfirstpass), FF_OPT_TYPE_INT, { 1 }, 0, 1, VE},
More information about the ffmpeg-cvslog
mailing list