mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
obs-ffmpeg: Add NVENC preset mapping for old Default preset
The old NVENC preset "Default", labeled in OBS as "Performance", maps to the new P3 preset when not using multipass. Since we previously only enabled multipass/two-pass on "Max Quality", we can map this to P3 in all cases. This commit also modifies UI.
This commit is contained in:
@@ -472,6 +472,11 @@ static bool init_encoder_base(struct nvenc_data *enc, obs_data_t *settings,
|
||||
nv_tuning = NV_ENC_TUNING_INFO_HIGH_QUALITY;
|
||||
nv_multipass = NV_ENC_TWO_PASS_QUARTER_RESOLUTION;
|
||||
|
||||
} else if (astrcmpi(preset, "default") == 0) {
|
||||
nv_preset = NV_ENC_PRESET_P3_GUID;
|
||||
nv_tuning = NV_ENC_TUNING_INFO_HIGH_QUALITY;
|
||||
nv_multipass = NV_ENC_MULTI_PASS_DISABLED;
|
||||
|
||||
} else if (astrcmpi(preset, "hp") == 0) {
|
||||
nv_preset = NV_ENC_PRESET_P1_GUID;
|
||||
nv_tuning = NV_ENC_TUNING_INFO_HIGH_QUALITY;
|
||||
|
||||
Reference in New Issue
Block a user