Skip to content

Commit

Permalink
Add zerolatency option to nvenc as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Oct 22, 2023
1 parent 41db628 commit 72f2cde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions video/ffmpeg_encode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,8 @@ bool VideoEncoder::Impl::init_video_codec()
{
// Codec delay. We want blocking realtime.
av_dict_set_int(&opts, "delay", 0, 0);
if (options.low_latency)
av_dict_set_int(&opts, "zerolatency", 1, 0);
}
}
else
Expand Down

0 comments on commit 72f2cde

Please sign in to comment.