mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-06-14 10:54:43 -04:00
UI: Add warning for non-NV12 color formats
Non-NV12 video formats are primarily intended for recording. For streaming, if the libobs color format is not set to NV12, it's likely that the video frames will have to be converted to NV12, which will use extra CPU usage. Due to that fact, it's important to warn the user of that potential extra increased CPU usage that may be required when streaming.
This commit is contained in:
@@ -1793,6 +1793,17 @@ void OBSBasicSettings::on_advOutFFVEncoder_currentIndexChanged(int idx)
|
||||
}
|
||||
}
|
||||
|
||||
void OBSBasicSettings::on_colorFormat_currentIndexChanged(const QString &text)
|
||||
{
|
||||
bool usingNV12 = text == "NV12";
|
||||
|
||||
if (usingNV12)
|
||||
ui->advancedMsg2->setText(QString());
|
||||
else
|
||||
ui->advancedMsg2->setText(
|
||||
QTStr("Basic.Settings.Advanced.FormatWarning"));
|
||||
}
|
||||
|
||||
#define INVALID_RES_STR "Basic.Settings.Video.InvalidResolution"
|
||||
|
||||
static bool ValidResolutions(Ui::OBSBasicSettings *ui)
|
||||
|
||||
Reference in New Issue
Block a user