diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-04-05 16:33:39 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-04-05 16:33:39 +0200 |
commit | ed15405d2fb1ea651cae238f2c339f91bfed32b5 (patch) | |
tree | 1629b4b87b6829aec670054e658c837668524437 /src | |
parent | 6a01677e236b76097e93de1cee06b05ab0aa0efa (diff) |
p5 for high
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index ea1f2fc..469e779 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -454,7 +454,7 @@ static AVCodecContext *create_video_codec_context(AVFormatContext *av_format_con //av_opt_set(codec_context->priv_data, "preset", "slow", 0); //av_opt_set(codec_context->priv_data, "profile", "high", 0); //codec_context->profile = FF_PROFILE_H264_HIGH; - av_opt_set(codec_context->priv_data, "preset", "p6", 0); + av_opt_set(codec_context->priv_data, "preset", "p5", 0); break; case VideoQuality::ULTRA: codec_context->bit_rate = 10000000 + (codec_context->width * codec_context->height) / 2; @@ -472,6 +472,7 @@ static AVCodecContext *create_video_codec_context(AVFormatContext *av_format_con // stream->time_base = codec_context->time_base; // codec_context->ticks_per_frame = 30; av_opt_set(codec_context->priv_data, "tune", "hq", 0); + //av_opt_set(codec_context->priv_data, "rc", "vbr", 0); // Some formats want stream headers to be seperate if (av_format_context->oformat->flags & AVFMT_GLOBALHEADER) |