Skip to content

Commit

Permalink
Change nvenc preset to p1.
Browse files Browse the repository at this point in the history
  • Loading branch information
H-M-H committed Sep 24, 2024
1 parent 0ee8be2 commit 6bd33d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/encode_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ void open_video(VideoContext* ctx, Error* err)
if (ctx->c)
{
ctx->sw_pix_fmt = ctx->c->pix_fmt = AV_PIX_FMT_BGR0;
av_opt_set(ctx->c->priv_data, "preset", "fast", 0);
av_opt_set(ctx->c->priv_data, "preset", "p1", 0);
av_opt_set(ctx->c->priv_data, "zerolatency", "1", 0);
av_opt_set(ctx->c->priv_data, "tune", "ull", 0);
av_opt_set(ctx->c->priv_data, "rc", "vbr", 0);
Expand Down

0 comments on commit 6bd33d9

Please sign in to comment.