From 8e2e1e212cfcb13eed6d79a513e2db4d6da5531e Mon Sep 17 00:00:00 2001 From: jpark37 Date: Sat, 28 May 2022 07:58:45 -0700 Subject: [PATCH] obs-x264: Convey lack of Rec. 2100 support --- plugins/obs-x264/data/locale/en-US.ini | 1 + plugins/obs-x264/obs-x264.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/plugins/obs-x264/data/locale/en-US.ini b/plugins/obs-x264/data/locale/en-US.ini index fa11b9965..be4216994 100644 --- a/plugins/obs-x264/data/locale/en-US.ini +++ b/plugins/obs-x264/data/locale/en-US.ini @@ -10,3 +10,4 @@ Tune="Tune" None="(None)" EncoderOptions="x264 Options (separated by space)" VFR="Variable Framerate (VFR)" +HdrUnsupported="OBS does not support using x264 with Rec. 2100" diff --git a/plugins/obs-x264/obs-x264.c b/plugins/obs-x264/obs-x264.c index 3f144408b..d458e93e1 100644 --- a/plugins/obs-x264/obs-x264.c +++ b/plugins/obs-x264/obs-x264.c @@ -701,6 +701,8 @@ static void *obs_x264_create(obs_data_t *settings, obs_encoder_t *encoder) switch (voi->colorspace) { case VIDEO_CS_2100_PQ: case VIDEO_CS_2100_HLG: + obs_encoder_set_last_error(encoder, + obs_module_text("HdrUnsupported")); warn_enc(encoder, "OBS does not support using x264 with Rec. 2100"); return NULL;