From aa97534057489b4e200e1801a5a0faa99567611b Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Sun, 26 Apr 2020 23:32:51 +0200 Subject: [PATCH] obs-ffmpeg: Log why new NVENC might not be used --- plugins/obs-ffmpeg/jim-nvenc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/obs-ffmpeg/jim-nvenc.c b/plugins/obs-ffmpeg/jim-nvenc.c index 178de2769..58561158b 100644 --- a/plugins/obs-ffmpeg/jim-nvenc.c +++ b/plugins/obs-ffmpeg/jim-nvenc.c @@ -568,13 +568,16 @@ static void *nvenc_create(obs_data_t *settings, obs_encoder_t *encoder) * gpu other than the one OBS is currently running on. */ int gpu = (int)obs_data_get_int(settings, "gpu"); if (gpu != 0) { + info("different GPU selected by user, falling back to ffmpeg"); goto fail; } if (obs_encoder_scaling_enabled(encoder)) { + info("scaling enabled, falling back to ffmpeg"); goto fail; } if (!obs_nv12_tex_active()) { + info("nv12 not active, falling back to ffmpeg"); goto fail; } if (!init_nvenc(encoder)) {