obs-x264: Disallow 16-bit color formats

This commit is contained in:
gxalpha
2023-04-29 16:17:26 -07:00
committed by Jim
parent 1c15066cc4
commit 2ac3767e7a
2 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -10,5 +10,5 @@ Tune="Tune"
None="(None)"
EncoderOptions="x264 Options (separated by space)"
VFR="Variable Framerate (VFR)"
10bitUnsupported="OBS does not support using x264 with 10-bit formats."
HighPrecisionUnsupported="OBS does not support using x264 with high-precision color formats."
HdrUnsupported="OBS does not support using x264 with Rec. 2100."
+7 -4
View File
@@ -694,10 +694,13 @@ static void *obs_x264_create(obs_data_t *settings, obs_encoder_t *encoder)
switch (voi->format) {
case VIDEO_FORMAT_I010:
case VIDEO_FORMAT_P010:
obs_encoder_set_last_error(encoder,
obs_module_text("10bitUnsupported"));
warn_enc(encoder,
"OBS does not support using x264 with 10-bit formats");
case VIDEO_FORMAT_P216:
case VIDEO_FORMAT_P416:
obs_encoder_set_last_error(
encoder, obs_module_text("HighPrecisionUnsupported"));
warn_enc(
encoder,
"OBS does not support using x264 with high-precision formats");
return NULL;
default:
if (voi->colorspace == VIDEO_CS_2100_PQ ||