Skip to content

Commit

Permalink
QPの範囲が未指定のときのログ出力を改善。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed May 28, 2024
1 parent 6473a91 commit a45d992
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions NVEnc/NVEnc_readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ NVIDIA グラフィックドライバ 551.23
今後の更新で設定ファイルの互換性がなくなるかもしれません。

【メモ】
2024.05.28 (7.54)
- 新たなインタレ解除フィルタを追加。(--vpp-decomb)
- ドライバ555.85で、vbr使用時にビットレートが指定値より小さくなってしまう問題を回避。

2024.05.12 (7.53)
- ffmpeg 7.0に更新。(Windows版)
- ffmpeg 6.1 -> 7.0
Expand Down
7 changes: 4 additions & 3 deletions NVEncCore/NVEncCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5152,12 +5152,13 @@ tstring NVEncCore::GetEncodingParamsInfo(int output_level) {
add_str(RGY_LOG_INFO, _T("Initial QP I:%d P:%d B:%d\n"), m_stEncConfig.rcParams.initialRCQP.qpIntra, m_stEncConfig.rcParams.initialRCQP.qpInterP, m_stEncConfig.rcParams.initialRCQP.qpInterB);
}
if (m_stEncConfig.rcParams.enableMaxQP || m_stEncConfig.rcParams.enableMinQP) {
const int qpMaxCodec = (rgy_codec == RGY_CODEC_AV1) ? 255 : ((bitDepth > 8) ? 63 : 51);
int minQPI = (m_stEncConfig.rcParams.enableMinQP) ? m_stEncConfig.rcParams.minQP.qpIntra : 0;
int maxQPI = (m_stEncConfig.rcParams.enableMaxQP) ? m_stEncConfig.rcParams.maxQP.qpIntra : 51;
int maxQPI = (m_stEncConfig.rcParams.enableMaxQP) ? m_stEncConfig.rcParams.maxQP.qpIntra : qpMaxCodec;
int minQPP = (m_stEncConfig.rcParams.enableMinQP) ? m_stEncConfig.rcParams.minQP.qpInterP : 0;
int maxQPP = (m_stEncConfig.rcParams.enableMaxQP) ? m_stEncConfig.rcParams.maxQP.qpInterP : 51;
int maxQPP = (m_stEncConfig.rcParams.enableMaxQP) ? m_stEncConfig.rcParams.maxQP.qpInterP : qpMaxCodec;
int minQPB = (m_stEncConfig.rcParams.enableMinQP) ? m_stEncConfig.rcParams.minQP.qpInterB : 0;
int maxQPB = (m_stEncConfig.rcParams.enableMaxQP) ? m_stEncConfig.rcParams.maxQP.qpInterB : 51;
int maxQPB = (m_stEncConfig.rcParams.enableMaxQP) ? m_stEncConfig.rcParams.maxQP.qpInterB : qpMaxCodec;
add_str(RGY_LOG_INFO, _T("QP range I:%d-%d P:%d-%d B:%d-%d\n"), minQPI, maxQPI, minQPP, maxQPP, minQPB, maxQPB);
}
if (m_dev->encoder()->checkAPIver(11, 1)) {
Expand Down

0 comments on commit a45d992

Please sign in to comment.