Browse Source

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.
Richard Stanway 5 years ago
parent
commit
75d1f74838
1 changed files with 5 additions and 0 deletions
  1. 5 0
      plugins/obs-ffmpeg/obs-ffmpeg.c

+ 5 - 0
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);