From 98e58d8e4e8053ee8e9dccbd01ae454d74d3299b Mon Sep 17 00:00:00 2001 From: rigaya Date: Thu, 13 Jun 2024 20:23:17 +0900 Subject: [PATCH] =?UTF-8?q?0.04=E4=BB=A5=E9=99=8D=E3=80=81vbr=E3=81=AE?= =?UTF-8?q?=E3=83=93=E3=83=83=E3=83=88=E3=83=AC=E3=83=BC=E3=83=88=E3=81=8C?= =?UTF-8?q?=E7=95=B0=E5=B8=B8=E3=81=AB=E5=A4=A7=E3=81=8D=E3=81=8F=E3=81=AA?= =?UTF-8?q?=E3=81=A3=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mppcore/mpp_core.cpp | 13 ++++++++++++- mppcore/rgy_version.h | 6 +++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/mppcore/mpp_core.cpp b/mppcore/mpp_core.cpp index c47fd62..c1fcb49 100644 --- a/mppcore/mpp_core.cpp +++ b/mppcore/mpp_core.cpp @@ -1990,7 +1990,17 @@ RGY_ERR MPPCore::initEncoderPrep(const MPPParam *prm) { } RGY_ERR MPPCore::initEncoderRC(const MPPParam *prm) { - m_enccfg.rc.change = MPP_ENC_RC_CFG_CHANGE_ALL; + m_enccfg.rc.change = MPP_ENC_RC_CFG_CHANGE_RC_MODE | + MPP_ENC_RC_CFG_CHANGE_QUALITY | + MPP_ENC_RC_CFG_CHANGE_BPS | + MPP_ENC_RC_CFG_CHANGE_FPS_IN | + MPP_ENC_RC_CFG_CHANGE_FPS_OUT | + MPP_ENC_RC_CFG_CHANGE_GOP | + MPP_ENC_RC_CFG_CHANGE_SKIP_CNT | + MPP_ENC_RC_CFG_CHANGE_QP_INIT | + MPP_ENC_RC_CFG_CHANGE_QP_RANGE | + MPP_ENC_RC_CFG_CHANGE_QP_RANGE_I | + MPP_ENC_RC_CFG_CHANGE_DROP_FRM; m_enccfg.rc.rc_mode = (MppEncRcMode)prm->rateControl; m_enccfg.rc.quality = (MppEncRcQuality)prm->qualityPreset; m_enccfg.rc.bps_target = prm->bitrate * 1000; @@ -2037,6 +2047,7 @@ RGY_ERR MPPCore::initEncoderRC(const MPPParam *prm) { m_enccfg.rc.gop = prm->gopLen; m_enccfg.rc.skip_cnt = 0; + m_enccfg.rc.drop_mode = MPP_ENC_RC_DROP_FRM_DISABLED; auto ret = err_to_rgy(m_encoder->mpi->control(m_encoder->ctx, MPP_ENC_SET_RC_CFG, &m_enccfg.rc)); if (ret != RGY_ERR_NONE) { diff --git a/mppcore/rgy_version.h b/mppcore/rgy_version.h index debf75c..7acd267 100644 --- a/mppcore/rgy_version.h +++ b/mppcore/rgy_version.h @@ -29,9 +29,9 @@ #ifndef __RGY_VERSION_H__ #define __RGY_VERSION_H__ -#define VER_FILEVERSION 0,0,8,0 -#define VER_STR_FILEVERSION "0.08" -#define VER_STR_FILEVERSION_TCHAR _T("0.08") +#define VER_FILEVERSION 0,0,9,0 +#define VER_STR_FILEVERSION "0.09" +#define VER_STR_FILEVERSION_TCHAR _T("0.09") #if (defined(_M_ARM64) || defined(__aarch64__) || defined(__arm64__) || defined(__ARM_ARCH))