Skip to content

Commit

Permalink
AMD encoder improvements (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
psyke83 authored Dec 15, 2022
1 parent 5e40248 commit a4a5d30
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,21 +455,29 @@ static encoder_t amdvce {
AV_PIX_FMT_NV12, AV_PIX_FMT_P010,
{
{
{ "enforce_hrd"s, true },
{ "gops_per_idr"s, 1 },
{ "header_insertion_mode"s, "idr"s },
{ "gops_per_idr"s, 30 },
{ "usage"s, "ultralowlatency"s },
{ "qmax"s, 51 },
{ "qmin"s, 0 },
{ "quality"s, &config::video.amd.quality },
{ "rc"s, &config::video.amd.rc_hevc },
{ "usage"s, "ultralowlatency"s },
{ "vbaq"s, true },
},
std::make_optional<encoder_t::option_t>({ "qp_p"s, &config::video.qp }),
"hevc_amf"s,
},
{
{
{ "usage"s, "ultralowlatency"s },
{ "enforce_hrd"s, true },
{ "log_to_dbg"s, "1"s },
{ "qmax"s, 51 },
{ "qmin"s, 0 },
{ "quality"s, &config::video.amd.quality },
{ "rc"s, &config::video.amd.rc_h264 },
{ "log_to_dbg"s, "1"s },
{ "usage"s, "ultralowlatency"s },
{ "vbaq"s, true },
},
std::make_optional<encoder_t::option_t>({ "qp_p"s, &config::video.qp }),
"h264_amf"s,
Expand Down

0 comments on commit a4a5d30

Please sign in to comment.