obs-ffmpeg: Add b-frame logging for AMD encoder

Add b-frame value to log for the AMD ENcoder When checking for b-frame
support, also set bf=0 so the log will reflect reality.
master
Chris 2022-08-11 21:35:29 +01:00 committed by Jim
parent abedc7d08b
commit 0cc7ed4382
1 changed files with 4 additions and 2 deletions

View File

@ -1137,6 +1137,7 @@ static bool amf_avc_init(void *data, obs_data_t *settings)
warn("B-Frames set to %lld but b-frames are not "
"supported by this device",
bf);
bf = 0;
}
int rc = get_avc_rate_control(rc_str);
@ -1175,11 +1176,12 @@ static bool amf_avc_init(void *data, obs_data_t *settings)
"\tkeyint: %d\n"
"\tpreset: %s\n"
"\tprofile: %s\n"
"\tb-frames: %d\n"
"\twidth: %d\n"
"\theight: %d\n"
"\tparams: %s",
rc_str, bitrate, qp, gop_size, preset, profile, enc->cx, enc->cy,
ffmpeg_opts);
rc_str, bitrate, qp, gop_size, preset, profile, bf, enc->cx,
enc->cy, ffmpeg_opts);
return true;
}