Skip to content

Commit

Permalink
Use p1/ll and hq/p7 nvenc depending on situation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Nov 10, 2023
1 parent bcb9e5a commit 73aa257
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion video/ffmpeg_encode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1025,8 +1025,15 @@ bool VideoEncoder::Impl::init_video_codec()
if (options.low_latency)
{
av_dict_set_int(&opts, "zerolatency", 1, 0);
av_dict_set(&opts, "tune", "ull", 0);
av_dict_set(&opts, "rc", "cbr", 0);
av_dict_set(&opts, "preset", "p1", 0);
av_dict_set(&opts, "tune", "ll", 0);
}
else
{
av_dict_set(&opts, "rc", "vbr", 0);
av_dict_set(&opts, "tune", "hq", 0);
av_dict_set(&opts, "preset", "p7", 0);
}
}

Expand Down

0 comments on commit 73aa257

Please sign in to comment.