Revert "obs-ffmpeg: Add option to use b-frames as reference"
This reverts commit adf3337d3c
.
Currently causing timestamp issues resulting in FPS issues.
This commit is contained in:
@@ -318,7 +318,6 @@ static bool init_encoder(struct nvenc_data *enc, obs_data_t *settings)
|
||||
const char *profile = obs_data_get_string(settings, "profile");
|
||||
bool psycho_aq = obs_data_get_bool(settings, "psycho_aq");
|
||||
bool lookahead = obs_data_get_bool(settings, "lookahead");
|
||||
bool bframes_as_ref = obs_data_get_bool(settings, "bframes_as_ref");
|
||||
int bf = (int)obs_data_get_int(settings, "bf");
|
||||
bool vbr = astrcmpi(rc, "VBR") == 0;
|
||||
NVENCSTATUS err;
|
||||
@@ -434,11 +433,6 @@ static bool init_encoder(struct nvenc_data *enc, obs_data_t *settings)
|
||||
config->rcParams.enableTemporalAQ = psycho_aq;
|
||||
}
|
||||
|
||||
/* b-frames as reference */
|
||||
if (bf >= 1 && bframes_as_ref &&
|
||||
nv_get_cap(enc, NV_ENC_CAPS_SUPPORT_BFRAME_REF_MODE))
|
||||
h264_config->useBFramesAsRef = NV_ENC_BFRAME_REF_MODE_MIDDLE;
|
||||
|
||||
/* -------------------------- */
|
||||
/* rate control */
|
||||
|
||||
|
Reference in New Issue
Block a user