mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
obs-x264: Disallow 16-bit color formats
This commit is contained in:
parent
1c15066cc4
commit
2ac3767e7a
@ -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."
|
||||
|
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user