Skip to content

Commit

Permalink
add support for vbr nvenc
Browse files Browse the repository at this point in the history
  • Loading branch information
GBeauregard committed Mar 23, 2022
1 parent a79f165 commit 86c8d2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyffstream/encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def get_hevc_nvenc_flags(fv: EncodeSession) -> list[str]:

"-preset:v", "p7",
"-tune:v", "hq",
"-rc:v", "cbr",
"-rc:v", "cbr" if fv.ev.vbitrate == fv.ev.max_vbitrate else "vbr",
"-multipass:v", "fullres",
"-bf:v", "3",
"-b_ref_mode:v", "each",
Expand Down Expand Up @@ -614,7 +614,7 @@ def get_h264_nvenc_flags(fv: EncodeSession) -> list[str]:

"-preset:v", "p7",
"-tune:v", "hq",
"-rc:v", "cbr",
"-rc:v", "cbr" if fv.ev.vbitrate == fv.ev.max_vbitrate else "vbr",
"-multipass:v", "fullres",
*min_version(("-extra_sei:v", "0"), ("libavcodec", "59.1.101")),
*common_bitrate_flags(fv),
Expand Down

0 comments on commit 86c8d2c

Please sign in to comment.