mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
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.
This commit is contained in:
parent
abedc7d08b
commit
0cc7ed4382
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user