public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Troy Dawson <tdawson@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/obs-studio] epel9: Merge commit '99a6d452a992d8ef08d4b0ca4d96ec9e774062e9' into epel9
Date: Sat, 10 Oct 2026 20:01:39 GMT	[thread overview]
Message-ID: <179166249973.1.12853241879845313155.rpms-obs-studio-889a5c48c65c@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/obs-studio
Branch : epel9
Commit : 889a5c48c65c4c09e519041fc5f0241dfd13737f
Author : Troy Dawson <tdawson@redhat.com>
Date   : 2026-10-10T13:00:59-07:00
Stats  : +816/-1359 in 11 file(s)
URL    : https://src.fedoraproject.org/rpms/obs-studio/c/889a5c48c65c4c09e519041fc5f0241dfd13737f?branch=epel9

Log:
Merge commit '99a6d452a992d8ef08d4b0ca4d96ec9e774062e9' into epel9

---
diff --git a/0101-UI-Consistently-reference-the-software-H264-encoder-.patch b/0101-UI-Consistently-reference-the-software-H264-encoder-.patch
deleted file mode 100644
index 2d5992e..0000000
--- a/0101-UI-Consistently-reference-the-software-H264-encoder-.patch
+++ /dev/null
@@ -1,104 +0,0 @@
-From dfa857eceb0deaf1a273fbd3423364fd7268ea90 Mon Sep 17 00:00:00 2001
-From: Neal Gompa <neal@gompa.dev>
-Date: Sat, 7 Jan 2023 23:15:13 -0500
-Subject: [PATCH 101/103] UI: Consistently reference the software H264 encoder
- properly
-
-The code here assumes that the only software encoder is the x264-based
-H.264 encoder. That may not always remain true. This change adjusts
-the encoder string to indicate that it's an H.264 encoder from x264.
----
- UI/data/locale/en-US.ini             | 4 ++--
- UI/window-basic-auto-config-test.cpp | 6 +++---
- UI/window-basic-settings-stream.cpp  | 2 +-
- UI/window-basic-settings.cpp         | 7 ++++---
- 4 files changed, 10 insertions(+), 9 deletions(-)
-
-diff --git a/UI/data/locale/en-US.ini b/UI/data/locale/en-US.ini
-index e62f38a26..339ac4d86 100644
---- a/UI/data/locale/en-US.ini
-+++ b/UI/data/locale/en-US.ini
-@@ -996,7 +996,7 @@ Basic.Settings.Output.Simple.Warn.Encoder="Warning: Recording with a software en
- Basic.Settings.Output.Simple.Warn.Lossless="Warning: Lossless quality generates tremendously large file sizes! Lossless quality can use upward of 7 gigabytes of disk space per minute at high resolutions and framerates. Lossless is not recommended for long recordings unless you have a very large amount of disk space available."
- Basic.Settings.Output.Simple.Warn.Lossless.Msg="Are you sure you want to use lossless quality?"
- Basic.Settings.Output.Simple.Warn.Lossless.Title="Lossless quality warning!"
--Basic.Settings.Output.Simple.Encoder.Software="Software (x264)"
-+Basic.Settings.Output.Simple.Encoder.Software.X264.H264="Software (x264)"
- Basic.Settings.Output.Simple.Encoder.Hardware.QSV.H264="Hardware (QSV, H.264)"
- Basic.Settings.Output.Simple.Encoder.Hardware.QSV.AV1="Hardware (QSV, AV1)"
- Basic.Settings.Output.Simple.Encoder.Hardware.AMD.H264="Hardware (AMD, H.264)"
-@@ -1007,7 +1007,7 @@ Basic.Settings.Output.Simple.Encoder.Hardware.NVENC.AV1="Hardware (NVENC, AV1)"
- Basic.Settings.Output.Simple.Encoder.Hardware.NVENC.HEVC="Hardware (NVENC, HEVC)"
- Basic.Settings.Output.Simple.Encoder.Hardware.Apple.H264="Hardware (Apple, H.264)"
- Basic.Settings.Output.Simple.Encoder.Hardware.Apple.HEVC="Hardware (Apple, HEVC)"
--Basic.Settings.Output.Simple.Encoder.SoftwareLowCPU="Software (x264 low CPU usage preset, increases file size)"
-+Basic.Settings.Output.Simple.Encoder.SoftwareLowCPU.X264.H264="Software (x264 low CPU usage preset, increases file size)"
- Basic.Settings.Output.Simple.Codec.AAC="AAC"
- Basic.Settings.Output.Simple.Codec.AAC.Default="AAC (Default)"
- Basic.Settings.Output.Simple.Codec.Opus="Opus"
-diff --git a/UI/window-basic-auto-config-test.cpp b/UI/window-basic-auto-config-test.cpp
-index 7d7c4278e..a8b5d884a 100644
---- a/UI/window-basic-auto-config-test.cpp
-+++ b/UI/window-basic-auto-config-test.cpp
-@@ -1010,7 +1010,7 @@ void AutoConfigTestPage::TestRecordingEncoderThread()
- }
- 
- #define ENCODER_TEXT(x) "Basic.Settings.Output.Simple.Encoder." x
--#define ENCODER_SOFTWARE ENCODER_TEXT("Software")
-+#define ENCODER_X264 ENCODER_TEXT("Software.X264.H264")
- #define ENCODER_NVENC ENCODER_TEXT("Hardware.NVENC.H264")
- #define ENCODER_QSV ENCODER_TEXT("Hardware.QSV.H264")
- #define ENCODER_AMD ENCODER_TEXT("Hardware.AMD.H264")
-@@ -1050,7 +1050,7 @@ void AutoConfigTestPage::FinalizeResults()
- 	auto encName = [](AutoConfig::Encoder enc) -> QString {
- 		switch (enc) {
- 		case AutoConfig::Encoder::x264:
--			return QTStr(ENCODER_SOFTWARE);
-+			return QTStr(ENCODER_X264);
- 		case AutoConfig::Encoder::NVENC:
- 			return QTStr(ENCODER_NVENC);
- 		case AutoConfig::Encoder::QSV:
-@@ -1063,7 +1063,7 @@ void AutoConfigTestPage::FinalizeResults()
- 			return QTStr(QUALITY_SAME);
- 		}
- 
--		return QTStr(ENCODER_SOFTWARE);
-+		return QTStr(ENCODER_X264);
- 	};
- 
- 	auto newLabel = [this](const char *str) -> QLabel * {
-diff --git a/UI/window-basic-settings-stream.cpp b/UI/window-basic-settings-stream.cpp
-index 2ad275a44..e2ba4b677 100644
---- a/UI/window-basic-settings-stream.cpp
-+++ b/UI/window-basic-settings-stream.cpp
-@@ -1670,7 +1670,7 @@ void OBSBasicSettings::ResetEncoders(bool streamOnly)
- 
- #define ENCODER_STR(str) QTStr("Basic.Settings.Output.Simple.Encoder." str)
- 
--	ui->simpleOutStrEncoder->addItem(ENCODER_STR("Software"),
-+	ui->simpleOutStrEncoder->addItem(ENCODER_STR("Software.X264.H264"),
- 					 QString(SIMPLE_ENCODER_X264));
- #ifdef _WIN32
- 	if (service_supports_encoder(vcodecs, "obs_qsv11"))
-diff --git a/UI/window-basic-settings.cpp b/UI/window-basic-settings.cpp
-index b1e6bd6fb..ddf0adc56 100644
---- a/UI/window-basic-settings.cpp
-+++ b/UI/window-basic-settings.cpp
-@@ -5237,10 +5237,11 @@ void OBSBasicSettings::FillSimpleRecordingValues()
- 	ADD_QUALITY("HQ");
- 	ADD_QUALITY("Lossless");
- 
--	ui->simpleOutRecEncoder->addItem(ENCODER_STR("Software"),
-+	ui->simpleOutRecEncoder->addItem(ENCODER_STR("Software.X264.H264"),
- 					 QString(SIMPLE_ENCODER_X264));
--	ui->simpleOutRecEncoder->addItem(ENCODER_STR("SoftwareLowCPU"),
--					 QString(SIMPLE_ENCODER_X264_LOWCPU));
-+	ui->simpleOutRecEncoder->addItem(
-+		ENCODER_STR("SoftwareLowCPU.X264.H264"),
-+		QString(SIMPLE_ENCODER_X264_LOWCPU));
- 	if (EncoderAvailable("obs_qsv11"))
- 		ui->simpleOutRecEncoder->addItem(
- 			ENCODER_STR("Hardware.QSV.H264"),
--- 
-2.41.0
-

diff --git a/0101-frontend-Consider-settings-changed-if-an-output-sett.patch b/0101-frontend-Consider-settings-changed-if-an-output-sett.patch
new file mode 100644
index 0000000..a1bc23f
--- /dev/null
+++ b/0101-frontend-Consider-settings-changed-if-an-output-sett.patch
@@ -0,0 +1,90 @@
+From d87d043a4dc833b8e353a60365bcdc143c2e1264 Mon Sep 17 00:00:00 2001
+From: Asahi Lina <lina@asahilina.net>
+Date: Tue, 1 Jul 2025 16:48:12 +0900
+Subject: [PATCH 1/4] frontend: Consider settings changed if an output setting
+ was reset
+
+If the previous selection is no longer available, the UI would default
+to the first index, but not allow the user to save the change (which
+then becomes impossible to save if the setting only has one possible
+value, since you can never trigger the "changed" status).
+
+If the settings load process clamped any setting to the default, enable
+the apply button and consider the setting changed.
+---
+ frontend/settings/OBSBasicSettings.cpp | 28 +++++++++++++++++++++++---
+ 1 file changed, 25 insertions(+), 3 deletions(-)
+
+diff --git a/frontend/settings/OBSBasicSettings.cpp b/frontend/settings/OBSBasicSettings.cpp
+index 32e2d92debb6..1a2ab64fee80 100644
+--- a/frontend/settings/OBSBasicSettings.cpp
++++ b/frontend/settings/OBSBasicSettings.cpp
+@@ -1737,19 +1737,30 @@ void OBSBasicSettings::LoadSimpleOutputSettings()
+ 	ui->simpleOutAdvanced->setChecked(advanced);
+ 	ui->simpleOutCustom->setText(custom);
+ 
++	bool outputSettingReset = false;
++
+ 	idx = ui->simpleOutRecQuality->findData(QString(recQual));
+-	if (idx == -1)
++	if (idx == -1) {
++		ui->simpleOutRecQuality->setProperty("changed", QVariant(true));
+ 		idx = 0;
++		outputSettingReset = true;
++	}
+ 	ui->simpleOutRecQuality->setCurrentIndex(idx);
+ 
+ 	idx = ui->simpleOutStrEncoder->findData(QString(streamEnc));
+-	if (idx == -1)
++	if (idx == -1) {
++		ui->simpleOutStrEncoder->setProperty("changed", QVariant(true));
+ 		idx = 0;
++		outputSettingReset = true;
++	}
+ 	ui->simpleOutStrEncoder->setCurrentIndex(idx);
+ 
+ 	idx = ui->simpleOutStrAEncoder->findData(QString(streamAudioEnc));
+-	if (idx == -1)
++	if (idx == -1) {
++		ui->simpleOutStrAEncoder->setProperty("changed", QVariant(true));
+ 		idx = 0;
++		outputSettingReset = true;
++	}
+ 	ui->simpleOutStrAEncoder->setCurrentIndex(idx);
+ 
+ 	idx = ui->simpleOutRecEncoder->findData(QString(recEnc));
+@@ -1765,6 +1776,10 @@ void OBSBasicSettings::LoadSimpleOutputSettings()
+ 	ui->simpleRBMegsMax->setValue(rbSize);
+ 
+ 	SimpleStreamingEncoderChanged();
++	if (outputSettingReset) {
++		outputsChanged = true;
++		EnableApplyButton(true);
++	}
+ }
+ 
+ static inline QString makeFormatToolTip()
+@@ -1905,6 +1920,10 @@ void OBSBasicSettings::LoadAdvOutputStreamingEncoderProperties()
+ 
+ 			ui->advOutEncoder->insertItem(0, encName, QT_UTF8(type));
+ 			SetComboByValue(ui->advOutEncoder, type);
++		} else {
++			ui->advOutEncoder->setProperty("changed", QVariant(true));
++			outputsChanged = true;
++			EnableApplyButton(true);
+ 		}
+ 	}
+ 
+@@ -2011,6 +2030,9 @@ void OBSBasicSettings::LoadAdvOutputRecordingEncoderProperties()
+ 			SetComboByValue(ui->advOutRecEncoder, type);
+ 		} else {
+ 			ui->advOutRecEncoder->setCurrentIndex(-1);
++			ui->advOutRecEncoder->setProperty("changed", QVariant(true));
++			outputsChanged = true;
++			EnableApplyButton(true);
+ 		}
+ 	}
+ }
+-- 
+2.49.0
+

diff --git a/0102-frontend-Allow-invalid-recording-encoder-if-quality-.patch b/0102-frontend-Allow-invalid-recording-encoder-if-quality-.patch
new file mode 100644
index 0000000..c70fc8a
--- /dev/null
+++ b/0102-frontend-Allow-invalid-recording-encoder-if-quality-.patch
@@ -0,0 +1,41 @@
+From 22cb8efe8915ab3bb9574cb1711f25a1a525f5aa Mon Sep 17 00:00:00 2001
+From: Asahi Lina <lina@asahilina.net>
+Date: Tue, 1 Jul 2025 16:50:08 +0900
+Subject: [PATCH 2/4] frontend: Allow invalid recording encoder if quality set
+ to "Stream"
+
+The combo box is only visible if quality isn't "Stream", so otherwise an
+invalid/missing selection cannot be corrected. Only do the check when
+it's relevant.
+---
+ frontend/settings/OBSBasicSettings.cpp | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/frontend/settings/OBSBasicSettings.cpp b/frontend/settings/OBSBasicSettings.cpp
+index 1a2ab64fee80..de322bc1ee8f 100644
+--- a/frontend/settings/OBSBasicSettings.cpp
++++ b/frontend/settings/OBSBasicSettings.cpp
+@@ -3719,8 +3719,7 @@ bool OBSBasicSettings::QueryAllowedToClose()
+ 	bool invalidFormat = false;
+ 	bool invalidTracks = false;
+ 	if (simple) {
+-		if (ui->simpleOutRecEncoder->currentIndex() == -1 || ui->simpleOutStrEncoder->currentIndex() == -1 ||
+-		    ui->simpleOutRecAEncoder->currentIndex() == -1 || ui->simpleOutStrAEncoder->currentIndex() == -1)
++		if (ui->simpleOutStrEncoder->currentIndex() == -1 || ui->simpleOutStrAEncoder->currentIndex() == -1)
+ 			invalidEncoder = true;
+ 
+ 		if (ui->simpleOutRecFormat->currentIndex() == -1)
+@@ -3730,6 +3729,10 @@ bool OBSBasicSettings::QueryAllowedToClose()
+ 		QString format = ui->simpleOutRecFormat->currentData().toString();
+ 		if (SimpleOutGetSelectedAudioTracks() == 0 && qual != "Stream" && format != "flv")
+ 			invalidTracks = true;
++
++		if (qual != "Stream" &&
++		    (ui->simpleOutRecEncoder->currentIndex() == -1 || ui->simpleOutRecAEncoder->currentIndex() == -1))
++			invalidEncoder = true;
+ 	} else {
+ 		if (ui->advOutRecEncoder->currentIndex() == -1 || ui->advOutEncoder->currentIndex() == -1 ||
+ 		    ui->advOutRecAEncoder->currentIndex() == -1 || ui->advOutAEncoder->currentIndex() == -1)
+-- 
+2.49.0
+

diff --git a/0102-obs-ffmpeg-Add-initial-support-for-the-OpenH264-H.26.patch b/0102-obs-ffmpeg-Add-initial-support-for-the-OpenH264-H.26.patch
deleted file mode 100644
index 519c5ea..0000000
--- a/0102-obs-ffmpeg-Add-initial-support-for-the-OpenH264-H.26.patch
+++ /dev/null
@@ -1,346 +0,0 @@
-From 939db8edca8161f4518900e750551814c2c6088e Mon Sep 17 00:00:00 2001
-From: Neal Gompa <neal@gompa.dev>
-Date: Sun, 26 Mar 2023 06:06:31 -0400
-Subject: [PATCH 102/103] obs-ffmpeg: Add initial support for the OpenH264
- H.264 software codec
-
-This allows users to leverage the OpenH264 codec from Cisco to encode
-H.264 video content. It is significantly reduced in capability from
-alternatives, but it does the job.
-
-This also provides a framework for adding support for other H.264
-software codecs provided through FFmpeg.
----
- plugins/obs-ffmpeg/CMakeLists.txt        |   1 +
- plugins/obs-ffmpeg/cmake/legacy.cmake    |   1 +
- plugins/obs-ffmpeg/data/locale/en-US.ini |   3 +
- plugins/obs-ffmpeg/obs-ffmpeg-h264.c     | 260 +++++++++++++++++++++++
- plugins/obs-ffmpeg/obs-ffmpeg.c          |   2 +
- 5 files changed, 267 insertions(+)
- create mode 100644 plugins/obs-ffmpeg/obs-ffmpeg-h264.c
-
-diff --git a/plugins/obs-ffmpeg/CMakeLists.txt b/plugins/obs-ffmpeg/CMakeLists.txt
-index 04530ef39..b77f6366f 100644
---- a/plugins/obs-ffmpeg/CMakeLists.txt
-+++ b/plugins/obs-ffmpeg/CMakeLists.txt
-@@ -36,6 +36,7 @@ target_sources(
-           obs-ffmpeg-av1.c
-           obs-ffmpeg-compat.h
-           obs-ffmpeg-formats.h
-+          obs-ffmpeg-h264.c
-           obs-ffmpeg-hls-mux.c
-           obs-ffmpeg-mux.c
-           obs-ffmpeg-mux.h
-diff --git a/plugins/obs-ffmpeg/cmake/legacy.cmake b/plugins/obs-ffmpeg/cmake/legacy.cmake
-index 4cc75b341..d2e11965d 100644
---- a/plugins/obs-ffmpeg/cmake/legacy.cmake
-+++ b/plugins/obs-ffmpeg/cmake/legacy.cmake
-@@ -40,6 +40,7 @@ target_sources(
-           obs-ffmpeg-video-encoders.c
-           obs-ffmpeg-audio-encoders.c
-           obs-ffmpeg-av1.c
-+          obs-ffmpeg-h264.c
-           obs-ffmpeg-nvenc.c
-           obs-ffmpeg-output.c
-           obs-ffmpeg-mux.c
-diff --git a/plugins/obs-ffmpeg/data/locale/en-US.ini b/plugins/obs-ffmpeg/data/locale/en-US.ini
-index 9652be160..e18e39f5a 100644
---- a/plugins/obs-ffmpeg/data/locale/en-US.ini
-+++ b/plugins/obs-ffmpeg/data/locale/en-US.ini
-@@ -120,4 +120,7 @@ NVENC.CheckDrivers="Try installing the latest <a href=\"https://obsproject.com/g
- 
- AV1.8bitUnsupportedHdr="OBS does not support 8-bit output of Rec. 2100."
- 
-+H264.UnsupportedVideoFormat="Only video formats using 8-bit color are supported."
-+H264.UnsupportedColorSpace="Only the Rec. 709 color space is supported."
-+
- ReconnectDelayTime="Reconnect Delay"
-diff --git a/plugins/obs-ffmpeg/obs-ffmpeg-h264.c b/plugins/obs-ffmpeg/obs-ffmpeg-h264.c
-new file mode 100644
-index 000000000..179a61ccf
---- /dev/null
-+++ b/plugins/obs-ffmpeg/obs-ffmpeg-h264.c
-@@ -0,0 +1,260 @@
-+/******************************************************************************
-+    Copyright (C) 2023 by Neal Gompa <neal@gompa.dev>
-+    Partly derived from obs-ffmpeg-av1.c by Hugh Bailey <obs.jim@gmail.com>
-+
-+    This program is free software: you can redistribute it and/or modify
-+    it under the terms of the GNU General Public License as published by
-+    the Free Software Foundation, either version 2 of the License, or
-+    (at your option) any later version.
-+
-+    This program is distributed in the hope that it will be useful,
-+    but WITHOUT ANY WARRANTY; without even the implied warranty of
-+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+    GNU General Public License for more details.
-+
-+    You should have received a copy of the GNU General Public License
-+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-+******************************************************************************/
-+
-+#include "obs-ffmpeg-video-encoders.h"
-+
-+#define do_log(level, format, ...)                   \
-+	blog(level, "[H.264 encoder: '%s'] " format, \
-+	     obs_encoder_get_name(enc->ffve.encoder), ##__VA_ARGS__)
-+
-+#define error(format, ...) do_log(LOG_ERROR, format, ##__VA_ARGS__)
-+#define warn(format, ...) do_log(LOG_WARNING, format, ##__VA_ARGS__)
-+#define info(format, ...) do_log(LOG_INFO, format, ##__VA_ARGS__)
-+#define debug(format, ...) do_log(LOG_DEBUG, format, ##__VA_ARGS__)
-+
-+enum h264_encoder_type {
-+	H264_ENCODER_TYPE_OH264,
-+};
-+
-+struct h264_encoder {
-+	struct ffmpeg_video_encoder ffve;
-+	enum h264_encoder_type type;
-+
-+	DARRAY(uint8_t) header;
-+};
-+
-+static const char *oh264_getname(void *unused)
-+{
-+	UNUSED_PARAMETER(unused);
-+	return "OpenH264";
-+}
-+
-+static void h264_video_info(void *data, struct video_scale_info *info)
-+{
-+	UNUSED_PARAMETER(data);
-+
-+	// OpenH264 only supports I420
-+	info->format = VIDEO_FORMAT_I420;
-+}
-+
-+static bool h264_update(struct h264_encoder *enc, obs_data_t *settings)
-+{
-+	const char *profile = obs_data_get_string(settings, "profile");
-+	int bitrate = (int)obs_data_get_int(settings, "bitrate");
-+	int keyint_sec = 0;              // This is not supported by OpenH264
-+	const char *rc_mode = "quality"; // We only want to use quality mode
-+	int allow_skip_frames = 1;       // This is required for quality mode
-+
-+	video_t *video = obs_encoder_video(enc->ffve.encoder);
-+	const struct video_output_info *voi = video_output_get_info(video);
-+	struct video_scale_info info;
-+
-+	info.format = voi->format;
-+	info.colorspace = voi->colorspace;
-+	info.range = voi->range;
-+
-+	enc->ffve.context->thread_count = 0;
-+
-+	h264_video_info(enc, &info);
-+
-+	av_opt_set(enc->ffve.context->priv_data, "rc_mode", rc_mode, 0);
-+	av_opt_set(enc->ffve.context->priv_data, "profile", profile, 0);
-+	av_opt_set_int(enc->ffve.context->priv_data, "allow_skip_frames",
-+		       allow_skip_frames, 0);
-+
-+	const char *ffmpeg_opts = obs_data_get_string(settings, "ffmpeg_opts");
-+	ffmpeg_video_encoder_update(&enc->ffve, bitrate, keyint_sec, voi, &info,
-+				    ffmpeg_opts);
-+	info("settings:\n"
-+	     "\tencoder:      %s\n"
-+	     "\trc_mode:      %s\n"
-+	     "\tbitrate:      %d\n"
-+	     "\tprofile:      %s\n"
-+	     "\twidth:        %d\n"
-+	     "\theight:       %d\n"
-+	     "\tffmpeg opts:  %s\n",
-+	     enc->ffve.enc_name, rc_mode, bitrate, profile,
-+	     enc->ffve.context->width, enc->ffve.height, ffmpeg_opts);
-+
-+	enc->ffve.context->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
-+	return ffmpeg_video_encoder_init_codec(&enc->ffve);
-+}
-+
-+static void h264_destroy(void *data)
-+{
-+	struct h264_encoder *enc = data;
-+
-+	ffmpeg_video_encoder_free(&enc->ffve);
-+	da_free(enc->header);
-+	bfree(enc);
-+}
-+
-+static void on_first_packet(void *data, AVPacket *pkt, struct darray *da)
-+{
-+	struct h264_encoder *enc = data;
-+
-+	da_copy_array(enc->header, enc->ffve.context->extradata,
-+		      enc->ffve.context->extradata_size);
-+
-+	darray_copy_array(1, da, pkt->data, pkt->size);
-+}
-+
-+static void *h264_create_internal(obs_data_t *settings, obs_encoder_t *encoder,
-+				  const char *enc_lib, const char *enc_name)
-+{
-+	video_t *video = obs_encoder_video(encoder);
-+	const struct video_output_info *voi = video_output_get_info(video);
-+
-+	switch (voi->format) {
-+	// planar 4:2:0 formats
-+	case VIDEO_FORMAT_I420: // three-plane
-+	case VIDEO_FORMAT_NV12: // two-plane, luma and packed chroma
-+	// packed 4:2:2 formats
-+	case VIDEO_FORMAT_YVYU:
-+	case VIDEO_FORMAT_YUY2: // YUYV
-+	case VIDEO_FORMAT_UYVY:
-+	// packed uncompressed formats
-+	case VIDEO_FORMAT_RGBA:
-+	case VIDEO_FORMAT_BGRA:
-+	case VIDEO_FORMAT_BGRX:
-+	case VIDEO_FORMAT_BGR3:
-+	case VIDEO_FORMAT_Y800: // grayscale
-+	// planar 4:4:4
-+	case VIDEO_FORMAT_I444:
-+	// planar 4:2:2
-+	case VIDEO_FORMAT_I422:
-+	// planar 4:2:0 with alpha
-+	case VIDEO_FORMAT_I40A:
-+	// planar 4:2:2 with alpha
-+	case VIDEO_FORMAT_I42A:
-+	// planar 4:4:4 with alpha
-+	case VIDEO_FORMAT_YUVA:
-+	// packed 4:4:4 with alpha
-+	case VIDEO_FORMAT_AYUV:
-+		break;
-+	default:; // Make the compiler do the right thing
-+		const char *const text =
-+			obs_module_text("H264.UnsupportedVideoFormat");
-+		obs_encoder_set_last_error(encoder, text);
-+		blog(LOG_ERROR, "[H.264 encoder] %s", text);
-+		return NULL;
-+	}
-+
-+	switch (voi->colorspace) {
-+	case VIDEO_CS_DEFAULT:
-+	case VIDEO_CS_709:
-+		break;
-+	default:; // Make the compiler do the right thing
-+		const char *const text =
-+			obs_module_text("H264.UnsupportedColorSpace");
-+		obs_encoder_set_last_error(encoder, text);
-+		blog(LOG_ERROR, "[H.264 encoder] %s", text);
-+		return NULL;
-+	}
-+
-+	struct h264_encoder *enc = bzalloc(sizeof(*enc));
-+
-+	if (strcmp(enc_lib, "libopenh264") == 0)
-+		enc->type = H264_ENCODER_TYPE_OH264;
-+
-+	if (!ffmpeg_video_encoder_init(&enc->ffve, enc, encoder, enc_lib, NULL,
-+				       enc_name, NULL, on_first_packet))
-+		goto fail;
-+	if (!h264_update(enc, settings))
-+		goto fail;
-+
-+	return enc;
-+
-+fail:
-+	h264_destroy(enc);
-+	return NULL;
-+}
-+
-+static void *oh264_create(obs_data_t *settings, obs_encoder_t *encoder)
-+{
-+	return h264_create_internal(settings, encoder, "libopenh264",
-+				    "OpenH264");
-+}
-+
-+static bool h264_encode(void *data, struct encoder_frame *frame,
-+			struct encoder_packet *packet, bool *received_packet)
-+{
-+	struct h264_encoder *enc = data;
-+	return ffmpeg_video_encode(&enc->ffve, frame, packet, received_packet);
-+}
-+
-+void h264_defaults(obs_data_t *settings)
-+{
-+	obs_data_set_default_int(settings, "bitrate", 2500);
-+	obs_data_set_default_string(settings, "profile", "main");
-+}
-+
-+obs_properties_t *h264_properties(enum h264_encoder_type type)
-+{
-+	UNUSED_PARAMETER(type); // Only one encoder right now...
-+	obs_properties_t *props = obs_properties_create();
-+	obs_property_t *p;
-+
-+	p = obs_properties_add_list(props, "profile",
-+				    obs_module_text("Profile"),
-+				    OBS_COMBO_TYPE_LIST,
-+				    OBS_COMBO_FORMAT_STRING);
-+	obs_property_list_add_string(p, "constrained_baseline",
-+				     "constrained_baseline");
-+	obs_property_list_add_string(p, "main", "main");
-+	obs_property_list_add_string(p, "high", "high");
-+
-+	p = obs_properties_add_int(props, "bitrate", obs_module_text("Bitrate"),
-+				   50, 300000, 50);
-+	obs_property_int_set_suffix(p, " Kbps");
-+
-+	obs_properties_add_text(props, "ffmpeg_opts",
-+				obs_module_text("FFmpegOpts"),
-+				OBS_TEXT_DEFAULT);
-+
-+	return props;
-+}
-+
-+obs_properties_t *oh264_properties(void *unused)
-+{
-+	UNUSED_PARAMETER(unused);
-+	return h264_properties(H264_ENCODER_TYPE_OH264);
-+}
-+
-+static bool h264_extra_data(void *data, uint8_t **extra_data, size_t *size)
-+{
-+	struct h264_encoder *enc = data;
-+
-+	*extra_data = enc->header.array;
-+	*size = enc->header.num;
-+	return true;
-+}
-+
-+struct obs_encoder_info oh264_encoder_info = {
-+	.id = "ffmpeg_openh264",
-+	.type = OBS_ENCODER_VIDEO,
-+	.codec = "h264",
-+	.get_name = oh264_getname,
-+	.create = oh264_create,
-+	.destroy = h264_destroy,
-+	.encode = h264_encode,
-+	.get_defaults = h264_defaults,
-+	.get_properties = oh264_properties,
-+	.get_extra_data = h264_extra_data,
-+	.get_video_info = h264_video_info,
-+};
-diff --git a/plugins/obs-ffmpeg/obs-ffmpeg.c b/plugins/obs-ffmpeg/obs-ffmpeg.c
-index 7eb9a876d..fcce8ec3b 100644
---- a/plugins/obs-ffmpeg/obs-ffmpeg.c
-+++ b/plugins/obs-ffmpeg/obs-ffmpeg.c
-@@ -38,6 +38,7 @@ extern struct obs_encoder_info pcm24_encoder_info;
- extern struct obs_encoder_info pcm32_encoder_info;
- extern struct obs_encoder_info alac_encoder_info;
- extern struct obs_encoder_info flac_encoder_info;
-+extern struct obs_encoder_info oh264_encoder_info;
- extern struct obs_encoder_info h264_nvenc_encoder_info;
- #ifdef ENABLE_HEVC
- extern struct obs_encoder_info hevc_nvenc_encoder_info;
-@@ -382,6 +383,7 @@ bool obs_module_load(void)
- 	obs_register_output(&ffmpeg_hls_muxer);
- 	obs_register_output(&replay_buffer);
- 	obs_register_encoder(&aac_encoder_info);
-+	register_encoder_if_available(&oh264_encoder_info, "libopenh264");
- 	register_encoder_if_available(&svt_av1_encoder_info, "libsvtav1");
- 	register_encoder_if_available(&aom_av1_encoder_info, "libaom-av1");
- 	obs_register_encoder(&opus_encoder_info);
--- 
-2.41.0
-

diff --git a/0103-UI-Add-support-for-OpenH264-as-the-worst-case-fallba.patch b/0103-UI-Add-support-for-OpenH264-as-the-worst-case-fallba.patch
index c8a3074..cae574f 100644
--- a/0103-UI-Add-support-for-OpenH264-as-the-worst-case-fallba.patch
+++ b/0103-UI-Add-support-for-OpenH264-as-the-worst-case-fallba.patch
@@ -1,233 +1,118 @@
-From f26c32b97117273550b9dddea01b5b92684c6886 Mon Sep 17 00:00:00 2001
+From 3d474df58055e447343897e4ca8fe86133f0931b Mon Sep 17 00:00:00 2001
 From: Neal Gompa <neal@gompa.dev>
 Date: Tue, 28 Mar 2023 05:08:49 -0400
-Subject: [PATCH 103/103] UI: Add support for OpenH264 as the worst-case
- fallback
+Subject: [PATCH 3/4] UI: Add support for OpenH264 as the worst-case fallback
 
 OpenH264 exists as the codec of last resort, so it is implemented
 such that it is only used as the software codec if x264 is not
 available.
 ---
- UI/data/locale/en-US.ini             |  1 +
- UI/window-basic-auto-config-test.cpp | 50 +++++++++++++++++++---------
- UI/window-basic-auto-config.cpp      | 15 ++++++++-
- UI/window-basic-auto-config.hpp      |  3 ++
- UI/window-basic-main-outputs.cpp     |  6 ++--
- UI/window-basic-main-profiles.cpp    | 34 +++++++++++--------
- UI/window-basic-main.cpp             | 20 +++++++----
- UI/window-basic-main.hpp             |  3 +-
- UI/window-basic-settings-stream.cpp  | 16 ++++++---
- UI/window-basic-settings.cpp         | 23 ++++++++++---
- 10 files changed, 123 insertions(+), 48 deletions(-)
+ frontend/data/locale/en-US.ini                |  1 +
+ frontend/settings/OBSBasicSettings.cpp        | 15 +++++-
+ frontend/settings/OBSBasicSettings_Stream.cpp | 12 +++--
+ frontend/utility/SimpleOutput.cpp             |  6 ++-
+ frontend/widgets/OBSBasic.cpp                 | 13 ++++--
+ frontend/widgets/OBSBasic.hpp                 |  3 +-
+ frontend/widgets/OBSBasic_Profiles.cpp        | 31 +++++++------
+ frontend/wizards/AutoConfig.cpp               | 15 +++++-
+ frontend/wizards/AutoConfig.hpp               |  3 ++
+ frontend/wizards/AutoConfigTestPage.cpp       | 46 +++++++++++++------
+ 10 files changed, 105 insertions(+), 40 deletions(-)
 
-diff --git a/UI/data/locale/en-US.ini b/UI/data/locale/en-US.ini
-index 339ac4d86..ff8c649da 100644
---- a/UI/data/locale/en-US.ini
-+++ b/UI/data/locale/en-US.ini
-@@ -996,6 +996,7 @@ Basic.Settings.Output.Simple.Warn.Encoder="Warning: Recording with a software en
- Basic.Settings.Output.Simple.Warn.Lossless="Warning: Lossless quality generates tremendously large file sizes! Lossless quality can use upward of 7 gigabytes of disk space per minute at high resolutions and framerates. Lossless is not recommended for long recordings unless you have a very large amount of disk space available."
+diff --git a/frontend/data/locale/en-US.ini b/frontend/data/locale/en-US.ini
+index da7c09be7a7c..4ed196c9cb92 100644
+--- a/frontend/data/locale/en-US.ini
++++ b/frontend/data/locale/en-US.ini
+@@ -1053,6 +1053,7 @@ Basic.Settings.Output.Simple.Warn.Lossless="Warning: Lossless quality generates
  Basic.Settings.Output.Simple.Warn.Lossless.Msg="Are you sure you want to use lossless quality?"
  Basic.Settings.Output.Simple.Warn.Lossless.Title="Lossless quality warning!"
+ Basic.Settings.Output.Simple.Encoder.Software="Software (x264)"
 +Basic.Settings.Output.Simple.Encoder.Software.OpenH264.H264="Software (OpenH264)"
- Basic.Settings.Output.Simple.Encoder.Software.X264.H264="Software (x264)"
  Basic.Settings.Output.Simple.Encoder.Hardware.QSV.H264="Hardware (QSV, H.264)"
  Basic.Settings.Output.Simple.Encoder.Hardware.QSV.AV1="Hardware (QSV, AV1)"
-diff --git a/UI/window-basic-auto-config-test.cpp b/UI/window-basic-auto-config-test.cpp
-index a8b5d884a..e68a33bb5 100644
---- a/UI/window-basic-auto-config-test.cpp
-+++ b/UI/window-basic-auto-config-test.cpp
-@@ -199,7 +199,8 @@ void AutoConfigTestPage::TestBandwidthThread()
- 						   : "rtmp_common";
- 
- 	OBSEncoderAutoRelease vencoder = obs_video_encoder_create(
--		"obs_x264", "test_x264", nullptr, nullptr);
-+		(wiz->x264Available ? "obs_x264" : "ffmpeg_openh264"),
-+		"test_h264", nullptr, nullptr);
- 	OBSEncoderAutoRelease aencoder = obs_audio_encoder_create(
- 		"ffmpeg_aac", "test_aac", nullptr, 0, nullptr);
- 	OBSServiceAutoRelease service = obs_service_create(
-@@ -238,10 +239,11 @@ void AutoConfigTestPage::TestBandwidthThread()
- 	obs_data_set_string(service_settings, "key", key.c_str());
- 
- 	obs_data_set_int(vencoder_settings, "bitrate", wiz->startingBitrate);
--	obs_data_set_string(vencoder_settings, "rate_control", "CBR");
--	obs_data_set_string(vencoder_settings, "preset", "veryfast");
--	obs_data_set_int(vencoder_settings, "keyint_sec", 2);
--
-+	if (wiz->x264Available) {
-+		obs_data_set_string(vencoder_settings, "rate_control", "CBR");
-+		obs_data_set_string(vencoder_settings, "preset", "veryfast");
-+		obs_data_set_int(vencoder_settings, "keyint_sec", 2);
-+	}
- 	obs_data_set_int(aencoder_settings, "bitrate", 32);
- 
- 	OBSBasic *main = reinterpret_cast<OBSBasic *>(App()->GetMainWindow());
-@@ -574,7 +576,8 @@ bool AutoConfigTestPage::TestSoftwareEncoding()
- 	/* create obs objects                 */
- 
- 	OBSEncoderAutoRelease vencoder = obs_video_encoder_create(
--		"obs_x264", "test_x264", nullptr, nullptr);
-+		(wiz->x264Available ? "obs_x264" : "ffmpeg_openh264"),
-+		"test_h264", nullptr, nullptr);
- 	OBSEncoderAutoRelease aencoder = obs_audio_encoder_create(
- 		"ffmpeg_aac", "test_aac", nullptr, 0, nullptr);
- 	OBSOutputAutoRelease output =
-@@ -588,17 +591,25 @@ bool AutoConfigTestPage::TestSoftwareEncoding()
- 	obs_data_set_int(aencoder_settings, "bitrate", 32);
+ Basic.Settings.Output.Simple.Encoder.Hardware.AMD.H264="Hardware (AMD, H.264)"
+diff --git a/frontend/settings/OBSBasicSettings.cpp b/frontend/settings/OBSBasicSettings.cpp
+index de322bc1ee8f..fcbe4fd03071 100644
+--- a/frontend/settings/OBSBasicSettings.cpp
++++ b/frontend/settings/OBSBasicSettings.cpp
+@@ -3365,6 +3365,11 @@ void OBSBasicSettings::SaveOutputSettings()
+          do. This only exists to make sure that the x264 preset doesn't
+          get overwritten with empty data. */
+ 		presetType = "ApplePreset";
++	else if (encoder == SIMPLE_ENCODER_OPENH264)
++		/* The OpenH264 encoder does not have presets like the other encoders
++         do. This only exists to make sure that the x264 preset doesn't
++         get overwritten with empty data. */
++		presetType = "OpenH264Preset";
+ 	else
+ 		presetType = "Preset";
  
- 	if (wiz->type != AutoConfig::Type::Recording) {
--		obs_data_set_int(vencoder_settings, "keyint_sec", 2);
-+		if (wiz->x264Available) {
-+			obs_data_set_int(vencoder_settings, "keyint_sec", 2);
-+			obs_data_set_string(vencoder_settings, "rate_control",
-+					    "CBR");
-+			obs_data_set_string(vencoder_settings, "preset",
-+					    "veryfast");
-+		}
- 		obs_data_set_int(vencoder_settings, "bitrate",
- 				 wiz->idealBitrate);
--		obs_data_set_string(vencoder_settings, "rate_control", "CBR");
- 		obs_data_set_string(vencoder_settings, "profile", "main");
--		obs_data_set_string(vencoder_settings, "preset", "veryfast");
- 	} else {
--		obs_data_set_int(vencoder_settings, "crf", 20);
--		obs_data_set_string(vencoder_settings, "rate_control", "CRF");
-+		if (wiz->x264Available) {
-+			obs_data_set_int(vencoder_settings, "crf", 20);
-+			obs_data_set_string(vencoder_settings, "rate_control",
-+					    "CRF");
-+			obs_data_set_string(vencoder_settings, "preset",
-+					    "veryfast");
-+		}
- 		obs_data_set_string(vencoder_settings, "profile", "high");
--		obs_data_set_string(vencoder_settings, "preset", "veryfast");
- 	}
+@@ -4739,8 +4744,11 @@ void OBSBasicSettings::FillSimpleRecordingValues()
+ 	ADD_QUALITY("HQ");
+ 	ADD_QUALITY("Lossless");
  
- 	/* -----------------------------------*/
-@@ -951,7 +962,10 @@ void AutoConfigTestPage::TestStreamEncoderThread()
- 		else
- 			wiz->streamingEncoder = AutoConfig::Encoder::AMD;
- 	} else {
--		wiz->streamingEncoder = AutoConfig::Encoder::x264;
-+		if (wiz->x264Available)
-+			wiz->streamingEncoder = AutoConfig::Encoder::x264;
-+		else
-+			wiz->streamingEncoder = AutoConfig::Encoder::OpenH264;
- 	}
+-	ui->simpleOutRecEncoder->addItem(ENCODER_STR("Software"), QString(SIMPLE_ENCODER_X264));
+-	ui->simpleOutRecEncoder->addItem(ENCODER_STR("SoftwareLowCPU"), QString(SIMPLE_ENCODER_X264_LOWCPU));
++	ui->simpleOutRecEncoder->addItem(ENCODER_STR("Software.OpenH264.H264"), QString(SIMPLE_ENCODER_OPENH264));
++	if (EncoderAvailable("obs_x264")) {
++		ui->simpleOutRecEncoder->addItem(ENCODER_STR("Software"), QString(SIMPLE_ENCODER_X264));
++		ui->simpleOutRecEncoder->addItem(ENCODER_STR("SoftwareLowCPU"), QString(SIMPLE_ENCODER_X264_LOWCPU));
++	}
+ 	if (EncoderAvailable("obs_qsv11"))
+ 		ui->simpleOutRecEncoder->addItem(ENCODER_STR("Hardware.QSV.H264"), QString(SIMPLE_ENCODER_QSV));
+ 	if (EncoderAvailable("obs_qsv11_av1"))
+@@ -4889,6 +4897,9 @@ void OBSBasicSettings::SimpleStreamingEncoderChanged()
  
- #ifdef __linux__
-@@ -996,7 +1010,10 @@ void AutoConfigTestPage::TestRecordingEncoderThread()
- 		else
- 			wiz->recordingEncoder = AutoConfig::Encoder::AMD;
+ 		defaultPreset = "balanced";
+ 		preset = curAMDAV1Preset;
++	} else if (encoder == SIMPLE_ENCODER_OPENH264) {
++		ui->simpleOutPreset->setVisible(false);
++		ui->simpleOutPresetLabel->setVisible(false);
  	} else {
--		wiz->recordingEncoder = AutoConfig::Encoder::x264;
-+		if (wiz->x264Available)
-+			wiz->streamingEncoder = AutoConfig::Encoder::x264;
-+		else
-+			wiz->streamingEncoder = AutoConfig::Encoder::OpenH264;
- 	}
- 
- 	if (wiz->recordingEncoder != AutoConfig::Encoder::NVENC) {
-@@ -1010,6 +1027,7 @@ void AutoConfigTestPage::TestRecordingEncoderThread()
- }
- 
- #define ENCODER_TEXT(x) "Basic.Settings.Output.Simple.Encoder." x
-+#define ENCODER_OPENH264 ENCODER_TEXT("Software.OpenH264.H264")
- #define ENCODER_X264 ENCODER_TEXT("Software.X264.H264")
- #define ENCODER_NVENC ENCODER_TEXT("Hardware.NVENC.H264")
- #define ENCODER_QSV ENCODER_TEXT("Hardware.QSV.H264")
-@@ -1049,6 +1067,8 @@ void AutoConfigTestPage::FinalizeResults()
- 
- 	auto encName = [](AutoConfig::Encoder enc) -> QString {
- 		switch (enc) {
-+		case AutoConfig::Encoder::OpenH264:
-+			return QTStr(ENCODER_OPENH264);
- 		case AutoConfig::Encoder::x264:
- 			return QTStr(ENCODER_X264);
- 		case AutoConfig::Encoder::NVENC:
-@@ -1063,7 +1083,7 @@ void AutoConfigTestPage::FinalizeResults()
- 			return QTStr(QUALITY_SAME);
- 		}
- 
--		return QTStr(ENCODER_X264);
-+		return QTStr(ENCODER_OPENH264);
- 	};
- 
- 	auto newLabel = [this](const char *str) -> QLabel * {
-diff --git a/UI/window-basic-auto-config.cpp b/UI/window-basic-auto-config.cpp
-index d8ddbfa44..4707a5644 100644
---- a/UI/window-basic-auto-config.cpp
-+++ b/UI/window-basic-auto-config.cpp
-@@ -979,6 +979,7 @@ AutoConfig::AutoConfig(QWidget *parent) : QWizard(parent)
- 	streamPage->ui->bitrate->setValue(bitrate);
- 	streamPage->ServiceChanged();
  
-+	TestSoftwareEncoding();
- 	TestHardwareEncoding();
- 	if (!hardwareEncodingAvailable) {
- 		delete streamPage->ui->preferHardware;
-@@ -1007,6 +1008,16 @@ AutoConfig::~AutoConfig()
- 	EnableThreadedMessageBoxes(false);
+ #define PRESET_STR(val) QString(Str("Basic.Settings.Output.EncoderPreset." val)).arg(val)
+diff --git a/frontend/settings/OBSBasicSettings_Stream.cpp b/frontend/settings/OBSBasicSettings_Stream.cpp
+index ce74a1cb1bab..74bc9cbcccb2 100644
+--- a/frontend/settings/OBSBasicSettings_Stream.cpp
++++ b/frontend/settings/OBSBasicSettings_Stream.cpp
+@@ -1471,7 +1471,9 @@ static QString get_adv_fallback(const QString &enc)
+ 		return "com.apple.videotoolbox.videoencoder.ave.avc";
+ 	if (enc == "obs_qsv11_av1")
+ 		return "obs_qsv11";
+-	return "obs_x264";
++	if (EncoderAvailable("obs_x264"))
++		return "obs_x264";
++	return "ffmpeg_openh264";
  }
  
-+void AutoConfig::TestSoftwareEncoding()
-+{
-+	size_t idx = 0;
-+	const char *id;
-+	while (obs_enum_encoder_types(idx++, &id)) {
-+		if (strcmp(id, "obs_x264") == 0)
-+			x264Available = true;
-+	}
-+}
-+
- void AutoConfig::TestHardwareEncoding()
- {
- 	size_t idx = 0;
-@@ -1086,8 +1097,10 @@ inline const char *AutoConfig::GetEncoderId(Encoder enc)
- 		return SIMPLE_ENCODER_AMD;
- 	case Encoder::Apple:
+ static QString get_adv_audio_fallback(const QString &enc)
+@@ -1500,7 +1502,9 @@ static QString get_simple_fallback(const QString &enc)
  		return SIMPLE_ENCODER_APPLE_H264;
--	default:
-+	case Encoder::x264:
- 		return SIMPLE_ENCODER_X264;
-+	default:
-+		return SIMPLE_ENCODER_OPENH264;
- 	}
- };
- 
-diff --git a/UI/window-basic-auto-config.hpp b/UI/window-basic-auto-config.hpp
-index 5d966c795..c17e32a85 100644
---- a/UI/window-basic-auto-config.hpp
-+++ b/UI/window-basic-auto-config.hpp
-@@ -43,6 +43,7 @@ class AutoConfig : public QWizard {
- 	};
- 
- 	enum class Encoder {
-+		OpenH264,
- 		x264,
- 		NVENC,
- 		QSV,
-@@ -91,6 +92,7 @@ class AutoConfig : public QWizard {
- 	bool qsvAvailable = false;
- 	bool vceAvailable = false;
- 	bool appleAvailable = false;
-+	bool x264Available = false;
+ 	if (enc == SIMPLE_ENCODER_QSV_AV1)
+ 		return SIMPLE_ENCODER_QSV;
+-	return SIMPLE_ENCODER_X264;
++	if (EncoderAvailable("obs_x264"))
++		return SIMPLE_ENCODER_X264;
++	return SIMPLE_ENCODER_OPENH264;
+ }
  
- 	int startingBitrate = 2500;
- 	bool customServer = false;
-@@ -106,6 +108,7 @@ class AutoConfig : public QWizard {
- 	int specificFPSNum = 0;
- 	int specificFPSDen = 0;
+ bool OBSBasicSettings::ServiceSupportsCodecCheck()
+@@ -1675,7 +1679,9 @@ void OBSBasicSettings::ResetEncoders(bool streamOnly)
  
-+	void TestSoftwareEncoding();
- 	void TestHardwareEncoding();
- 	bool CanTestServer(const char *server);
+ #define ENCODER_STR(str) QTStr("Basic.Settings.Output.Simple.Encoder." str)
  
-diff --git a/UI/window-basic-main-outputs.cpp b/UI/window-basic-main-outputs.cpp
-index a283d0fcc..4b3f25371 100644
---- a/UI/window-basic-main-outputs.cpp
-+++ b/UI/window-basic-main-outputs.cpp
-@@ -547,7 +547,9 @@ void SimpleOutput::LoadStreamingPreset_Lossy(const char *encoderId)
+-	ui->simpleOutStrEncoder->addItem(ENCODER_STR("Software"), QString(SIMPLE_ENCODER_X264));
++	ui->simpleOutStrEncoder->addItem(ENCODER_STR("Software.OpenH264.H264"), QString(SIMPLE_ENCODER_OPENH264));
++	if (service_supports_encoder(vcodecs, "obs_x264"))
++		ui->simpleOutStrEncoder->addItem(ENCODER_STR("Software"), QString(SIMPLE_ENCODER_X264));
+ #ifdef _WIN32
+ 	if (service_supports_encoder(vcodecs, "obs_qsv11"))
+ 		ui->simpleOutStrEncoder->addItem(ENCODER_STR("Hardware.QSV.H264"), QString(SIMPLE_ENCODER_QSV));
+diff --git a/frontend/utility/SimpleOutput.cpp b/frontend/utility/SimpleOutput.cpp
+index b62846309c47..95d1115ac6c1 100644
+--- a/frontend/utility/SimpleOutput.cpp
++++ b/frontend/utility/SimpleOutput.cpp
+@@ -80,7 +80,9 @@ void SimpleOutput::LoadStreamingPreset_Lossy(const char *encoderId)
  /* mistakes have been made to lead us to this. */
  const char *get_simple_output_encoder(const char *encoder)
  {
@@ -238,7 +123,7 @@ index a283d0fcc..4b3f25371 100644
  		return "obs_x264";
  	} else if (strcmp(encoder, SIMPLE_ENCODER_X264_LOWCPU) == 0) {
  		return "obs_x264";
-@@ -581,7 +583,7 @@ const char *get_simple_output_encoder(const char *encoder)
+@@ -112,7 +114,7 @@ const char *get_simple_output_encoder(const char *encoder)
  #endif
  	}
  
@@ -247,35 +132,94 @@ index a283d0fcc..4b3f25371 100644
  }
  
  void SimpleOutput::LoadRecordingPreset()
-diff --git a/UI/window-basic-main-profiles.cpp b/UI/window-basic-main-profiles.cpp
-index f9d3f4ea1..27899efc4 100644
---- a/UI/window-basic-main-profiles.cpp
-+++ b/UI/window-basic-main-profiles.cpp
-@@ -806,7 +806,7 @@ void OBSBasic::ChangeProfile()
- 		NewYouTubeAppDock();
+diff --git a/frontend/widgets/OBSBasic.cpp b/frontend/widgets/OBSBasic.cpp
+index e56b7e277913..48586f001c93 100644
+--- a/frontend/widgets/OBSBasic.cpp
++++ b/frontend/widgets/OBSBasic.cpp
+@@ -519,6 +519,8 @@ static const double scaled_vals[] = {1.0, 1.25, (1.0 / 0.75), 1.5, (1.0 / 0.6),
+ #define DEFAULT_CONTAINER "hybrid_mp4"
  #endif
  
++extern bool EncoderAvailable(const char *encoder);
++
+ bool OBSBasic::InitBasicConfigDefaults()
+ {
+ 	QList<QScreen *> screens = QGuiApplication::screens();
+@@ -680,7 +682,9 @@ bool OBSBasic::InitBasicConfigDefaults()
+ 	config_set_default_bool(activeConfiguration, "AdvOut", "UseRescale", false);
+ 	config_set_default_uint(activeConfiguration, "AdvOut", "TrackIndex", 1);
+ 	config_set_default_uint(activeConfiguration, "AdvOut", "VodTrackIndex", 2);
+-	config_set_default_string(activeConfiguration, "AdvOut", "Encoder", "obs_x264");
++
++	bool useX264 = EncoderAvailable("obs_x264");
++	config_set_default_string(activeConfiguration, "AdvOut", "Encoder", (useX264 ? "obs_x264" : "ffmpeg_openh264"));
+ 
+ 	config_set_default_string(activeConfiguration, "AdvOut", "RecType", "Standard");
+ 
+@@ -796,10 +800,13 @@ void OBSBasic::InitBasicConfigDefaults2()
+ 	bool oldEncDefaults = config_get_bool(App()->GetUserConfig(), "General", "Pre23Defaults");
+ 	bool useNV = EncoderAvailable("ffmpeg_nvenc") && !oldEncDefaults;
+ 
++	bool useX264 = EncoderAvailable("obs_x264");
++	const char *h264_fallback = (useX264 ? SIMPLE_ENCODER_X264 : SIMPLE_ENCODER_OPENH264);
++
+ 	config_set_default_string(activeConfiguration, "SimpleOutput", "StreamEncoder",
+-				  useNV ? SIMPLE_ENCODER_NVENC : SIMPLE_ENCODER_X264);
++				  useNV ? SIMPLE_ENCODER_NVENC : h264_fallback);
+ 	config_set_default_string(activeConfiguration, "SimpleOutput", "RecEncoder",
+-				  useNV ? SIMPLE_ENCODER_NVENC : SIMPLE_ENCODER_X264);
++				  useNV ? SIMPLE_ENCODER_NVENC : h264_fallback);
+ 
+ 	const char *aac_default = "ffmpeg_aac";
+ 	if (EncoderAvailable("CoreAudio_AAC"))
+diff --git a/frontend/widgets/OBSBasic.hpp b/frontend/widgets/OBSBasic.hpp
+index 48e9960fa2b0..fece7580b9db 100644
+--- a/frontend/widgets/OBSBasic.hpp
++++ b/frontend/widgets/OBSBasic.hpp
+@@ -75,6 +75,7 @@ struct Rect;
+ 
+ #define SIMPLE_ENCODER_X264 "x264"
+ #define SIMPLE_ENCODER_X264_LOWCPU "x264_lowcpu"
++#define SIMPLE_ENCODER_OPENH264 "ffmpeg_openh264"
+ #define SIMPLE_ENCODER_QSV "qsv"
+ #define SIMPLE_ENCODER_QSV_AV1 "qsv_av1"
+ #define SIMPLE_ENCODER_NVENC "nvenc"
+@@ -885,7 +886,7 @@ private:
+ 	void UpdateProfileEncoders();
+ 	std::vector<std::string> GetRestartRequirements(const ConfigFile &config) const;
+ 	void ResetProfileData();
+-	void CheckForSimpleModeX264Fallback();
++	void CheckForSimpleModeH264Fallback();
+ 
+ public:
+ 	inline const OBSProfileCache &GetProfileCache() const noexcept { return profiles; };
+diff --git a/frontend/widgets/OBSBasic_Profiles.cpp b/frontend/widgets/OBSBasic_Profiles.cpp
+index 4c655915fe1e..381a8662ed49 100644
+--- a/frontend/widgets/OBSBasic_Profiles.cpp
++++ b/frontend/widgets/OBSBasic_Profiles.cpp
+@@ -734,7 +734,7 @@ void OBSBasic::ActivateProfile(const OBSProfile &profile, bool reset)
+ void OBSBasic::UpdateProfileEncoders()
+ {
+ 	InitBasicConfigDefaults2();
 -	CheckForSimpleModeX264Fallback();
 +	CheckForSimpleModeH264Fallback();
+ }
  
- 	blog(LOG_INFO, "Switched to profile '%s' (%s)", newName, newDir);
- 	blog(LOG_INFO, "------------------------------------------------");
-@@ -827,12 +827,13 @@ void OBSBasic::ChangeProfile()
- 	}
+ void OBSBasic::ResetProfileData()
+@@ -782,10 +782,11 @@ std::vector<std::string> OBSBasic::GetRestartRequirements(const ConfigFile &conf
+ 	return result;
  }
  
 -void OBSBasic::CheckForSimpleModeX264Fallback()
 +void OBSBasic::CheckForSimpleModeH264Fallback()
  {
- 	const char *curStreamEncoder =
- 		config_get_string(basicConfig, "SimpleOutput", "StreamEncoder");
- 	const char *curRecEncoder =
- 		config_get_string(basicConfig, "SimpleOutput", "RecEncoder");
+ 	const char *curStreamEncoder = config_get_string(activeConfiguration, "SimpleOutput", "StreamEncoder");
+ 	const char *curRecEncoder = config_get_string(activeConfiguration, "SimpleOutput", "RecEncoder");
 +	bool x264_supported = false;
  	bool qsv_supported = false;
  	bool qsv_av1_supported = false;
  	bool amd_supported = false;
-@@ -849,7 +850,9 @@ void OBSBasic::CheckForSimpleModeX264Fallback()
+@@ -802,7 +803,9 @@ void OBSBasic::CheckForSimpleModeX264Fallback()
  	const char *id;
  
  	while (obs_enum_encoder_types(idx++, &id)) {
@@ -286,15 +230,13 @@ index f9d3f4ea1..27899efc4 100644
  			amd_supported = true;
  		else if (strcmp(id, "obs_qsv11") == 0)
  			qsv_supported = true;
-@@ -877,68 +880,73 @@ void OBSBasic::CheckForSimpleModeX264Fallback()
+@@ -825,69 +828,71 @@ void OBSBasic::CheckForSimpleModeX264Fallback()
+ 			apple_hevc_supported = true;
  #endif
  	}
- 
 +	// Check to see whether x264 is available
-+	const char *fallback_encoder_name = (x264_supported
-+						     ? SIMPLE_ENCODER_X264
-+						     : SIMPLE_ENCODER_OPENH264);
-+
++	const char *fallback_encoder_name = (x264_supported ? SIMPLE_ENCODER_X264 : SIMPLE_ENCODER_OPENH264);
+ 
  	auto CheckEncoder = [&](const char *&name) {
  		if (strcmp(name, SIMPLE_ENCODER_QSV) == 0) {
  			if (!qsv_supported) {
@@ -370,177 +312,192 @@ index f9d3f4ea1..27899efc4 100644
  				return false;
  			}
  #endif
-diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp
-index 943e8cac1..09251de75 100644
---- a/UI/window-basic-main.cpp
-+++ b/UI/window-basic-main.cpp
-@@ -1449,6 +1449,8 @@ extern void CheckExistingCookieId();
- #define DEFAULT_CONTAINER "fragmented_mp4"
- #endif
+diff --git a/frontend/wizards/AutoConfig.cpp b/frontend/wizards/AutoConfig.cpp
+index 86e6ccea875c..67f1497dce28 100644
+--- a/frontend/wizards/AutoConfig.cpp
++++ b/frontend/wizards/AutoConfig.cpp
+@@ -176,6 +176,7 @@ AutoConfig::AutoConfig(QWidget *parent) : QWizard(parent)
+ 		streamPage->ui->key->setText(key.c_str());
  
-+extern bool EncoderAvailable(const char *encoder);
+ 	TestHardwareEncoding();
++	TestSoftwareEncoding();
+ 
+ 	int bitrate = config_get_int(main->Config(), "SimpleOutput", "VBitrate");
+ 	bool multitrackVideoEnabled = config_has_user_value(main->Config(), "Stream1", "EnableMultitrackVideo")
+@@ -210,6 +211,16 @@ AutoConfig::~AutoConfig()
+ 	EnableThreadedMessageBoxes(false);
+ }
+ 
++void AutoConfig::TestSoftwareEncoding()
++{
++	size_t idx = 0;
++	const char *id;
++	while (obs_enum_encoder_types(idx++, &id)) {
++		if (strcmp(id, "obs_x264") == 0)
++			x264Available = true;
++	}
++}
 +
- bool OBSBasic::InitBasicConfigDefaults()
+ void AutoConfig::TestHardwareEncoding()
  {
- 	QList<QScreen *> screens = QGuiApplication::screens();
-@@ -1619,7 +1621,10 @@ bool OBSBasic::InitBasicConfigDefaults()
- 	config_set_default_bool(basicConfig, "AdvOut", "UseRescale", false);
- 	config_set_default_uint(basicConfig, "AdvOut", "TrackIndex", 1);
- 	config_set_default_uint(basicConfig, "AdvOut", "VodTrackIndex", 2);
--	config_set_default_string(basicConfig, "AdvOut", "Encoder", "obs_x264");
-+
-+	bool useX264 = EncoderAvailable("obs_x264");
-+	config_set_default_string(basicConfig, "AdvOut", "Encoder",
-+				  (useX264 ? "obs_x264" : "ffmpeg_openh264"));
- 
- 	config_set_default_string(basicConfig, "AdvOut", "RecType", "Standard");
+ 	size_t idx = 0;
+@@ -285,8 +296,10 @@ inline const char *AutoConfig::GetEncoderId(Encoder enc)
+ 		return SIMPLE_ENCODER_AMD;
+ 	case Encoder::Apple:
+ 		return SIMPLE_ENCODER_APPLE_H264;
+-	default:
++	case Encoder::x264:
+ 		return SIMPLE_ENCODER_X264;
++	default:
++		return SIMPLE_ENCODER_OPENH264;
+ 	}
+ };
  
-@@ -1744,7 +1749,6 @@ bool OBSBasic::InitBasicConfigDefaults()
- 	return true;
- }
+diff --git a/frontend/wizards/AutoConfig.hpp b/frontend/wizards/AutoConfig.hpp
+index 92fa568f98ac..65cabb8f6774 100644
+--- a/frontend/wizards/AutoConfig.hpp
++++ b/frontend/wizards/AutoConfig.hpp
+@@ -27,6 +27,7 @@ class AutoConfig : public QWizard {
+ 	};
  
--extern bool EncoderAvailable(const char *encoder);
- extern bool update_nvenc_presets(ConfigFile &config);
+ 	enum class Encoder {
++		OpenH264,
+ 		x264,
+ 		NVENC,
+ 		QSV,
+@@ -86,6 +87,7 @@ class AutoConfig : public QWizard {
+ 	bool qsvAvailable = false;
+ 	bool vceAvailable = false;
+ 	bool appleAvailable = false;
++	bool x264Available = false;
  
- void OBSBasic::InitBasicConfigDefaults2()
-@@ -1753,12 +1757,14 @@ void OBSBasic::InitBasicConfigDefaults2()
- 					      "Pre23Defaults");
- 	bool useNV = EncoderAvailable("ffmpeg_nvenc") && !oldEncDefaults;
+ 	int startingBitrate = 2500;
+ 	bool customServer = false;
+@@ -104,6 +106,7 @@ class AutoConfig : public QWizard {
+ 	int specificFPSDen = 0;
  
-+	bool useX264 = EncoderAvailable("obs_x264");
-+	const char *h264_fallback =
-+		(useX264 ? SIMPLE_ENCODER_X264 : SIMPLE_ENCODER_OPENH264);
-+
- 	config_set_default_string(basicConfig, "SimpleOutput", "StreamEncoder",
--				  useNV ? SIMPLE_ENCODER_NVENC
--					: SIMPLE_ENCODER_X264);
-+				  useNV ? SIMPLE_ENCODER_NVENC : h264_fallback);
- 	config_set_default_string(basicConfig, "SimpleOutput", "RecEncoder",
--				  useNV ? SIMPLE_ENCODER_NVENC
--					: SIMPLE_ENCODER_X264);
-+				  useNV ? SIMPLE_ENCODER_NVENC : h264_fallback);
+ 	void TestHardwareEncoding();
++	void TestSoftwareEncoding();
+ 	bool CanTestServer(const char *server);
  
- 	const char *aac_default = "ffmpeg_aac";
- 	if (EncoderAvailable("CoreAudio_AAC"))
-@@ -2040,7 +2046,7 @@ void OBSBasic::OBSInit()
+ 	virtual void done(int result) override;
+diff --git a/frontend/wizards/AutoConfigTestPage.cpp b/frontend/wizards/AutoConfigTestPage.cpp
+index c6547ba1b149..3de259a5e15a 100644
+--- a/frontend/wizards/AutoConfigTestPage.cpp
++++ b/frontend/wizards/AutoConfigTestPage.cpp
+@@ -119,7 +119,8 @@ void AutoConfigTestPage::TestBandwidthThread()
  
- 	InitBasicConfigDefaults2();
+ 	const char *serverType = wiz->customServer ? "rtmp_custom" : "rtmp_common";
  
--	CheckForSimpleModeX264Fallback();
-+	CheckForSimpleModeH264Fallback();
+-	OBSEncoderAutoRelease vencoder = obs_video_encoder_create("obs_x264", "test_x264", nullptr, nullptr);
++	OBSEncoderAutoRelease vencoder = obs_video_encoder_create((wiz->x264Available ? "obs_x264" : "ffmpeg_openh264"),
++								  "test_h264", nullptr, nullptr);
+ 	OBSEncoderAutoRelease aencoder = obs_audio_encoder_create("ffmpeg_aac", "test_aac", nullptr, 0, nullptr);
+ 	OBSServiceAutoRelease service = obs_service_create(serverType, "test_service", nullptr, nullptr);
  
- 	blog(LOG_INFO, STARTUP_SEPARATOR);
+@@ -151,10 +152,11 @@ void AutoConfigTestPage::TestBandwidthThread()
+ 	obs_data_set_string(service_settings, "key", key.c_str());
  
-diff --git a/UI/window-basic-main.hpp b/UI/window-basic-main.hpp
-index b1eb39592..7d9e8d286 100644
---- a/UI/window-basic-main.hpp
-+++ b/UI/window-basic-main.hpp
-@@ -69,6 +69,7 @@ class OBSBasicVCamConfig;
+ 	obs_data_set_int(vencoder_settings, "bitrate", wiz->startingBitrate);
+-	obs_data_set_string(vencoder_settings, "rate_control", "CBR");
+-	obs_data_set_string(vencoder_settings, "preset", "veryfast");
+-	obs_data_set_int(vencoder_settings, "keyint_sec", 2);
+-
++	if (wiz->x264Available) {
++		obs_data_set_string(vencoder_settings, "rate_control", "CBR");
++		obs_data_set_string(vencoder_settings, "preset", "veryfast");
++		obs_data_set_int(vencoder_settings, "keyint_sec", 2);
++	}
+ 	obs_data_set_int(aencoder_settings, "bitrate", 32);
  
- #define SIMPLE_ENCODER_X264 "x264"
- #define SIMPLE_ENCODER_X264_LOWCPU "x264_lowcpu"
-+#define SIMPLE_ENCODER_OPENH264 "ffmpeg_openh264"
- #define SIMPLE_ENCODER_QSV "qsv"
- #define SIMPLE_ENCODER_QSV_AV1 "qsv_av1"
- #define SIMPLE_ENCODER_NVENC "nvenc"
-@@ -446,7 +447,7 @@ private:
- 	void DeleteProfile(const char *profile_name, const char *profile_dir);
- 	void RefreshProfiles();
- 	void ChangeProfile();
--	void CheckForSimpleModeX264Fallback();
-+	void CheckForSimpleModeH264Fallback();
+ 	OBSBasic *main = OBSBasic::Get();
+@@ -482,7 +484,8 @@ bool AutoConfigTestPage::TestSoftwareEncoding()
+ 	/* -----------------------------------*/
+ 	/* create obs objects                 */
  
- 	void SaveProjectNow();
+-	OBSEncoderAutoRelease vencoder = obs_video_encoder_create("obs_x264", "test_x264", nullptr, nullptr);
++	OBSEncoderAutoRelease vencoder = obs_video_encoder_create((wiz->x264Available ? "obs_x264" : "ffmpeg_openh264"),
++								  "test_h264", nullptr, nullptr);
+ 	OBSEncoderAutoRelease aencoder = obs_audio_encoder_create("ffmpeg_aac", "test_aac", nullptr, 0, nullptr);
+ 	OBSOutputAutoRelease output = obs_output_create("null_output", "null", nullptr, nullptr);
  
-diff --git a/UI/window-basic-settings-stream.cpp b/UI/window-basic-settings-stream.cpp
-index e2ba4b677..a08c697d4 100644
---- a/UI/window-basic-settings-stream.cpp
-+++ b/UI/window-basic-settings-stream.cpp
-@@ -1437,7 +1437,9 @@ static QString get_adv_fallback(const QString &enc)
- 		return "com.apple.videotoolbox.videoencoder.ave.avc";
- 	if (enc == "obs_qsv11_av1")
- 		return "obs_qsv11";
--	return "obs_x264";
-+	if (EncoderAvailable("obs_x264"))
-+		return "obs_x264";
-+	return "ffmpeg_openh264";
- }
+@@ -494,16 +497,20 @@ bool AutoConfigTestPage::TestSoftwareEncoding()
+ 	obs_data_set_int(aencoder_settings, "bitrate", 32);
  
- static QString get_adv_audio_fallback(const QString &enc)
-@@ -1466,7 +1468,9 @@ static QString get_simple_fallback(const QString &enc)
- 		return SIMPLE_ENCODER_APPLE_H264;
- 	if (enc == SIMPLE_ENCODER_QSV_AV1)
- 		return SIMPLE_ENCODER_QSV;
--	return SIMPLE_ENCODER_X264;
-+	if (EncoderAvailable("obs_x264"))
-+		return SIMPLE_ENCODER_X264;
-+	return SIMPLE_ENCODER_OPENH264;
- }
+ 	if (wiz->type != AutoConfig::Type::Recording) {
+-		obs_data_set_int(vencoder_settings, "keyint_sec", 2);
++		if (wiz->x264Available) {
++			obs_data_set_int(vencoder_settings, "keyint_sec", 2);
++			obs_data_set_string(vencoder_settings, "rate_control", "CBR");
++			obs_data_set_string(vencoder_settings, "preset", "veryfast");
++		}
+ 		obs_data_set_int(vencoder_settings, "bitrate", wiz->idealBitrate);
+-		obs_data_set_string(vencoder_settings, "rate_control", "CBR");
+ 		obs_data_set_string(vencoder_settings, "profile", "main");
+-		obs_data_set_string(vencoder_settings, "preset", "veryfast");
+ 	} else {
+-		obs_data_set_int(vencoder_settings, "crf", 20);
+-		obs_data_set_string(vencoder_settings, "rate_control", "CRF");
++		if (wiz->x264Available) {
++			obs_data_set_int(vencoder_settings, "crf", 20);
++			obs_data_set_string(vencoder_settings, "rate_control", "CRF");
++			obs_data_set_string(vencoder_settings, "preset", "veryfast");
++		}
+ 		obs_data_set_string(vencoder_settings, "profile", "high");
+-		obs_data_set_string(vencoder_settings, "preset", "veryfast");
+ 	}
  
- bool OBSBasicSettings::ServiceSupportsCodecCheck()
-@@ -1670,8 +1674,12 @@ void OBSBasicSettings::ResetEncoders(bool streamOnly)
+ 	/* -----------------------------------*/
+@@ -850,7 +857,10 @@ void AutoConfigTestPage::TestStreamEncoderThread()
+ 		else
+ 			wiz->streamingEncoder = AutoConfig::Encoder::AMD;
+ 	} else {
+-		wiz->streamingEncoder = AutoConfig::Encoder::x264;
++		if (wiz->x264Available)
++			wiz->streamingEncoder = AutoConfig::Encoder::x264;
++		else
++			wiz->streamingEncoder = AutoConfig::Encoder::OpenH264;
+ 	}
  
- #define ENCODER_STR(str) QTStr("Basic.Settings.Output.Simple.Encoder." str)
+ #ifdef __linux__
+@@ -894,7 +904,10 @@ void AutoConfigTestPage::TestRecordingEncoderThread()
+ 		else
+ 			wiz->recordingEncoder = AutoConfig::Encoder::AMD;
+ 	} else {
+-		wiz->recordingEncoder = AutoConfig::Encoder::x264;
++		if (wiz->x264Available)
++			wiz->streamingEncoder = AutoConfig::Encoder::x264;
++		else
++			wiz->streamingEncoder = AutoConfig::Encoder::OpenH264;
+ 	}
  
--	ui->simpleOutStrEncoder->addItem(ENCODER_STR("Software.X264.H264"),
--					 QString(SIMPLE_ENCODER_X264));
-+	ui->simpleOutStrEncoder->addItem(ENCODER_STR("Software.OpenH264.H264"),
-+					 QString(SIMPLE_ENCODER_OPENH264));
-+	if (service_supports_encoder(vcodecs, "obs_x264"))
-+		ui->simpleOutStrEncoder->addItem(
-+			ENCODER_STR("Software.X264.H264"),
-+			QString(SIMPLE_ENCODER_X264));
- #ifdef _WIN32
- 	if (service_supports_encoder(vcodecs, "obs_qsv11"))
- 		ui->simpleOutStrEncoder->addItem(
-diff --git a/UI/window-basic-settings.cpp b/UI/window-basic-settings.cpp
-index ddf0adc56..9b7324ab9 100644
---- a/UI/window-basic-settings.cpp
-+++ b/UI/window-basic-settings.cpp
-@@ -3779,6 +3779,11 @@ void OBSBasicSettings::SaveOutputSettings()
-          do. This only exists to make sure that the x264 preset doesn't
-          get overwritten with empty data. */
- 		presetType = "ApplePreset";
-+	else if (encoder == SIMPLE_ENCODER_OPENH264)
-+		/* The OpenH264 encoder does not have presets like the other encoders
-+         do. This only exists to make sure that the x264 preset doesn't
-+         get overwritten with empty data. */
-+		presetType = "OpenH264Preset";
- 	else
- 		presetType = "Preset";
+ 	if (wiz->recordingEncoder != AutoConfig::Encoder::NVENC) {
+@@ -909,6 +922,7 @@ void AutoConfigTestPage::TestRecordingEncoderThread()
  
-@@ -5237,11 +5242,16 @@ void OBSBasicSettings::FillSimpleRecordingValues()
- 	ADD_QUALITY("HQ");
- 	ADD_QUALITY("Lossless");
+ #define ENCODER_TEXT(x) "Basic.Settings.Output.Simple.Encoder." x
+ #define ENCODER_SOFTWARE ENCODER_TEXT("Software")
++#define ENCODER_OPENH264 ENCODER_TEXT("Software.OpenH264")
+ #define ENCODER_NVENC ENCODER_TEXT("Hardware.NVENC.H264")
+ #define ENCODER_QSV ENCODER_TEXT("Hardware.QSV.H264")
+ #define ENCODER_AMD ENCODER_TEXT("Hardware.AMD.H264")
+@@ -946,6 +960,8 @@ void AutoConfigTestPage::FinalizeResults()
  
--	ui->simpleOutRecEncoder->addItem(ENCODER_STR("Software.X264.H264"),
--					 QString(SIMPLE_ENCODER_X264));
--	ui->simpleOutRecEncoder->addItem(
--		ENCODER_STR("SoftwareLowCPU.X264.H264"),
--		QString(SIMPLE_ENCODER_X264_LOWCPU));
-+	ui->simpleOutRecEncoder->addItem(ENCODER_STR("Software.OpenH264.H264"),
-+					 QString(SIMPLE_ENCODER_OPENH264));
-+	if (EncoderAvailable("obs_x264")) {
-+		ui->simpleOutRecEncoder->addItem(
-+			ENCODER_STR("Software.X264.H264"),
-+			QString(SIMPLE_ENCODER_X264));
-+		ui->simpleOutRecEncoder->addItem(
-+			ENCODER_STR("SoftwareLowCPU.X264.H264"),
-+			QString(SIMPLE_ENCODER_X264_LOWCPU));
-+	}
- 	if (EncoderAvailable("obs_qsv11"))
- 		ui->simpleOutRecEncoder->addItem(
- 			ENCODER_STR("Hardware.QSV.H264"),
-@@ -5414,6 +5424,9 @@ void OBSBasicSettings::SimpleStreamingEncoderChanged()
+ 	auto encName = [](AutoConfig::Encoder enc) -> QString {
+ 		switch (enc) {
++		case AutoConfig::Encoder::OpenH264:
++			return QTStr(ENCODER_OPENH264);
+ 		case AutoConfig::Encoder::x264:
+ 			return QTStr(ENCODER_SOFTWARE);
+ 		case AutoConfig::Encoder::NVENC:
+@@ -960,7 +976,7 @@ void AutoConfigTestPage::FinalizeResults()
+ 			return QTStr(QUALITY_SAME);
+ 		}
  
- 		defaultPreset = "balanced";
- 		preset = curAMDAV1Preset;
-+	} else if (encoder == SIMPLE_ENCODER_OPENH264) {
-+		ui->simpleOutPreset->setVisible(false);
-+		ui->simpleOutPresetLabel->setVisible(false);
- 	} else {
+-		return QTStr(ENCODER_SOFTWARE);
++		return QTStr(ENCODER_OPENH264);
+ 	};
  
- #define PRESET_STR(val) \
+ 	auto newLabel = [this](const char *str) -> QLabel * {
 -- 
-2.41.0
+2.49.0
 

diff --git a/obs-studio-30-cmake-3.20.patch b/obs-studio-30-cmake-3.20.patch
deleted file mode 100644
index bac02da..0000000
--- a/obs-studio-30-cmake-3.20.patch
+++ /dev/null
@@ -1,423 +0,0 @@
-From 09fbac02fa36e945480edb1cf8547ba8ce4d08ff Mon Sep 17 00:00:00 2001
-From: Neal Gompa <neal@gompa.dev>
-Date: Mon, 11 Sep 2023 15:50:55 -0400
-Subject: [PATCH] cmake: Allow CMake 3.20 and 3.21 to be used to build OBS
-
-CentOS Stream 9 (and thus Red Hat Enterprise Linux 9) have CMake 3.20.
-
-There does not appear to be anything preventing it from building
-on CMake 3.20, so let's permit it so that it can still be built
-for Fedora Extra Packages for Enterprise Linux 9.
----
- CMakeLists.txt                                        | 2 +-
- UI/CMakeLists.txt                                     | 2 +-
- UI/frontend-plugins/aja-output-ui/CMakeLists.txt      | 2 +-
- UI/frontend-plugins/decklink-captions/CMakeLists.txt  | 2 +-
- UI/frontend-plugins/decklink-output-ui/CMakeLists.txt | 2 +-
- UI/frontend-plugins/frontend-tools/CMakeLists.txt     | 2 +-
- UI/obs-frontend-api/CMakeLists.txt                    | 2 +-
- deps/blake2/CMakeLists.txt                            | 2 +-
- deps/file-updater/CMakeLists.txt                      | 2 +-
- deps/glad/CMakeLists.txt                              | 2 +-
- deps/happy-eyeballs/CMakeLists.txt                    | 2 +-
- deps/json11/CMakeLists.txt                            | 2 +-
- deps/libcaption/CMakeLists.txt                        | 2 +-
- deps/media-playback/CMakeLists.txt                    | 2 +-
- deps/obs-scripting/CMakeLists.txt                     | 2 +-
- deps/obs-scripting/obslua/CMakeLists.txt              | 2 +-
- deps/obs-scripting/obspython/CMakeLists.txt           | 2 +-
- deps/opts-parser/CMakeLists.txt                       | 2 +-
- deps/uthash/CMakeLists.txt                            | 2 +-
- libobs-opengl/CMakeLists.txt                          | 2 +-
- libobs/CMakeLists.txt                                 | 2 +-
- plugins/CMakeLists.txt                                | 2 +-
- plugins/aja/CMakeLists.txt                            | 2 +-
- plugins/decklink/CMakeLists.txt                       | 2 +-
- plugins/image-source/CMakeLists.txt                   | 2 +-
- plugins/obs-ffmpeg/CMakeLists.txt                     | 2 +-
- plugins/obs-ffmpeg/ffmpeg-mux/CMakeLists.txt          | 2 +-
- plugins/obs-filters/CMakeLists.txt                    | 2 +-
- plugins/obs-outputs/CMakeLists.txt                    | 2 +-
- plugins/obs-qsv11/CMakeLists.txt                      | 2 +-
- plugins/obs-transitions/CMakeLists.txt                | 2 +-
- plugins/obs-vst/CMakeLists.txt                        | 2 +-
- plugins/obs-webrtc/CMakeLists.txt                     | 2 +-
- plugins/obs-x264/CMakeLists.txt                       | 2 +-
- plugins/rtmp-services/CMakeLists.txt                  | 2 +-
- plugins/text-freetype2/CMakeLists.txt                 | 2 +-
- plugins/vlc-video/CMakeLists.txt                      | 2 +-
- 37 files changed, 37 insertions(+), 37 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index b6f157fbe..3e628c792 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- if(CMAKE_HOST_SYSTEM_NAME MATCHES "(Darwin)" OR OBS_CMAKE_VERSION VERSION_GREATER_EQUAL 3.0.0)
-   include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/common/bootstrap.cmake" NO_POLICY_SCOPE)
-diff --git a/UI/CMakeLists.txt b/UI/CMakeLists.txt
-index cbebcd84d..b5660e662 100644
---- a/UI/CMakeLists.txt
-+++ b/UI/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/UI/frontend-plugins/aja-output-ui/CMakeLists.txt b/UI/frontend-plugins/aja-output-ui/CMakeLists.txt
-index 3555192e6..e9b9ed0ba 100644
---- a/UI/frontend-plugins/aja-output-ui/CMakeLists.txt
-+++ b/UI/frontend-plugins/aja-output-ui/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/UI/frontend-plugins/decklink-captions/CMakeLists.txt b/UI/frontend-plugins/decklink-captions/CMakeLists.txt
-index 3fc910b6c..0969dd7b0 100644
---- a/UI/frontend-plugins/decklink-captions/CMakeLists.txt
-+++ b/UI/frontend-plugins/decklink-captions/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/UI/frontend-plugins/decklink-output-ui/CMakeLists.txt b/UI/frontend-plugins/decklink-output-ui/CMakeLists.txt
-index a5e697e88..1fc0af541 100644
---- a/UI/frontend-plugins/decklink-output-ui/CMakeLists.txt
-+++ b/UI/frontend-plugins/decklink-output-ui/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/UI/frontend-plugins/frontend-tools/CMakeLists.txt b/UI/frontend-plugins/frontend-tools/CMakeLists.txt
-index 5a0eeba45..b29d335a3 100644
---- a/UI/frontend-plugins/frontend-tools/CMakeLists.txt
-+++ b/UI/frontend-plugins/frontend-tools/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/UI/obs-frontend-api/CMakeLists.txt b/UI/obs-frontend-api/CMakeLists.txt
-index ca4eae513..fd7c9433b 100644
---- a/UI/obs-frontend-api/CMakeLists.txt
-+++ b/UI/obs-frontend-api/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/deps/blake2/CMakeLists.txt b/deps/blake2/CMakeLists.txt
-index b9fb338a8..6e31ec857 100644
---- a/deps/blake2/CMakeLists.txt
-+++ b/deps/blake2/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- add_library(blake2 STATIC EXCLUDE_FROM_ALL )
- add_library(OBS::blake2 ALIAS blake2)
-diff --git a/deps/file-updater/CMakeLists.txt b/deps/file-updater/CMakeLists.txt
-index e07cd2f0f..fbb358110 100644
---- a/deps/file-updater/CMakeLists.txt
-+++ b/deps/file-updater/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- find_package(CURL REQUIRED)
- 
-diff --git a/deps/glad/CMakeLists.txt b/deps/glad/CMakeLists.txt
-index 64b05a2cc..c6d7ea19c 100644
---- a/deps/glad/CMakeLists.txt
-+++ b/deps/glad/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- find_package(OpenGL REQUIRED)
- 
-diff --git a/deps/happy-eyeballs/CMakeLists.txt b/deps/happy-eyeballs/CMakeLists.txt
-index b3a5692cd..ff3be48ff 100644
---- a/deps/happy-eyeballs/CMakeLists.txt
-+++ b/deps/happy-eyeballs/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- add_library(happy-eyeballs INTERFACE)
- add_library(OBS::happy-eyeballs ALIAS happy-eyeballs)
-diff --git a/deps/json11/CMakeLists.txt b/deps/json11/CMakeLists.txt
-index 78cb7c94a..82d0a063b 100644
---- a/deps/json11/CMakeLists.txt
-+++ b/deps/json11/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- add_library(json11 INTERFACE)
- add_library(OBS::json11 ALIAS json11)
-diff --git a/deps/libcaption/CMakeLists.txt b/deps/libcaption/CMakeLists.txt
-index 53cd79196..2770b6746 100644
---- a/deps/libcaption/CMakeLists.txt
-+++ b/deps/libcaption/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- add_library(caption STATIC EXCLUDE_FROM_ALL )
- add_library(OBS::caption ALIAS caption)
-diff --git a/deps/media-playback/CMakeLists.txt b/deps/media-playback/CMakeLists.txt
-index a84900e47..351f4bb42 100644
---- a/deps/media-playback/CMakeLists.txt
-+++ b/deps/media-playback/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- find_package(FFmpeg REQUIRED COMPONENTS avcodec avdevice avutil avformat)
- 
-diff --git a/deps/obs-scripting/CMakeLists.txt b/deps/obs-scripting/CMakeLists.txt
-index 9096e4b27..988d2235c 100644
---- a/deps/obs-scripting/CMakeLists.txt
-+++ b/deps/obs-scripting/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/deps/obs-scripting/obslua/CMakeLists.txt b/deps/obs-scripting/obslua/CMakeLists.txt
-index 98517ee7d..22edd1e1c 100644
---- a/deps/obs-scripting/obslua/CMakeLists.txt
-+++ b/deps/obs-scripting/obslua/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/deps/obs-scripting/obspython/CMakeLists.txt b/deps/obs-scripting/obspython/CMakeLists.txt
-index f0db72f75..f0a07f66c 100644
---- a/deps/obs-scripting/obspython/CMakeLists.txt
-+++ b/deps/obs-scripting/obspython/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/deps/opts-parser/CMakeLists.txt b/deps/opts-parser/CMakeLists.txt
-index a87ee641e..72d61be53 100644
---- a/deps/opts-parser/CMakeLists.txt
-+++ b/deps/opts-parser/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- add_library(opts-parser INTERFACE)
- add_library(OBS::opts-parser ALIAS opts-parser)
-diff --git a/deps/uthash/CMakeLists.txt b/deps/uthash/CMakeLists.txt
-index aecb0d74e..7ebb524f0 100644
---- a/deps/uthash/CMakeLists.txt
-+++ b/deps/uthash/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- add_library(uthash INTERFACE)
- add_library(OBS::uthash ALIAS uthash)
-diff --git a/libobs-opengl/CMakeLists.txt b/libobs-opengl/CMakeLists.txt
-index 7ee9478ea..51751719d 100644
---- a/libobs-opengl/CMakeLists.txt
-+++ b/libobs-opengl/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/libobs/CMakeLists.txt b/libobs/CMakeLists.txt
-index 46112abe7..28551f61d 100644
---- a/libobs/CMakeLists.txt
-+++ b/libobs/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
-index 90bea35be..26e6b57ec 100644
---- a/plugins/CMakeLists.txt
-+++ b/plugins/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- option(ENABLE_PLUGINS "Enable building OBS plugins" ON)
- 
-diff --git a/plugins/aja/CMakeLists.txt b/plugins/aja/CMakeLists.txt
-index 423d9d099..daaa57f51 100644
---- a/plugins/aja/CMakeLists.txt
-+++ b/plugins/aja/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/decklink/CMakeLists.txt b/plugins/decklink/CMakeLists.txt
-index e93c7c772..8423fe52a 100644
---- a/plugins/decklink/CMakeLists.txt
-+++ b/plugins/decklink/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/image-source/CMakeLists.txt b/plugins/image-source/CMakeLists.txt
-index a7682454e..2f5fd3790 100644
---- a/plugins/image-source/CMakeLists.txt
-+++ b/plugins/image-source/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/obs-ffmpeg/CMakeLists.txt b/plugins/obs-ffmpeg/CMakeLists.txt
-index 04530ef39..16c4d1e1a 100644
---- a/plugins/obs-ffmpeg/CMakeLists.txt
-+++ b/plugins/obs-ffmpeg/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/obs-ffmpeg/ffmpeg-mux/CMakeLists.txt b/plugins/obs-ffmpeg/ffmpeg-mux/CMakeLists.txt
-index afa22b7a5..5644f8213 100644
---- a/plugins/obs-ffmpeg/ffmpeg-mux/CMakeLists.txt
-+++ b/plugins/obs-ffmpeg/ffmpeg-mux/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/obs-filters/CMakeLists.txt b/plugins/obs-filters/CMakeLists.txt
-index 22d79388c..84b337c40 100644
---- a/plugins/obs-filters/CMakeLists.txt
-+++ b/plugins/obs-filters/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/obs-outputs/CMakeLists.txt b/plugins/obs-outputs/CMakeLists.txt
-index cedc77da0..f131ca671 100644
---- a/plugins/obs-outputs/CMakeLists.txt
-+++ b/plugins/obs-outputs/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/obs-qsv11/CMakeLists.txt b/plugins/obs-qsv11/CMakeLists.txt
-index cae152765..f1c39cc6a 100644
---- a/plugins/obs-qsv11/CMakeLists.txt
-+++ b/plugins/obs-qsv11/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/obs-transitions/CMakeLists.txt b/plugins/obs-transitions/CMakeLists.txt
-index 65e3b13ac..c18ac96ed 100644
---- a/plugins/obs-transitions/CMakeLists.txt
-+++ b/plugins/obs-transitions/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/obs-vst/CMakeLists.txt b/plugins/obs-vst/CMakeLists.txt
-index bb5c32a00..78530783b 100644
---- a/plugins/obs-vst/CMakeLists.txt
-+++ b/plugins/obs-vst/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/obs-webrtc/CMakeLists.txt b/plugins/obs-webrtc/CMakeLists.txt
-index de943062f..84b0f1aa5 100644
---- a/plugins/obs-webrtc/CMakeLists.txt
-+++ b/plugins/obs-webrtc/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/obs-x264/CMakeLists.txt b/plugins/obs-x264/CMakeLists.txt
-index 4c293fb33..c75491a51 100644
---- a/plugins/obs-x264/CMakeLists.txt
-+++ b/plugins/obs-x264/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/rtmp-services/CMakeLists.txt b/plugins/rtmp-services/CMakeLists.txt
-index e8d304ae0..9dc0b2396 100644
---- a/plugins/rtmp-services/CMakeLists.txt
-+++ b/plugins/rtmp-services/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/text-freetype2/CMakeLists.txt b/plugins/text-freetype2/CMakeLists.txt
-index bb30f99a7..b19b0cd57 100644
---- a/plugins/text-freetype2/CMakeLists.txt
-+++ b/plugins/text-freetype2/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
-diff --git a/plugins/vlc-video/CMakeLists.txt b/plugins/vlc-video/CMakeLists.txt
-index 0a35ae284..40a62b076 100644
---- a/plugins/vlc-video/CMakeLists.txt
-+++ b/plugins/vlc-video/CMakeLists.txt
-@@ -1,4 +1,4 @@
--cmake_minimum_required(VERSION 3.22...3.25)
-+cmake_minimum_required(VERSION 3.20...3.25)
- 
- legacy_check()
- 
--- 
-2.41.0
-

diff --git a/obs-studio-UI-use-fdk-aac-by-default.patch b/obs-studio-UI-use-fdk-aac-by-default.patch
index 5f9d1e1..58f78f3 100644
--- a/obs-studio-UI-use-fdk-aac-by-default.patch
+++ b/obs-studio-UI-use-fdk-aac-by-default.patch
@@ -1,4 +1,4 @@
-From 841fd01b7a529b7c1d0e0a509190a26eb1220d5a Mon Sep 17 00:00:00 2001
+From f5177e740846c074e0e2f7aae04a19190e6cbda8 Mon Sep 17 00:00:00 2001
 From: Neal Gompa <neal@gompa.dev>
 Date: Thu, 4 May 2023 13:52:01 -0400
 Subject: [PATCH] UI: Default to fdk-aac for AAC when auto-configuring settings
@@ -6,31 +6,31 @@ Subject: [PATCH] UI: Default to fdk-aac for AAC when auto-configuring settings
 We always have the FDK-AAC codec available, and it's a better
 codec anyway.
 ---
- UI/window-basic-auto-config-test.cpp | 4 ++--
+ frontend/wizards/AutoConfigTestPage.cpp | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
 
-diff --git a/UI/window-basic-auto-config-test.cpp b/UI/window-basic-auto-config-test.cpp
-index c791c8b8b..7dabfd93f 100644
---- a/UI/window-basic-auto-config-test.cpp
-+++ b/UI/window-basic-auto-config-test.cpp
-@@ -202,7 +202,7 @@ void AutoConfigTestPage::TestBandwidthThread()
- 		(wiz->x264Available ? "obs_x264" : "ffmpeg_openh264"),
- 		"test_h264", nullptr, nullptr);
- 	OBSEncoderAutoRelease aencoder = obs_audio_encoder_create(
--		"ffmpeg_aac", "test_aac", nullptr, 0, nullptr);
-+		"libfdk_aac", "test_aac", nullptr, 0, nullptr);
- 	OBSServiceAutoRelease service = obs_service_create(
- 		serverType, "test_service", nullptr, nullptr);
+diff --git a/frontend/wizards/AutoConfigTestPage.cpp b/frontend/wizards/AutoConfigTestPage.cpp
+index 5b5051919..9c4769e0a 100644
+--- a/frontend/wizards/AutoConfigTestPage.cpp
++++ b/frontend/wizards/AutoConfigTestPage.cpp
+@@ -194,7 +194,7 @@ void AutoConfigTestPage::TestBandwidthThread()
  
-@@ -572,7 +572,7 @@ bool AutoConfigTestPage::TestSoftwareEncoding()
- 		(wiz->x264Available ? "obs_x264" : "ffmpeg_openh264"),
- 		"test_h264", nullptr, nullptr);
- 	OBSEncoderAutoRelease aencoder = obs_audio_encoder_create(
--		"ffmpeg_aac", "test_aac", nullptr, 0, nullptr);
-+		"libfdk_aac", "test_aac", nullptr, 0, nullptr);
- 	OBSOutputAutoRelease output =
- 		obs_output_create("null_output", "null", nullptr, nullptr);
+ 	OBSEncoderAutoRelease vencoder = obs_video_encoder_create((wiz->x264Available ? "obs_x264" : "ffmpeg_openh264"),
+ 								  "test_h264", nullptr, nullptr);
+-	OBSEncoderAutoRelease aencoder = obs_audio_encoder_create("ffmpeg_aac", "test_aac", nullptr, 0, nullptr);
++	OBSEncoderAutoRelease aencoder = obs_audio_encoder_create("libfdk_aac", "test_aac", nullptr, 0, nullptr);
+ 	OBSServiceAutoRelease service = obs_service_create(serverType, "test_service", nullptr, nullptr);
  
+ 	/* -----------------------------------*/
+@@ -559,7 +559,7 @@ bool AutoConfigTestPage::TestSoftwareEncoding()
+ 
+ 	OBSEncoderAutoRelease vencoder = obs_video_encoder_create((wiz->x264Available ? "obs_x264" : "ffmpeg_openh264"),
+ 								  "test_h264", nullptr, nullptr);
+-	OBSEncoderAutoRelease aencoder = obs_audio_encoder_create("ffmpeg_aac", "test_aac", nullptr, 0, nullptr);
++	OBSEncoderAutoRelease aencoder = obs_audio_encoder_create("libfdk_aac", "test_aac", nullptr, 0, nullptr);
+ 	OBSOutputAutoRelease output = obs_output_create("null_output", "null", nullptr, nullptr);
+ 
+ 	/* -----------------------------------*/
 -- 
-2.40.0
+2.46.2
 

diff --git a/obs-studio-fix-build-against-qt-6-10.patch b/obs-studio-fix-build-against-qt-6-10.patch
new file mode 100644
index 0000000..aab7115
--- /dev/null
+++ b/obs-studio-fix-build-against-qt-6-10.patch
@@ -0,0 +1,13 @@
+diff --git a/frontend/cmake/ui-qt.cmake b/frontend/cmake/ui-qt.cmake
+index c4293e0..9ca4103 100644
+--- a/frontend/cmake/ui-qt.cmake
++++ b/frontend/cmake/ui-qt.cmake
+@@ -1,7 +1,7 @@
+ find_package(Qt6 REQUIRED Widgets Network Svg Xml)
+ 
+ if(OS_LINUX OR OS_FREEBSD OR OS_OPENBSD)
+-  find_package(Qt6 REQUIRED Gui DBus)
++  find_package(Qt6 REQUIRED Gui GuiPrivate DBus)
+ endif()
+ 
+ if(NOT TARGET OBS::qt-wrappers)

diff --git a/obs-studio-fix-incompatible-pointer-type.patch b/obs-studio-fix-incompatible-pointer-type.patch
new file mode 100644
index 0000000..14b82d4
--- /dev/null
+++ b/obs-studio-fix-incompatible-pointer-type.patch
@@ -0,0 +1,26 @@
+From 88286758bfb7dfcf13875db36f2b2b3960497e99 Mon Sep 17 00:00:00 2001
+From: Neal Gompa <neal@gompa.dev>
+Date: Sat, 5 Oct 2024 10:57:23 -0400
+Subject: [PATCH] libobs-opengl: Fix incompatible pointer type error for 32-bit
+ arches
+
+---
+ libobs-opengl/gl-egl-common.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libobs-opengl/gl-egl-common.c b/libobs-opengl/gl-egl-common.c
+index 8854e9d0c..819061ae0 100644
+--- a/libobs-opengl/gl-egl-common.c
++++ b/libobs-opengl/gl-egl-common.c
+@@ -379,7 +379,7 @@ bool gl_egl_query_dmabuf_modifiers_for_format(EGLDisplay egl_display, uint32_t d
+ 		blog(LOG_ERROR, "Unable to load eglQueryDmaBufModifiersEXT");
+ 		return false;
+ 	}
+-	if (!query_dmabuf_modifiers(egl_display, drm_format, modifiers, n_modifiers)) {
++	if (!query_dmabuf_modifiers(egl_display, drm_format, modifiers, (EGLuint64KHR *)n_modifiers)) {
+ 		*n_modifiers = 0;
+ 		*modifiers = NULL;
+ 		return false;
+-- 
+2.46.2
+

diff --git a/obs-studio.spec b/obs-studio.spec
index 88c7d46..80183f4 100644
--- a/obs-studio.spec
+++ b/obs-studio.spec
@@ -1,42 +1,58 @@
-%ifarch %{power64} s390x
+%ifarch %{power64} s390x riscv64
 # LuaJIT is not available for POWER and IBM Z
-%bcond_with lua_scripting
+%bcond lua_scripting 0
 %else
-%bcond_without lua_scripting
+%bcond lua_scripting 1
 %endif
 
 %ifarch x86_64
 # VPL/QSV is only available on x86_64
-%bcond_without vpl
+%bcond vpl 1
 %else
-%bcond_with vpl
+%bcond vpl 0
 %endif
 
-# VLC is not yet in Fedora
-%bcond_with vlc
 # x264 is not in Fedora
-%bcond_with x264
+%bcond x264 0
+
+%if ! (0%{?fedora} >= 42)
+# CEF is only available in F42+
+%bcond cef 0
+%else
+%ifarch %{x86_64} %{arm64}
+# CEF is only available on x86_64 and aarch64
+%bcond cef 1
+%else
+%bcond cef 0
+%endif
+%endif
 
 %if "%{__isa_bits}" == "64"
 %global lib64_suffix ()(64bit)
 %endif
-%global openh264_soversion 7
+%global libvlc_soversion 5
+
 
+%global obswebsocket_version 5.6.2
+%global obsbrowser_commit bdabf8300ecefeb566b81f4a7ff75f8a8e21f62b
 
-%global obswebsocket_version 5.3.3
+# Upstream does not declare this yet. Arbitrarily pick 137.0 since it works
+# and it works around a CEF versioning teething issue:
+# https://github.com/chromiumembedded/cef/issues/3959
+%global cef_api_version 13700
 
 #global commit ad859a3f66daac0d30eebcc9b07b0c2004fb6040
 #global snapdate 202303261743
-#global shortcommit %(c=%{commit}; echo ${c:0:7})
+#global shortcommit %%(c=%%{commit}; echo ${c:0:7})
 
 Name:           obs-studio
-Version:        30.0.0
-Release:        3.1%{?dist}
+Version:        31.1.1
+Release:        3%{?dist}
 Summary:        Open Broadcaster Software Studio
 
 # OBS itself is GPL-2.0-or-later, while various plugin dependencies are of various other licenses
 # The licenses for those dependencies are captured with the bundled provides statements
-License:        GPL-2.0-or-later and MIT and BSD-1-Clause and BSD-2-Clause and BSD-3-Clause and BSL-1.0 and LGPL-2.1-or-later and CC0-1.0 and (CC0-1.0 or OpenSSL or Apache-2.0) and LicenseRef-Fedora-Public-Domain and (BSD-3-Clause or GPL-2.0-only)
+License:        GPL-2.0-or-later and MIT and BSD-2-Clause and BSD-3-Clause and BSL-1.0 and LGPL-2.1-or-later and CC0-1.0 and (CC0-1.0 or OpenSSL or Apache-2.0) and LicenseRef-Fedora-Public-Domain and (BSD-3-Clause or GPL-2.0-only)
 URL:            https://obsproject.com/
 %if 0%{?snapdate}
 Source0:        https://github.com/obsproject/obs-studio/archive/%{commit}/%{name}-%{commit}.tar.gz
@@ -44,30 +60,34 @@ Source0:        https://github.com/obsproject/obs-studio/archive/%{commit}/%{nam
 Source0:        https://github.com/obsproject/obs-studio/archive/%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz
 %endif
 Source1:        https://github.com/obsproject/obs-websocket/archive/%{obswebsocket_version}/obs-websocket-%{obswebsocket_version}.tar.gz
+Source2:        https://github.com/obsproject/obs-browser/archive/%{obsbrowser_commit}/obs-browser-%{obsbrowser_commit}.tar.gz
 
 # Backports from upstream
 
 # Proposed upstream
+## From: https://github.com/obsproject/obs-studio/pull/12326
+Patch0101:      0101-frontend-Consider-settings-changed-if-an-output-sett.patch
+Patch0102:      0102-frontend-Allow-invalid-recording-encoder-if-quality-.patch
 ## From: https://github.com/obsproject/obs-studio/pull/8529
-Patch0101:      0101-UI-Consistently-reference-the-software-H264-encoder-.patch
-Patch0102:      0102-obs-ffmpeg-Add-initial-support-for-the-OpenH264-H.26.patch
 Patch0103:      0103-UI-Add-support-for-OpenH264-as-the-worst-case-fallba.patch
 
 # Downstream Fedora patches
-## Downgrade to CMake 3.20 for RHEL 9 compatibility
-Patch1001:      obs-studio-30-cmake-3.20.patch
 ## Use fdk-aac by default
-Patch1002:      obs-studio-UI-use-fdk-aac-by-default.patch
-
+Patch1001:      obs-studio-UI-use-fdk-aac-by-default.patch
+## Fix error: passing argument 4 of ‘query_dmabuf_modifiers’ from
+##            incompatible pointer type [-Wincompatible-pointer-types]
+Patch1003:      obs-studio-fix-incompatible-pointer-type.patch
+Patch1004:      obs-studio-fix-build-against-qt-6-10.patch
 
 BuildRequires:  gcc
-BuildRequires:  cmake >= 3.20
+BuildRequires:  cmake >= 3.22
 BuildRequires:  ninja-build
 BuildRequires:  libappstream-glib
 BuildRequires:  desktop-file-utils
 
 BuildRequires:  alsa-lib-devel
 BuildRequires:  asio-devel
+BuildRequires:  extra-cmake-modules
 BuildRequires:  fdk-aac-free-devel
 BuildRequires:  ffmpeg-free-devel
 BuildRequires:  fontconfig-devel
@@ -75,7 +95,7 @@ BuildRequires:  freetype-devel
 BuildRequires:  jansson-devel >= 2.5
 BuildRequires:  json-devel
 BuildRequires:  libcurl-devel
-BuildRequires:  libdatachannel-devel
+BuildRequires:  libdatachannel-devel >= 0.20
 BuildRequires:  libdrm-devel
 BuildRequires:  libGL-devel
 BuildRequires:  libglvnd-devel
@@ -93,6 +113,7 @@ BuildRequires:  libxkbcommon-devel
 BuildRequires:  luajit-devel
 %endif
 BuildRequires:  mbedtls-devel
+BuildRequires:  nv-codec-headers
 %if %{with vpl}
 BuildRequires:  libvpl-devel
 %endif
@@ -106,12 +127,11 @@ BuildRequires:  qt6-qtbase-devel
 BuildRequires:  qt6-qtbase-private-devel
 BuildRequires:  qt6-qtsvg-devel
 BuildRequires:  qt6-qtwayland-devel
+BuildRequires:  rnnoise-devel
 BuildRequires:  speexdsp-devel
 BuildRequires:  swig
 BuildRequires:  systemd-devel
-%if %{with vlc}
-BuildRequires:  vlc-devel
-%endif
+BuildRequires:  uthash-devel
 BuildRequires:  wayland-devel
 BuildRequires:  websocketpp-devel
 %if %{with x264}
@@ -121,13 +141,10 @@ BuildRequires:  x264-devel
 Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
 # Ensure that we have the full ffmpeg suite installed
 Requires:       /usr/bin/ffmpeg
-# We dlopen() openh264, so weak-depend on it...
+# Try to ensure openh264 is installed
 ## Note, we can do this because openh264 is provided in a default-enabled
 ## third party repository provided by Cisco.
-Recommends:     libopenh264.so.%{openh264_soversion}%{?lib64_suffix}
-%if %{with x264}
-Requires:       x264
-%endif
+Recommends:     openh264%{?_isa}
 
 # Ensure QtWayland is installed when libwayland-client is installed
 Requires:      (qt6-qtwayland%{?_isa} if libwayland-client%{?_isa})
@@ -147,8 +164,6 @@ Provides:      bundled(blake2)
 Provides:      bundled(json11)
 ## License: MIT
 Provides:      bundled(libcaption)
-## License: BSD-1-Clause
-Provides:      bundled(uthash)
 ## License: BSD-3-Clause
 Provides:      bundled(rnnoise)
 ## License: LGPL-2.1-or-later and LicenseRef-Fedora-Public-Domain
@@ -161,18 +176,57 @@ Provides:      bundled(libnsgif)
 ## Cf. https://github.com/obsproject/obs-studio/pull/8327
 Provides:      bundled(intel-mediasdk)
 
+%if ! %{with cef}
+# When the plugin is not available, obsolete it
+Obsoletes:     %{name}-plugin-browser < %{version}-%{release}
+%endif
 
 %description
 Open Broadcaster Software is free and open source
 software for video recording and live streaming.
 
+%files
+%doc README.rst
+%license frontend/data/license/gplv2.txt
+%license COPYING
+%{_bindir}/obs
+%{_bindir}/obs-ffmpeg-mux
+%ifarch %{x86_64}
+%{_bindir}/obs-nvenc-test
+%endif
+%{_datadir}/metainfo/com.obsproject.Studio.metainfo.xml
+%{_datadir}/applications/com.obsproject.Studio.desktop
+%{_datadir}/icons/hicolor/*/apps/com.obsproject.Studio.*
+%{_datadir}/obs/
+%exclude %{_datadir}/obs/obs-plugins/vlc-video/
+%if %{with cef}
+%exclude %{_datadir}/obs/obs-plugins/obs-browser*
+%endif
+
+# --------------------------------------------------------------------------
+
 %package libs
 Summary: Open Broadcaster Software Studio libraries
-%{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}}
 
 %description libs
 Library files for Open Broadcaster Software
 
+%files libs
+%license COPYING
+%license .fedora-rpm/licenses/*
+%dir %{_libexecdir}/obs-plugins
+%{_libdir}/obs-plugins/
+%if %{with cef}
+%exclude %{_libdir}/obs-plugins/obs-browser*
+%endif
+%exclude %{_libdir}/obs-plugins/vlc-video.so
+%{_libdir}/obs-scripting/
+# unversioned so files packaged for third-party plugins (cf. rfbz#5999)
+%{_libdir}/*.so
+%{_libdir}/*.so.*
+
+# --------------------------------------------------------------------------
+
 %package devel
 Summary: Open Broadcaster Software Studio header files
 Requires: %{name}-libs%{?_isa} = %{version}-%{release}
@@ -180,22 +234,77 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release}
 %description devel
 Header files for Open Broadcaster Software
 
+%files devel
+%{_libdir}/cmake/libobs/
+%{_libdir}/cmake/obs-frontend-api/
+%{_libdir}/cmake/obs-websocket-api/
+%{_libdir}/pkgconfig/libobs.pc
+%{_libdir}/pkgconfig/obs-frontend-api.pc
+%{_includedir}/obs/
+
+# --------------------------------------------------------------------------
+
+%if %{with cef}
+%package plugin-browser
+Summary:        Open Broadcaster Software Studio - CEF-based browser plugin
+BuildRequires:  cef-devel
+
+# Filter out bogus libcef.so requires as this is handled manually
+# with an explicit dependency
+%global __requires_exclude ^libcef\\.so.*$
+
+# Require the correct CEF API support
+%{?_cef_api_requires:%_cef_api_requires %{cef_api_version}}
+Requires:       obs-studio%{?_isa} = %{version}-%{release}
+Supplements:    obs-studio%{?_isa}
+
+%description plugin-browser
+Open Broadcaster Software is free and open source software
+for video recording and live streaming.
+
+This package contains the plugin for integrated web-based overlays in
+a video stream or recording using the Chromium Embedded Framework (CEF).
+
+%files plugin-browser
+%{_libdir}/obs-plugins/obs-browser*
+%{_datadir}/obs/obs-plugins/obs-browser*
+%endif
+
+# --------------------------------------------------------------------------
+
+%package plugin-vlc-video
+Summary:        Open Broadcaster Software Studio - VLC-based video plugin
+BuildRequires:  vlc-devel
+# We dlopen() libvlc
+Requires:       libvlc.so.%{libvlc_soversion}%{?lib64_suffix}
+Requires:       obs-studio%{?_isa} = %{version}-%{release}
+Supplements:    obs-studio%{?_isa}
+
+%description plugin-vlc-video
+Open Broadcaster Software is free and open source software
+for video recording and live streaming.
+
+This package contains the plugin for using VLC to embed video
+as an overlay in a video stream or recording.
+
+%files plugin-vlc-video
+%{_libdir}/obs-plugins/vlc-video.so
+%{_datadir}/obs/obs-plugins/vlc-video/
+
+# --------------------------------------------------------------------------
 
 %prep
 %setup -q -n %{name}-%{?snapdate:%{commit}}%{!?snapdate:%{version_no_tilde}}
 # Prepare plugins/obs-websocket
 tar -xf %{SOURCE1} -C plugins/obs-websocket --strip-components=1
+tar -xf %{SOURCE2} -C plugins/obs-browser --strip-components=1
 %autopatch -p1
 
-# rpmlint reports E: hardcoded-library-path
-# replace OBS_MULTIARCH_SUFFIX by LIB_SUFFIX
-sed -e 's|OBS_MULTIARCH_SUFFIX|LIB_SUFFIX|g' -i cmake/Modules/ObsHelpers.cmake
+# This is provided by cef-devel systemwide
+rm cmake/finders/FindCEF.cmake
 
-# Kill rpath settings
-sed -e '\|set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${OBS_LIBRARY_DESTINATION}")|d' -i cmake/Modules/ObsHelpers_Linux.cmake
-
-# touch the missing submodules
-touch plugins/obs-browser/CMakeLists.txt
+# Fix obs-browser rpath setting
+sed -e 's,INSTALL_RPATH ".*",INSTALL_RPATH "%{_libdir}/cef/",' -i plugins/obs-browser/cmake/os-linux.cmake
 
 %if ! %{with x264}
 # disable x264 plugin
@@ -209,10 +318,6 @@ mv plugins/obs-qsv11/CMakeLists.txt plugins/obs-qsv11/CMakeLists.txt.disabled
 touch plugins/obs-qsv11/CMakeLists.txt
 %endif
 
-# remove -Werror flag to mitigate FTBFS with ffmpeg 5.1
-sed -e 's|-Werror-implicit-function-declaration||g' -i cmake/Modules/CompilerConfig.cmake
-sed -e '/-Werror/d' -i cmake/Modules/CompilerConfig.cmake
-
 # Removing unused third-party deps
 rm -rf deps/w32-pthreads
 rm -rf deps/ipc-util
@@ -231,9 +336,7 @@ cp plugins/obs-outputs/librtmp/COPYING .fedora-rpm/licenses/deps/librtmp-COPYING
 cp deps/json11/LICENSE.txt .fedora-rpm/licenses/deps/json11-LICENSE.txt
 cp deps/libcaption/LICENSE.txt .fedora-rpm/licenses/deps/libcaption-LICENSE.txt
 cp plugins/obs-qsv11/QSV11-License-Clarification-Email.txt .fedora-rpm/licenses/plugins/QSV11-License-Clarification-Email.txt
-cp deps/uthash/uthash/LICENSE .fedora-rpm/licenses/deps/uthash-LICENSE
 cp deps/blake2/LICENSE.blake2 .fedora-rpm/licenses/deps/
-cp deps/media-playback/LICENSE.media-playback .fedora-rpm/licenses/deps/
 cp libobs/graphics/libnsgif/LICENSE.libnsgif .fedora-rpm/licenses/deps/
 cp libobs/util/simde/LICENSE.simde .fedora-rpm/licenses/deps/
 cp plugins/decklink/LICENSE.decklink-sdk .fedora-rpm/licenses/deps
@@ -241,18 +344,23 @@ cp plugins/obs-qsv11/obs-qsv11-LICENSE.txt .fedora-rpm/licenses/plugins/
 
 
 %build
-%cmake -DOBS_VERSION_OVERRIDE=%{version_no_tilde} \
+# libcef_wrapper needs to be built static
+%undefine _cmake_shared_libs
+%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+       -DOBS_VERSION_OVERRIDE=%{version_no_tilde} \
+       -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \
        -DUNIX_STRUCTURE=1 -GNinja \
-       -DCMAKE_SKIP_RPATH=1 \
-       -DBUILD_BROWSER=OFF \
-%if ! %{with vlc}
-       -DENABLE_VLC=OFF \
+%if ! %{with cef}
+       -DENABLE_BROWSER=OFF \
+%else
+       -DENABLE_BROWSER=ON \
+       -DCEF_API_VERSION=%{cef_api_version} \
 %endif
        -DENABLE_JACK=ON \
        -DENABLE_LIBFDK=ON \
        -DENABLE_AJA=OFF \
 %if ! %{with lua_scripting}
-       -DDISABLE_LUA=ON \
+       -DENABLE_SCRIPTING_LUA=OFF \
 %endif
        -DOpenGL_GL_PREFERENCE=GLVND
 %cmake_build
@@ -275,47 +383,141 @@ find %{buildroot} -name ".gitkeep" -delete
 
 %check
 desktop-file-validate %{buildroot}/%{_datadir}/applications/com.obsproject.Studio.desktop
-appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
+appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainfo.xml
 
 
-%files
-%doc README.rst
-%license UI/data/license/gplv2.txt
-%license COPYING
-%{_bindir}/obs
-%{_bindir}/obs-ffmpeg-mux
-%{_datadir}/metainfo/com.obsproject.Studio.appdata.xml
-%{_datadir}/applications/com.obsproject.Studio.desktop
-%{_datadir}/icons/hicolor/*/apps/com.obsproject.Studio.*
-%{_datadir}/obs/
+%changelog
+* Tue Sep 30 2025 Jan Grulich <jgrulich@redhat.com> - 31.1.1-3
+- Rebuild (qt6)
 
-%files libs
-%license COPYING
-%license .fedora-rpm/licenses/*
-%dir %{_libexecdir}/obs-plugins
-%{_libdir}/obs-plugins/
-%{_libdir}/obs-scripting/
-# unversioned so files packaged for third-party plugins (cf. rfbz#5999)
-%{_libdir}/*.so
-%{_libdir}/*.so.*
+* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 31.1.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
 
-%files devel
-%{_libdir}/cmake/libobs/
-%{_libdir}/cmake/obs-frontend-api/
-%{_libdir}/pkgconfig/libobs.pc
-%{_includedir}/obs/
+* Sat Jul 12 2025 Neal Gompa <ngompa@fedoraproject.org> - 31.1.1-1
+- Update to 31.1.1
 
+* Tue Jul 08 2025 Neal Gompa <ngompa@fedoraproject.org> - 31.1.0-1
+- Update to 31.1.0 final
+- Update obs-websocket to 5.6.2
+- Update obs-browser to 033a23befe01
 
-%changelog
-* Fri Sep 18 2026 Troy Dawson <tdawson@redhat.com> - 30.0.0-3.1
+* Sun Jul 06 2025 Asahi Lina <lina@asahilina.net> - 31.1.0~rc1-3
+- Switch CEF API to 13700 (works around crash)
+
+* Fri Jul 04 2025 Neal Gompa <ngompa@fedoraproject.org> - 31.1.0~rc1-2
+- Rebuild for libdatachannel 0.23.1
+
+* Tue Jul 01 2025 Asahi Lina <lina@asahilina.net> - 31.1.0~rc1-1
+- Update obs-studio to 31.1.0~rc1
+- Rebase patches after upstream rework
+- Update obs-websocket to 5.6.1
+- Update obs-browser to 9ffe3828da5
+- Re-enable CEF support
+
+* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 31.0.3-3
+- Rebuilt for Python 3.14
+
+* Wed Apr 23 2025 David Abdurachmanov <davidlt@rivosinc.com> - 31.0.3-2
+- Disable LuaJIT on riscv64 (not supported)
+
+* Wed Apr 09 2025 Sérgio M. Basto <sergio@serjux.com> - 31.0.3-1
+- Update obs-studio to 31.0.3
+- Resolves: rhbz#2309473
+
+* Tue Apr 01 2025 Michael J Gruber <mjg@fedoraproject.org> - 31.0.2-6
+- fix v4loopback usage
+
+* Fri Mar 28 2025 Jan Grulich <jgrulich@redhat.com> - 31.0.2-5
+- Rebuild (qt6)
+
+* Tue Mar 25 2025 Peter Robinson <pbrobinson@fedoraproject.org> - 31.0.2-4
+- Rebuild for mbedtls 3.6
+
+* Tue Mar 25 2025 Jan Grulich <jgrulich@redhat.com> - 31.0.2-3
+- Rebuild (qt6)
+
+* Wed Mar 19 2025 Peter Robinson <pbrobinson@fedoraproject.org> - 31.0.2-2
+- Rebuild for mbedtls 3.6
+
+* Thu Mar 13 2025 Sérgio Basto <sergio@serjux.com> - 31.0.2-1
+- Update obs-studio to 31.0.2
+- Resolves: rhbz#2338791
+- Fix FTBFS
+- Resolves: rhbz#2340952
+- Update obs-websocket to 5.5.5
+
+* Thu Feb 20 2025 Neal Gompa <ngompa@fedoraproject.org> - 31.0.1-1
+- Update to 31.0.1
+
+* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 31.0.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
+
+* Fri Dec 13 2024 Neal Gompa <ngompa@fedoraproject.org> - 31.0.0-1
+- Update to 31.0.0 final
+
+* Sun Nov 24 2024 Neal Gompa <ngompa@fedoraproject.org> - 31.0.0~rc1-1
+- Update to 31.0.0~rc1
+
+* Tue Oct 22 2024 Richard W.M. Jones <rjones@redhat.com> - 31.0.0~beta1-4
+- Rebuild for Jansson 2.14
+  (https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/3PYINSQGKQ4BB25NQUI2A2UCGGLAG5ND/)
+
+* Mon Oct 14 2024 Jan Grulich <jgrulich@redhat.com> - 31.0.0~beta1-3
+- Rebuild (qt6)
+
+* Sat Oct 05 2024 Neal Gompa <ngompa@fedoraproject.org> - 31.0.0~beta1-2
+- Directly recommend the openh264 package
+
+* Sat Oct 05 2024 Neal Gompa <ngompa@fedoraproject.org> - 31.0.0~beta1-1
+- Update to 31.0.0~beta1
+
+* Mon Sep 23 2024 Fabio Valentini <decathorpe@gmail.com> - 30.2.2-3
 - Rebuild for ffmpeg 7
 
+* Tue Sep 03 2024 Morten Stevens <mstevens@fedoraproject.org> - 30.2.2-2
+- Rebuilt for mbedTLS 3.6.1
+
+* Wed Jul 31 2024 Neal Gompa <ngompa@fedoraproject.org> - 30.2.2-1
+- Update to 30.2.2
+
+* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 30.1.1-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
+
+* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 30.1.1-3
+- Rebuilt for Python 3.13
 
-* Tue Jul 07 2026 Troy Dawson <tdawson@redhat.com> - 30.0.0-2.1
-- Change oneVPL-devel to libvpl-devel
+* Thu Apr 04 2024 Jan Grulich <jgrulich@redhat.com> - 30.1.1-2
+- Rebuild (qt6)
+
+* Tue Apr 02 2024 Neal Gompa <ngompa@fedoraproject.org> - 30.1.1-1
+- Update to 30.1.1
+
+* Fri Feb 16 2024 Jan Grulich <jgrulich@redhat.com> - 30.0.0-9
+- Rebuild (qt6)
 
-* Sun Sep 22 2024 Dominik Mierzejewski <dominik@greysector.net> - 30.0.0-2
-- rebuilt for qt6 (resolves rhbz#2292436)
+* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 30.0.0-8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+
+* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 30.0.0-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+
+* Thu Dec 28 2023 Neal Gompa <ngompa@fedoraproject.org> - 30.0.0-6
+- Drop broken obsoletes+provides for vlc plugin
+- Drop redundant dependency on libvlc in main package
+
+* Fri Dec 15 2023 Neal Gompa <ngompa@fedoraproject.org> - 30.0.0-5
+- Enable VLC video plugin
+- Split out browser plugin as a subpackage
+- Restructure spec and conditionals
+
+* Mon Dec 11 2023 Neal Gompa <ngompa@fedoraproject.org> - 30.0.0-4
+- Filter out bogus libcef.so automatic dependency
+
+* Sun Dec 10 2023 Asahi Lina <lina@asahilina.net> - 30.0.0-3
+- Add obs-browser support using obs-cef
+
+* Wed Nov 29 2023 Jan Grulich <jgrulich@redhat.com> - 30.0.0-2
+- Rebuild (qt6)
 
 * Mon Nov 13 2023 Neal Gompa <ngompa@fedoraproject.org> - 30.0.0-1
 - Update to 30.0.0 final

diff --git a/sources b/sources
index cdc2ba1..dc17543 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,3 @@
-SHA512 (obs-studio-30.0.0.tar.gz) = a99ec286dddea46e95a90b16b52bfb8033ce017faae039128509c561fef9bc71e02a9e55d1fee428c456dc48ce03ba7939e2488eaec35f791116ab4dfd1f34d0
-SHA512 (obs-websocket-5.3.3.tar.gz) = 5726bd81a366940ab3b33f4997d5d66e8ff1bb7d456a6fbb1ebddbcc0bc847026294f74908b06460a358488abe9bf7372ff5076c48d06714813295cfbf6f4ad8
+SHA512 (obs-studio-31.1.1.tar.gz) = 04d9361276ce2e2a42fa886812715f654df4f6d099d60357b26b584347dc1e4c0fe15c1425a11b8c0a48a00726e2590f848a0b6cb13e53180e9385d72222c627
+SHA512 (obs-websocket-5.6.2.tar.gz) = 2b814d018af4dfd88bd1a83b3edc4b3f72a53bff57cab1a29e1466b1fdce23d73a4cf2b23754c880f7a3bee3d3c398b39feddf47b9bcaf5de5ee31938ab63e79
+SHA512 (obs-browser-bdabf8300ecefeb566b81f4a7ff75f8a8e21f62b.tar.gz) = a77b8b42907ab25fe2a4cb8bb3780d577b9d526058429cc83f42366c7740f70a93eb43139ab3d03d7c40a95adfeb0523004dcc111bc79bc50e04bb5d201496a2

                 reply	other threads:[~2026-10-10 20:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179166249973.1.12853241879845313155.rpms-obs-studio-889a5c48c65c@fedoraproject.org \
    --to=tdawson@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox