From 75d1f74838b20ea72753cd72d0d95b7cdcd214b9 Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Fri, 27 Mar 2020 00:16:59 +0100 Subject: [PATCH] obs-ffmpeg: Expose old NVENC on Windows 7 New NVENC isn't available on Windows 7 and the old encoder was marked as internal, giving users no option to use NVENC at all. --- plugins/obs-ffmpeg/obs-ffmpeg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/obs-ffmpeg/obs-ffmpeg.c b/plugins/obs-ffmpeg/obs-ffmpeg.c index 86c6abcf8..309bec37e 100644 --- a/plugins/obs-ffmpeg/obs-ffmpeg.c +++ b/plugins/obs-ffmpeg/obs-ffmpeg.c @@ -240,6 +240,11 @@ bool obs_module_load(void) #ifdef _WIN32 if (get_win_ver_int() > 0x0601) { jim_nvenc_load(); + } else { + // if on Win 7, new nvenc isn't available so there's + // no nvenc encoder for the user to select, expose + // the old encoder directly + nvenc_encoder_info.caps &= ~OBS_ENCODER_CAP_INTERNAL; } #endif obs_register_encoder(&nvenc_encoder_info);