From c6a0eeef3ff48e7c143524d9e90e4ea09ff719e5 Mon Sep 17 00:00:00 2001 From: Conn O'Griofa Date: Thu, 20 May 2021 00:21:38 +0100 Subject: [PATCH] Force IDR frames for libx265 encoder Parameter is needed to avoid infinite black screen with "Waiting for IDR frame" in moonlight-qt (3.1.3) on Windows. --- sunshine/video.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sunshine/video.cpp b/sunshine/video.cpp index 1069d0e6..fd077eea 100644 --- a/sunshine/video.cpp +++ b/sunshine/video.cpp @@ -315,6 +315,7 @@ static encoder_t software { // It also looks like gop_size isn't passed on to x265, so we have to set // 'keyint=-1' in the parameters ourselves. { + { "forced-idr"s, 1 }, { "x265-params"s, "info=0:keyint=-1"s }, { "preset"s, &config::video.sw.preset }, { "tune"s, &config::video.sw.tune } },