public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/obs-studio] epel9: Update to 31.0.0~beta1
@ 2026-10-10 20:01 Neal Gompa
  0 siblings, 0 replies; only message in thread
From: Neal Gompa @ 2026-10-10 20:01 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/obs-studio
Branch : epel9
Commit : 6922be730e1093598b3cf55554d077eea0281bc6
Author : Neal Gompa <ngompa@fedoraproject.org>
Date   : 2024-10-05T13:11:16-04:00
Stats  : +302/-381 in 9 file(s)
URL    : https://src.fedoraproject.org/rpms/obs-studio/c/6922be730e1093598b3cf55554d077eea0281bc6?branch=epel9

Log:
Update to 31.0.0~beta1

---
diff --git a/0101-UI-Consistently-reference-the-software-H264-encoder-.patch b/0101-UI-Consistently-reference-the-software-H264-encoder-.patch
index 12a6aca..e57689d 100644
--- a/0101-UI-Consistently-reference-the-software-H264-encoder-.patch
+++ b/0101-UI-Consistently-reference-the-software-H264-encoder-.patch
@@ -1,4 +1,4 @@
-From e46d94eaa176c5c83ae9e8ab046cfde7d218d3ca Mon Sep 17 00:00:00 2001
+From d5e19a139c7bb5eb2b5012d7136f363510e2fe9a 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
@@ -11,14 +11,14 @@ 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(-)
+ UI/window-basic-settings.cpp         | 4 ++--
+ 4 files changed, 8 insertions(+), 8 deletions(-)
 
 diff --git a/UI/data/locale/en-US.ini b/UI/data/locale/en-US.ini
-index b3303340c..095c2b4df 100644
+index 2f15c5abd..29e752896 100644
 --- a/UI/data/locale/en-US.ini
 +++ b/UI/data/locale/en-US.ini
-@@ -1023,7 +1023,7 @@ Basic.Settings.Output.Simple.Warn.Encoder="Warning: Recording with a software en
+@@ -1034,7 +1034,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. Replay buffer is unavailable when using lossless quality."
  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!"
@@ -27,7 +27,7 @@ index b3303340c..095c2b4df 100644
  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)"
-@@ -1034,7 +1034,7 @@ Basic.Settings.Output.Simple.Encoder.Hardware.NVENC.AV1="Hardware (NVENC, AV1)"
+@@ -1045,7 +1045,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)"
@@ -37,10 +37,10 @@ index b3303340c..095c2b4df 100644
  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 904875783..cecb5f9bf 100644
+index b53f37aa2..d941e6f68 100644
 --- a/UI/window-basic-auto-config-test.cpp
 +++ b/UI/window-basic-auto-config-test.cpp
-@@ -1047,7 +1047,7 @@ void AutoConfigTestPage::TestRecordingEncoderThread()
+@@ -981,7 +981,7 @@ void AutoConfigTestPage::TestRecordingEncoderThread()
  }
  
  #define ENCODER_TEXT(x) "Basic.Settings.Output.Simple.Encoder." x
@@ -49,7 +49,7 @@ index 904875783..cecb5f9bf 100644
  #define ENCODER_NVENC ENCODER_TEXT("Hardware.NVENC.H264")
  #define ENCODER_QSV ENCODER_TEXT("Hardware.QSV.H264")
  #define ENCODER_AMD ENCODER_TEXT("Hardware.AMD.H264")
-@@ -1087,7 +1087,7 @@ void AutoConfigTestPage::FinalizeResults()
+@@ -1020,7 +1020,7 @@ void AutoConfigTestPage::FinalizeResults()
  	auto encName = [](AutoConfig::Encoder enc) -> QString {
  		switch (enc) {
  		case AutoConfig::Encoder::x264:
@@ -58,7 +58,7 @@ index 904875783..cecb5f9bf 100644
  		case AutoConfig::Encoder::NVENC:
  			return QTStr(ENCODER_NVENC);
  		case AutoConfig::Encoder::QSV:
-@@ -1100,7 +1100,7 @@ void AutoConfigTestPage::FinalizeResults()
+@@ -1033,7 +1033,7 @@ void AutoConfigTestPage::FinalizeResults()
  			return QTStr(QUALITY_SAME);
  		}
  
@@ -68,37 +68,33 @@ index 904875783..cecb5f9bf 100644
  
  	auto newLabel = [this](const char *str) -> QLabel * {
 diff --git a/UI/window-basic-settings-stream.cpp b/UI/window-basic-settings-stream.cpp
-index 881e1d542..cd78d4c8a 100644
+index 885c49f8a..7296d7328 100644
 --- a/UI/window-basic-settings-stream.cpp
 +++ b/UI/window-basic-settings-stream.cpp
-@@ -1850,7 +1850,7 @@ void OBSBasicSettings::ResetEncoders(bool streamOnly)
+@@ -1663,7 +1663,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));
+-	ui->simpleOutStrEncoder->addItem(ENCODER_STR("Software"), QString(SIMPLE_ENCODER_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(ENCODER_STR("Hardware.QSV.H264"), QString(SIMPLE_ENCODER_QSV));
 diff --git a/UI/window-basic-settings.cpp b/UI/window-basic-settings.cpp
-index dfcd2dd65..2aa92203c 100644
+index f4efc3e61..1c77f804b 100644
 --- a/UI/window-basic-settings.cpp
 +++ b/UI/window-basic-settings.cpp
-@@ -5338,10 +5338,11 @@ void OBSBasicSettings::FillSimpleRecordingValues()
+@@ -4735,8 +4735,8 @@ 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));
+-	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.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"),
+ 		ui->simpleOutRecEncoder->addItem(ENCODER_STR("Hardware.QSV.H264"), QString(SIMPLE_ENCODER_QSV));
+ 	if (EncoderAvailable("obs_qsv11_av1"))
 -- 
-2.45.2
+2.46.2
 

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
index 39d4ab0..0058e8a 100644
--- 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
@@ -1,4 +1,4 @@
-From 26c2915af0b4cd707d7dbbf7b579eca3c520852f Mon Sep 17 00:00:00 2001
+From 87b3a2fd70e7f5bd715cc7e81ba260cc9f207a6d 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
@@ -12,37 +12,24 @@ 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-h264.c     | 244 +++++++++++++++++++++++
  plugins/obs-ffmpeg/obs-ffmpeg.c          |   2 +
- 5 files changed, 267 insertions(+)
+ 4 files changed, 250 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 4a928c82c..c4dcb17a5 100644
+index 6bc0ab087..35b8c0c40 100644
 --- a/plugins/obs-ffmpeg/CMakeLists.txt
 +++ b/plugins/obs-ffmpeg/CMakeLists.txt
-@@ -33,6 +33,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 558a34df6..2a3b9d29b 100644
---- a/plugins/obs-ffmpeg/cmake/legacy.cmake
-+++ b/plugins/obs-ffmpeg/cmake/legacy.cmake
-@@ -41,6 +41,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-output.h
+@@ -32,6 +32,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/data/locale/en-US.ini b/plugins/obs-ffmpeg/data/locale/en-US.ini
 index e8b73293c..c69d3475f 100644
 --- a/plugins/obs-ffmpeg/data/locale/en-US.ini
@@ -57,10 +44,10 @@ index e8b73293c..c69d3475f 100644
  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
+index 000000000..7ed1cd209
 --- /dev/null
 +++ b/plugins/obs-ffmpeg/obs-ffmpeg-h264.c
-@@ -0,0 +1,260 @@
+@@ -0,0 +1,244 @@
 +/******************************************************************************
 +    Copyright (C) 2023 by Neal Gompa <neal@gompa.dev>
 +    Partly derived from obs-ffmpeg-av1.c by Hugh Bailey <obs.jim@gmail.com>
@@ -81,9 +68,8 @@ index 000000000..179a61ccf
 +
 +#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 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__)
@@ -137,12 +123,10 @@ index 000000000..179a61ccf
 +
 +	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);
++	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);
++	ffmpeg_video_encoder_update(&enc->ffve, bitrate, keyint_sec, voi, &info, ffmpeg_opts);
 +	info("settings:\n"
 +	     "\tencoder:      %s\n"
 +	     "\trc_mode:      %s\n"
@@ -151,8 +135,7 @@ index 000000000..179a61ccf
 +	     "\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.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);
@@ -171,14 +154,13 @@ index 000000000..179a61ccf
 +{
 +	struct h264_encoder *enc = data;
 +
-+	da_copy_array(enc->header, enc->ffve.context->extradata,
-+		      enc->ffve.context->extradata_size);
++	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)
++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);
@@ -211,8 +193,7 @@ index 000000000..179a61ccf
 +	case VIDEO_FORMAT_AYUV:
 +		break;
 +	default:; // Make the compiler do the right thing
-+		const char *const text =
-+			obs_module_text("H264.UnsupportedVideoFormat");
++		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;
@@ -223,8 +204,7 @@ index 000000000..179a61ccf
 +	case VIDEO_CS_709:
 +		break;
 +	default:; // Make the compiler do the right thing
-+		const char *const text =
-+			obs_module_text("H264.UnsupportedColorSpace");
++		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;
@@ -235,8 +215,7 @@ index 000000000..179a61ccf
 +	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))
++	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;
@@ -250,12 +229,10 @@ index 000000000..179a61ccf
 +
 +static void *oh264_create(obs_data_t *settings, obs_encoder_t *encoder)
 +{
-+	return h264_create_internal(settings, encoder, "libopenh264",
-+				    "OpenH264");
++	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)
++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);
@@ -273,22 +250,16 @@ index 000000000..179a61ccf
 +	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,
++	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, "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);
++	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);
++	obs_properties_add_text(props, "ffmpeg_opts", obs_module_text("FFmpegOpts"), OBS_TEXT_DEFAULT);
 +
 +	return props;
 +}
@@ -322,18 +293,18 @@ index 000000000..179a61ccf
 +	.get_video_info = h264_video_info,
 +};
 diff --git a/plugins/obs-ffmpeg/obs-ffmpeg.c b/plugins/obs-ffmpeg/obs-ffmpeg.c
-index c20281f63..118468c94 100644
+index df631a672..ac8423e90 100644
 --- a/plugins/obs-ffmpeg/obs-ffmpeg.c
 +++ b/plugins/obs-ffmpeg/obs-ffmpeg.c
-@@ -41,6 +41,7 @@ extern struct obs_encoder_info pcm24_encoder_info;
+@@ -35,6 +35,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;
+ #ifdef ENABLE_FFMPEG_NVENC
  extern struct obs_encoder_info h264_nvenc_encoder_info;
  #ifdef ENABLE_HEVC
- extern struct obs_encoder_info hevc_nvenc_encoder_info;
-@@ -367,6 +368,7 @@ bool obs_module_load(void)
+@@ -349,6 +350,7 @@ bool obs_module_load(void)
  	obs_register_output(&ffmpeg_hls_muxer);
  	obs_register_output(&replay_buffer);
  	obs_register_encoder(&aac_encoder_info);
@@ -342,5 +313,5 @@ index c20281f63..118468c94 100644
  	register_encoder_if_available(&aom_av1_encoder_info, "libaom-av1");
  	obs_register_encoder(&opus_encoder_info);
 -- 
-2.45.2
+2.46.2
 

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 196505f..6efd2b5 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,4 +1,4 @@
-From fc24ed0b22ad1487df277af35d62f5b77b9fbfad Mon Sep 17 00:00:00 2001
+From 2cabb9f3399cece71265c0ce74fca1aafc9dc46c 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
@@ -9,22 +9,22 @@ 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-test.cpp | 46 +++++++++++++++++++---------
+ UI/window-basic-auto-config.cpp      | 16 +++++++++-
  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-profiles.cpp    | 31 +++++++++++--------
+ UI/window-basic-main.cpp             | 15 ++++++---
  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(-)
+ UI/window-basic-settings-stream.cpp  | 12 ++++++--
+ UI/window-basic-settings.cpp         | 16 ++++++++--
+ 10 files changed, 108 insertions(+), 41 deletions(-)
 
 diff --git a/UI/data/locale/en-US.ini b/UI/data/locale/en-US.ini
-index 095c2b4df..d47765b16 100644
+index 29e752896..b22bae9c5 100644
 --- a/UI/data/locale/en-US.ini
 +++ b/UI/data/locale/en-US.ini
-@@ -1023,6 +1023,7 @@ Basic.Settings.Output.Simple.Warn.Encoder="Warning: Recording with a software en
+@@ -1034,6 +1034,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. Replay buffer is unavailable when using lossless quality."
  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!"
@@ -33,20 +33,20 @@ index 095c2b4df..d47765b16 100644
  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 cecb5f9bf..0d1e20d4f 100644
+index d941e6f68..5b5051919 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()
+@@ -192,7 +192,8 @@ void AutoConfigTestPage::TestBandwidthThread()
+ 
+ 	const char *serverType = wiz->customServer ? "rtmp_custom" : "rtmp_common";
+ 
+-	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);
+ 
+@@ -224,10 +225,11 @@ void AutoConfigTestPage::TestBandwidthThread()
  	obs_data_set_string(service_settings, "key", key.c_str());
  
  	obs_data_set_int(vencoder_settings, "bitrate", wiz->startingBitrate);
@@ -62,30 +62,27 @@ index cecb5f9bf..0d1e20d4f 100644
  	obs_data_set_int(aencoder_settings, "bitrate", 32);
  
  	OBSBasic *main = reinterpret_cast<OBSBasic *>(App()->GetMainWindow());
-@@ -607,7 +609,8 @@ bool AutoConfigTestPage::TestSoftwareEncoding()
+@@ -555,7 +557,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 =
-@@ -621,17 +624,25 @@ bool AutoConfigTestPage::TestSoftwareEncoding()
+-	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);
+ 
+@@ -567,16 +570,20 @@ bool AutoConfigTestPage::TestSoftwareEncoding()
  	obs_data_set_int(aencoder_settings, "bitrate", 32);
  
  	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_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_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");
@@ -94,17 +91,15 @@ index cecb5f9bf..0d1e20d4f 100644
 -		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, "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");
  	}
  
  	/* -----------------------------------*/
-@@ -988,7 +999,10 @@ void AutoConfigTestPage::TestStreamEncoderThread()
+@@ -923,7 +930,10 @@ void AutoConfigTestPage::TestStreamEncoderThread()
  		else
  			wiz->streamingEncoder = AutoConfig::Encoder::AMD;
  	} else {
@@ -116,7 +111,7 @@ index cecb5f9bf..0d1e20d4f 100644
  	}
  
  #ifdef __linux__
-@@ -1033,7 +1047,10 @@ void AutoConfigTestPage::TestRecordingEncoderThread()
+@@ -967,7 +977,10 @@ void AutoConfigTestPage::TestRecordingEncoderThread()
  		else
  			wiz->recordingEncoder = AutoConfig::Encoder::AMD;
  	} else {
@@ -128,7 +123,7 @@ index cecb5f9bf..0d1e20d4f 100644
  	}
  
  	if (wiz->recordingEncoder != AutoConfig::Encoder::NVENC) {
-@@ -1047,6 +1064,7 @@ void AutoConfigTestPage::TestRecordingEncoderThread()
+@@ -981,6 +994,7 @@ void AutoConfigTestPage::TestRecordingEncoderThread()
  }
  
  #define ENCODER_TEXT(x) "Basic.Settings.Output.Simple.Encoder." x
@@ -136,7 +131,7 @@ index cecb5f9bf..0d1e20d4f 100644
  #define ENCODER_X264 ENCODER_TEXT("Software.X264.H264")
  #define ENCODER_NVENC ENCODER_TEXT("Hardware.NVENC.H264")
  #define ENCODER_QSV ENCODER_TEXT("Hardware.QSV.H264")
-@@ -1086,6 +1104,8 @@ void AutoConfigTestPage::FinalizeResults()
+@@ -1019,6 +1033,8 @@ void AutoConfigTestPage::FinalizeResults()
  
  	auto encName = [](AutoConfig::Encoder enc) -> QString {
  		switch (enc) {
@@ -145,7 +140,7 @@ index cecb5f9bf..0d1e20d4f 100644
  		case AutoConfig::Encoder::x264:
  			return QTStr(ENCODER_X264);
  		case AutoConfig::Encoder::NVENC:
-@@ -1100,7 +1120,7 @@ void AutoConfigTestPage::FinalizeResults()
+@@ -1033,7 +1049,7 @@ void AutoConfigTestPage::FinalizeResults()
  			return QTStr(QUALITY_SAME);
  		}
  
@@ -155,18 +150,19 @@ index cecb5f9bf..0d1e20d4f 100644
  
  	auto newLabel = [this](const char *str) -> QLabel * {
 diff --git a/UI/window-basic-auto-config.cpp b/UI/window-basic-auto-config.cpp
-index 243dce972..22cb399f3 100644
+index eaed589ae..1c6035566 100644
 --- a/UI/window-basic-auto-config.cpp
 +++ b/UI/window-basic-auto-config.cpp
-@@ -1122,6 +1122,7 @@ AutoConfig::AutoConfig(QWidget *parent) : QWizard(parent)
- 		streamPage->ui->key->setText(key.c_str());
+@@ -1055,6 +1055,8 @@ AutoConfig::AutoConfig(QWidget *parent) : QWizard(parent)
+ 	streamPage->ui->useMultitrackVideo->setChecked(hardwareEncodingAvailable && multitrackVideoEnabled);
+ 	streamPage->ServiceChanged();
  
- 	TestHardwareEncoding();
 +	TestSoftwareEncoding();
- 
- 	int bitrate =
- 		config_get_int(main->Config(), "SimpleOutput", "VBitrate");
-@@ -1163,6 +1164,16 @@ AutoConfig::~AutoConfig()
++	TestHardwareEncoding();
+ 	if (!hardwareEncodingAvailable) {
+ 		delete streamPage->ui->preferHardware;
+ 		streamPage->ui->preferHardware = nullptr;
+@@ -1080,6 +1082,16 @@ AutoConfig::~AutoConfig()
  	EnableThreadedMessageBoxes(false);
  }
  
@@ -183,7 +179,7 @@ index 243dce972..22cb399f3 100644
  void AutoConfig::TestHardwareEncoding()
  {
  	size_t idx = 0;
-@@ -1242,8 +1253,10 @@ inline const char *AutoConfig::GetEncoderId(Encoder enc)
+@@ -1155,8 +1167,10 @@ inline const char *AutoConfig::GetEncoderId(Encoder enc)
  		return SIMPLE_ENCODER_AMD;
  	case Encoder::Apple:
  		return SIMPLE_ENCODER_APPLE_H264;
@@ -196,10 +192,10 @@ index 243dce972..22cb399f3 100644
  };
  
 diff --git a/UI/window-basic-auto-config.hpp b/UI/window-basic-auto-config.hpp
-index 2f93c540b..805c3836d 100644
+index 7e31bdf89..a97545153 100644
 --- a/UI/window-basic-auto-config.hpp
 +++ b/UI/window-basic-auto-config.hpp
-@@ -44,6 +44,7 @@ class AutoConfig : public QWizard {
+@@ -45,6 +45,7 @@ class AutoConfig : public QWizard {
  	};
  
  	enum class Encoder {
@@ -207,7 +203,7 @@ index 2f93c540b..805c3836d 100644
  		x264,
  		NVENC,
  		QSV,
-@@ -103,6 +104,7 @@ class AutoConfig : public QWizard {
+@@ -104,6 +105,7 @@ class AutoConfig : public QWizard {
  	bool qsvAvailable = false;
  	bool vceAvailable = false;
  	bool appleAvailable = false;
@@ -215,7 +211,7 @@ index 2f93c540b..805c3836d 100644
  
  	int startingBitrate = 2500;
  	bool customServer = false;
-@@ -119,6 +121,7 @@ class AutoConfig : public QWizard {
+@@ -121,6 +123,7 @@ class AutoConfig : public QWizard {
  	int specificFPSNum = 0;
  	int specificFPSDen = 0;
  
@@ -224,10 +220,10 @@ index 2f93c540b..805c3836d 100644
  	bool CanTestServer(const char *server);
  
 diff --git a/UI/window-basic-main-outputs.cpp b/UI/window-basic-main-outputs.cpp
-index 9e644e90a..2312da7dd 100644
+index 291f6cf76..6b4adf298 100644
 --- a/UI/window-basic-main-outputs.cpp
 +++ b/UI/window-basic-main-outputs.cpp
-@@ -593,7 +593,9 @@ void SimpleOutput::LoadStreamingPreset_Lossy(const char *encoderId)
+@@ -546,7 +546,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 +234,7 @@ index 9e644e90a..2312da7dd 100644
  		return "obs_x264";
  	} else if (strcmp(encoder, SIMPLE_ENCODER_X264_LOWCPU) == 0) {
  		return "obs_x264";
-@@ -627,7 +629,7 @@ const char *get_simple_output_encoder(const char *encoder)
+@@ -578,7 +580,7 @@ const char *get_simple_output_encoder(const char *encoder)
  #endif
  	}
  
@@ -248,34 +244,32 @@ index 9e644e90a..2312da7dd 100644
  
  void SimpleOutput::LoadRecordingPreset()
 diff --git a/UI/window-basic-main-profiles.cpp b/UI/window-basic-main-profiles.cpp
-index f9d3f4ea1..27899efc4 100644
+index 559170e5e..0081611b8 100644
 --- a/UI/window-basic-main-profiles.cpp
 +++ b/UI/window-basic-main-profiles.cpp
-@@ -806,7 +806,7 @@ void OBSBasic::ChangeProfile()
- 		NewYouTubeAppDock();
- #endif
+@@ -670,7 +670,7 @@ void OBSBasic::ActivateProfile(const OBSProfile &profile, bool reset)
+ 		ResetProfileData();
+ 	}
  
 -	CheckForSimpleModeX264Fallback();
 +	CheckForSimpleModeH264Fallback();
  
- 	blog(LOG_INFO, "Switched to profile '%s' (%s)", newName, newDir);
- 	blog(LOG_INFO, "------------------------------------------------");
-@@ -827,12 +827,13 @@ void OBSBasic::ChangeProfile()
- 	}
+ 	RefreshProfiles();
+ 
+@@ -741,10 +741,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()
+@@ -761,7 +762,9 @@ void OBSBasic::CheckForSimpleModeX264Fallback()
  	const char *id;
  
  	while (obs_enum_encoder_types(idx++, &id)) {
@@ -286,15 +280,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()
+@@ -784,69 +787,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) {
@@ -371,10 +363,10 @@ index f9d3f4ea1..27899efc4 100644
  			}
  #endif
 diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp
-index 5c05f4141..445c3e8b4 100644
+index 0616a5fa9..bb956110a 100644
 --- a/UI/window-basic-main.cpp
 +++ b/UI/window-basic-main.cpp
-@@ -1550,6 +1550,8 @@ extern void CheckExistingCookieId();
+@@ -1576,6 +1576,8 @@ extern void CheckExistingCookieId();
  #define DEFAULT_CONTAINER "hybrid_mp4"
  #endif
  
@@ -383,46 +375,34 @@ index 5c05f4141..445c3e8b4 100644
  bool OBSBasic::InitBasicConfigDefaults()
  {
  	QList<QScreen *> screens = QGuiApplication::screens();
-@@ -1742,7 +1744,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");
+@@ -1737,7 +1739,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(basicConfig, "AdvOut", "Encoder",
-+				  (useX264 ? "obs_x264" : "ffmpeg_openh264"));
++	config_set_default_string(activeConfiguration, "AdvOut", "Encoder", (useX264 ? "obs_x264" : "ffmpeg_openh264"));
  
- 	config_set_default_string(basicConfig, "AdvOut", "RecType", "Standard");
+ 	config_set_default_string(activeConfiguration, "AdvOut", "RecType", "Standard");
  
-@@ -1868,7 +1873,6 @@ bool OBSBasic::InitBasicConfigDefaults()
- 	return true;
- }
- 
--extern bool EncoderAvailable(const char *encoder);
- extern bool update_nvenc_presets(ConfigFile &config);
- 
- void OBSBasic::InitBasicConfigDefaults2()
-@@ -1877,12 +1881,14 @@ void OBSBasic::InitBasicConfigDefaults2()
- 					      "Pre23Defaults");
+@@ -1855,10 +1859,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);
++	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);
+ 	config_set_default_string(activeConfiguration, "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);
+ 	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"))
-@@ -2190,7 +2196,7 @@ void OBSBasic::OBSInit()
+@@ -2121,7 +2128,7 @@ void OBSBasic::OBSInit()
  
  	InitBasicConfigDefaults2();
  
@@ -432,7 +412,7 @@ index 5c05f4141..445c3e8b4 100644
  	LogEncoders();
  
 diff --git a/UI/window-basic-main.hpp b/UI/window-basic-main.hpp
-index eb55d2f05..908093321 100644
+index d04edfeff..c9bec0b6b 100644
 --- a/UI/window-basic-main.hpp
 +++ b/UI/window-basic-main.hpp
 @@ -70,6 +70,7 @@ class OBSBasicVCamConfig;
@@ -443,20 +423,20 @@ index eb55d2f05..908093321 100644
  #define SIMPLE_ENCODER_QSV "qsv"
  #define SIMPLE_ENCODER_QSV_AV1 "qsv_av1"
  #define SIMPLE_ENCODER_NVENC "nvenc"
-@@ -445,7 +446,7 @@ private:
- 	void DeleteProfile(const char *profile_name, const char *profile_dir);
- 	void RefreshProfiles();
- 	void ChangeProfile();
+@@ -1303,7 +1304,7 @@ private:
+ 	void ActivateProfile(const OBSProfile &profile, bool reset = false);
+ 	std::vector<std::string> GetRestartRequirements(const ConfigFile &config) const;
+ 	void ResetProfileData();
 -	void CheckForSimpleModeX264Fallback();
 +	void CheckForSimpleModeH264Fallback();
  
- 	void SaveProjectNow();
- 
+ public:
+ 	inline const OBSProfileCache &GetProfileCache() const noexcept { return profiles; };
 diff --git a/UI/window-basic-settings-stream.cpp b/UI/window-basic-settings-stream.cpp
-index cd78d4c8a..893059896 100644
+index 7296d7328..0d296abbc 100644
 --- a/UI/window-basic-settings-stream.cpp
 +++ b/UI/window-basic-settings-stream.cpp
-@@ -1617,7 +1617,9 @@ static QString get_adv_fallback(const QString &enc)
+@@ -1459,7 +1459,9 @@ static QString get_adv_fallback(const QString &enc)
  		return "com.apple.videotoolbox.videoencoder.ave.avc";
  	if (enc == "obs_qsv11_av1")
  		return "obs_qsv11";
@@ -467,7 +447,7 @@ index cd78d4c8a..893059896 100644
  }
  
  static QString get_adv_audio_fallback(const QString &enc)
-@@ -1646,7 +1648,9 @@ static QString get_simple_fallback(const QString &enc)
+@@ -1488,7 +1490,9 @@ static QString get_simple_fallback(const QString &enc)
  		return SIMPLE_ENCODER_APPLE_H264;
  	if (enc == SIMPLE_ENCODER_QSV_AV1)
  		return SIMPLE_ENCODER_QSV;
@@ -478,26 +458,22 @@ index cd78d4c8a..893059896 100644
  }
  
  bool OBSBasicSettings::ServiceSupportsCodecCheck()
-@@ -1850,8 +1854,12 @@ void OBSBasicSettings::ResetEncoders(bool streamOnly)
+@@ -1663,7 +1667,9 @@ void OBSBasicSettings::ResetEncoders(bool streamOnly)
  
  #define ENCODER_STR(str) QTStr("Basic.Settings.Output.Simple.Encoder." str)
  
--	ui->simpleOutStrEncoder->addItem(ENCODER_STR("Software.X264.H264"),
--					 QString(SIMPLE_ENCODER_X264));
-+	ui->simpleOutStrEncoder->addItem(ENCODER_STR("Software.OpenH264.H264"),
-+					 QString(SIMPLE_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));
++		ui->simpleOutStrEncoder->addItem(ENCODER_STR("Software.X264.H264"), QString(SIMPLE_ENCODER_X264));
  #ifdef _WIN32
  	if (service_supports_encoder(vcodecs, "obs_qsv11"))
- 		ui->simpleOutStrEncoder->addItem(
+ 		ui->simpleOutStrEncoder->addItem(ENCODER_STR("Hardware.QSV.H264"), QString(SIMPLE_ENCODER_QSV));
 diff --git a/UI/window-basic-settings.cpp b/UI/window-basic-settings.cpp
-index 2aa92203c..38e323479 100644
+index 1c77f804b..25b5f940a 100644
 --- a/UI/window-basic-settings.cpp
 +++ b/UI/window-basic-settings.cpp
-@@ -3848,6 +3848,11 @@ void OBSBasicSettings::SaveOutputSettings()
+@@ -3364,6 +3364,11 @@ void OBSBasicSettings::SaveOutputSettings()
           do. This only exists to make sure that the x264 preset doesn't
           get overwritten with empty data. */
  		presetType = "ApplePreset";
@@ -509,29 +485,22 @@ index 2aa92203c..38e323479 100644
  	else
  		presetType = "Preset";
  
-@@ -5338,11 +5343,16 @@ void OBSBasicSettings::FillSimpleRecordingValues()
+@@ -4735,8 +4740,12 @@ void OBSBasicSettings::FillSimpleRecordingValues()
  	ADD_QUALITY("HQ");
  	ADD_QUALITY("Lossless");
  
--	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));
+-	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));
++		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"),
-@@ -5516,6 +5526,9 @@ void OBSBasicSettings::SimpleStreamingEncoderChanged()
+ 		ui->simpleOutRecEncoder->addItem(ENCODER_STR("Hardware.QSV.H264"), QString(SIMPLE_ENCODER_QSV));
+ 	if (EncoderAvailable("obs_qsv11_av1"))
+@@ -4885,6 +4894,9 @@ void OBSBasicSettings::SimpleStreamingEncoderChanged()
  
  		defaultPreset = "balanced";
  		preset = curAMDAV1Preset;
@@ -540,7 +509,7 @@ index 2aa92203c..38e323479 100644
 +		ui->simpleOutPresetLabel->setVisible(false);
  	} else {
  
- #define PRESET_STR(val) \
+ #define PRESET_STR(val) QString(Str("Basic.Settings.Output.EncoderPreset." val)).arg(val)
 -- 
-2.45.2
+2.46.2
 

diff --git a/11345.patch b/11345.patch
new file mode 100644
index 0000000..97eb09c
--- /dev/null
+++ b/11345.patch
@@ -0,0 +1,59 @@
+From 599b80a9d771411a89f55860f12d3f807864c307 Mon Sep 17 00:00:00 2001
+From: Kurt Kartaltepe <kkartaltepe@gmail.com>
+Date: Fri, 4 Oct 2024 19:48:44 -0700
+Subject: [PATCH] cmake: Use fixed SOVERSION everywhere
+
+We missed a spot when freezing the SOVERSION to 30 after we flipped to
+31 causing builds to break.
+---
+ cmake/linux/helpers.cmake | 11 ++++++-----
+ 1 file changed, 6 insertions(+), 5 deletions(-)
+
+diff --git a/cmake/linux/helpers.cmake b/cmake/linux/helpers.cmake
+index b954fb4a76a2b3..260062e4cfb2dd 100644
+--- a/cmake/linux/helpers.cmake
++++ b/cmake/linux/helpers.cmake
+@@ -19,6 +19,7 @@ function(set_target_properties_obs target)
+   endwhile()
+ 
+   get_target_property(target_type ${target} TYPE)
++  set(OBS_SOVERSION 30)
+ 
+   if(target_type STREQUAL EXECUTABLE)
+     install(TARGETS ${target} RUNTIME DESTINATION "${OBS_EXECUTABLE_DESTINATION}" COMPONENT Runtime)
+@@ -59,8 +60,8 @@ function(set_target_properties_obs target)
+     set_target_properties(
+       ${target}
+       PROPERTIES
+-        VERSION 30
+-        SOVERSION 30
++        VERSION ${OBS_SOVERSION}
++        SOVERSION ${OBS_SOVERSION}
+         BUILD_RPATH "${OBS_OUTPUT_DIR}/$<CONFIG>/${OBS_LIBRARY_DESTINATION}"
+         INSTALL_RPATH "${OBS_LIBRARY_RPATH}"
+     )
+@@ -96,7 +97,7 @@ function(set_target_properties_obs target)
+         POST_BUILD
+         COMMAND
+           "${CMAKE_COMMAND}" -E create_symlink
+-          "$<TARGET_FILE_PREFIX:${target}>$<TARGET_FILE_BASE_NAME:${target}>.so.${OBS_VERSION_MAJOR}"
++          "$<TARGET_FILE_PREFIX:${target}>$<TARGET_FILE_BASE_NAME:${target}>.so.${OBS_SOVERSION}"
+           "$<TARGET_FILE_PREFIX:${target}>$<TARGET_FILE_BASE_NAME:${target}>.so.0"
+         COMMAND
+           "${CMAKE_COMMAND}" -E copy_if_different
+@@ -107,13 +108,13 @@ function(set_target_properties_obs target)
+     endif()
+   elseif(target_type STREQUAL MODULE_LIBRARY)
+     if(target STREQUAL obs-browser)
+-      set_target_properties(${target} PROPERTIES VERSION 0 SOVERSION 30)
++      set_target_properties(${target} PROPERTIES VERSION 0 SOVERSION ${OBS_SOVERSION})
+     else()
+       set_target_properties(
+         ${target}
+         PROPERTIES
+           VERSION 0
+-          SOVERSION 30
++          SOVERSION ${OBS_SOVERSION}
+           BUILD_RPATH "${OBS_OUTPUT_DIR}/$<CONFIG>/${OBS_LIBRARY_DESTINATION}"
+           INSTALL_RPATH "${OBS_MODULE_RPATH}"
+       )

diff --git a/FindCEF.cmake b/FindCEF.cmake
deleted file mode 100644
index 319d308..0000000
--- a/FindCEF.cmake
+++ /dev/null
@@ -1,71 +0,0 @@
-include(FindPackageHandleStandardArgs)
-
-find_path(CEF_INCLUDE_DIR "obs-cef/cef_version.h" HINTS /usr/include)
-
-find_library(
-  CEF_LIBRARY
-  NAMES libcef.so "Chromium Embedded Framework"
-  NO_DEFAULT_PATH
-  PATHS /usr/local/lib64/obs-cef /usr/lib64/obs-cef /usr/local/lib/obs-cef /usr/lib/obs-cef)
-
-find_library(
-  CEFWRAPPER_LIBRARY
-  NAMES libcef_dll_wrapper.a
-  NO_DEFAULT_PATH
-  PATHS /usr/local/lib64/obs-cef /usr/lib64/obs-cef /usr/local/lib/obs-cef /usr/lib/obs-cef)
-
-mark_as_advanced(CEFWRAPPER_LIBRARY CEFWRAPPER_LIBRARY_DEBUG)
-
-if(NOT CEF_LIBRARY)
-  message(WARNING "Could NOT find Chromium Embedded Framework library (missing: CEF_LIBRARY)")
-  set(CEF_FOUND FALSE)
-  return()
-endif()
-
-if(NOT CEFWRAPPER_LIBRARY)
-  message(WARNING "Could NOT find Chromium Embedded Framework wrapper library (missing: CEFWRAPPER_LIBRARY)")
-  set(CEF_FOUND FALSE)
-  return()
-endif()
-
-message(STATUS "Found Chromium Embedded Framework: ${CEF_LIBRARY};${CEF_WRAPPER_LIBRARY}")
-
-set(CEF_LIBRARIES ${CEF_LIBRARY} optimized ${CEFWRAPPER_LIBRARY})
-
-if(CEFWRAPPER_LIBRARY_DEBUG)
-  list(APPEND CEF_LIBRARIES debug ${CEFWRAPPER_LIBRARY_DEBUG})
-endif()
-
-find_package_handle_standard_args(CEF DEFAULT_MSG CEF_LIBRARY CEFWRAPPER_LIBRARY CEF_INCLUDE_DIR)
-
-mark_as_advanced(CEF_LIBRARY CEF_WRAPPER_LIBRARY CEF_LIBRARIES CEF_INCLUDE_DIR)
-
-if(NOT TARGET CEF::Wrapper)
-  if(IS_ABSOLUTE "${CEF_LIBRARIES}")
-    add_library(CEF::Wrapper UNKNOWN IMPORTED)
-    add_library(CEF::Library UNKNOWN IMPORTED)
-
-    set_target_properties(CEF::Wrapper PROPERTIES IMPORTED_LOCATION ${CEFWRAPPER_LIBRARY})
-
-    set_target_properties(CEF::Library PROPERTIES IMPORTED_LOCATION ${CEF_LIBRARY})
-
-    if(DEFINED CEFWRAPPER_LIBRARY_DEBUG)
-      set_target_properties(CEF::Wrapper PROPERTIES IMPORTED_LOCATION_DEBUG ${CEFWRAPPER_LIBRARY_DEBUG})
-    endif()
-  else()
-    add_library(CEF::Wrapper INTERFACE IMPORTED)
-    add_library(CEF::Library INTERFACE IMPORTED)
-
-    set_target_properties(CEF::Wrapper PROPERTIES IMPORTED_LIBNAME ${CEFWRAPPER_LIBRARY})
-
-    set_target_properties(CEF::Library PROPERTIES IMPORTED_LIBNAME ${CEF_LIBRARY})
-
-    if(DEFINED CEFWRAPPER_LIBRARY_DEBUG)
-      set_target_properties(CEF::Wrapper PROPERTIES IMPORTED_LIBNAME_DEBUG ${CEFWRAPPER_LIBRARY_DEBUG})
-    endif()
-  endif()
-
-  set_target_properties(CEF::Wrapper PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CEF_INCLUDE_DIR}")
-
-  set_target_properties(CEF::Library PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CEF_INCLUDE_DIR}")
-endif()

diff --git a/obs-studio-UI-use-fdk-aac-by-default.patch b/obs-studio-UI-use-fdk-aac-by-default.patch
index 5f9d1e1..4eb3a90 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
@@ -10,27 +10,27 @@ codec anyway.
  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
+index 5b5051919..9c4769e0a 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);
+@@ -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-incompatible-pointer-type.patch b/obs-studio-fix-incompatible-pointer-type.patch
index f34e81b..14b82d4 100644
--- a/obs-studio-fix-incompatible-pointer-type.patch
+++ b/obs-studio-fix-incompatible-pointer-type.patch
@@ -1,13 +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 f06cd19..023068f 100644
+index 8854e9d0c..819061ae0 100644
 --- a/libobs-opengl/gl-egl-common.c
 +++ b/libobs-opengl/gl-egl-common.c
-@@ -373,7 +373,7 @@ bool gl_egl_query_dmabuf_modifiers_for_format(EGLDisplay egl_display,
+@@ -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)) {
-+				    (EGLuint64KHR*)n_modifiers)) {
+-	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 bccfe58..5c79eda 100644
--- a/obs-studio.spec
+++ b/obs-studio.spec
@@ -15,17 +15,8 @@
 # x264 is not in Fedora
 %bcond x264 0
 
-%if ! (0%{?fedora} >= 40)
-# OBS-CEF is only available in F40+
+# CEF is not packaged yet...
 %bcond cef 0
-%else
-%ifarch %{x86_64} %{arm64}
-# OBS-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)
@@ -34,17 +25,17 @@
 %global libvlc_soversion 5
 
 
-%global obswebsocket_version 5.5.1
-%global obsbrowser_commit 2a2879b5a69f4a99cd7459d8595af46cdb23115c
-%global cef_version 5060
+%global obswebsocket_version 5.5.3
+%global obsbrowser_commit c794b64be90c87387973098ca012a7f79483e1ff
+%global cef_version 6533
 
 #global commit ad859a3f66daac0d30eebcc9b07b0c2004fb6040
 #global snapdate 202303261743
 #global shortcommit %(c=%{commit}; echo ${c:0:7})
 
 Name:           obs-studio
-Version:        30.2.2
-Release:        3%{?dist}
+Version:        31.0.0~beta1
+Release:        1%{?dist}
 Summary:        Open Broadcaster Software Studio
 
 # OBS itself is GPL-2.0-or-later, while various plugin dependencies are of various other licenses
@@ -58,12 +49,12 @@ Source0:        https://github.com/obsproject/obs-studio/archive/%{version_no_ti
 %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
-# CMake snippets for finding systemwide obs-cef
-Source3:        FindCEF.cmake
 
 # Backports from upstream
 
 # Proposed upstream
+## From: https://github.com/obsproject/obs-studio/pull/11345
+Patch0100:      https://github.com/obsproject/obs-studio/pull/11345.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
@@ -91,7 +82,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
@@ -123,6 +114,7 @@ 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
@@ -174,6 +166,11 @@ 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.
@@ -184,6 +181,7 @@ software for video recording and live streaming.
 %license COPYING
 %{_bindir}/obs
 %{_bindir}/obs-ffmpeg-mux
+%{_bindir}/obs-nvenc-test
 %{_datadir}/metainfo/com.obsproject.Studio.metainfo.xml
 %{_datadir}/applications/com.obsproject.Studio.desktop
 %{_datadir}/icons/hicolor/*/apps/com.obsproject.Studio.*
@@ -227,6 +225,7 @@ Header files for Open Broadcaster Software
 %{_libdir}/cmake/obs-frontend-api/
 %{_libdir}/cmake/obs-websocket-api/
 %{_libdir}/pkgconfig/libobs.pc
+%{_libdir}/pkgconfig/obs-frontend-api.pc
 %{_includedir}/obs/
 
 # --------------------------------------------------------------------------
@@ -286,21 +285,6 @@ 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
-
-# Kill rpath settings
-sed -e '/CMAKE_INSTALL_RPATH/d' -i cmake/Modules/ObsDefaults_Linux.cmake
-
-# Fix FindCEF to use systemwide obs-cef
-cp %{SOURCE3} cmake/Modules/FindCEF.cmake
-# Fix include paths
-sed -e 's,include/,obs-cef/,g' -i plugins/obs-browser/{cef-headers.hpp,browser-scheme.cpp}
-# Remove obs-cef install
-sed -e '/setup_target_browser(/d' -i cmake/Modules/ObsHelpers.cmake
-# Fix obs-browser rpath setting
-sed -e 's,INSTALL_RPATH ".*",INSTALL_RPATH "%{_libdir}/obs-cef/",' -i plugins/obs-browser/cmake/{os-linux,legacy}.cmake
 
 %if ! %{with x264}
 # disable x264 plugin
@@ -314,10 +298,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
@@ -337,7 +317,6 @@ 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/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
@@ -345,10 +324,12 @@ cp plugins/obs-qsv11/obs-qsv11-LICENSE.txt .fedora-rpm/licenses/plugins/
 
 
 %build
-%cmake -DOBS_VERSION_OVERRIDE=%{version_no_tilde} \
+%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+       -DOBS_VERSION_OVERRIDE=%{version_no_tilde} \
+       -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \
        -DUNIX_STRUCTURE=1 -GNinja \
 %if ! %{with cef}
-       -DBUILD_BROWSER=OFF \
+       -DENABLE_BROWSER=OFF \
 %endif
        -DENABLE_JACK=ON \
        -DENABLE_LIBFDK=ON \
@@ -381,6 +362,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainf
 
 
 %changelog
+* 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
 

diff --git a/sources b/sources
index f6a610d..73f3bb3 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
-SHA512 (obs-studio-30.2.2.tar.gz) = 3e22be9cc3f09a03a6125b87ee134afe22241a786c5528a6166bd1706e52f7ea6259cfd5207afc8dc299c48851f4663179a698f87e8bde7fecea411764e39c93
-SHA512 (obs-websocket-5.5.1.tar.gz) = a801ca747ccfb9d888e8b2e57c44e786e981a6ab4a83ef1d82ea396b732b9ddcfcdb8068bd65507e5fecc1b93c303611b5c23d0cff5bd36f09230651c534cab5
-SHA512 (obs-browser-2a2879b5a69f4a99cd7459d8595af46cdb23115c.tar.gz) = 5ad219dacf50a4187ff79ee8d5d3e2bcc978b6dd91396669e76c56af2af26424c74151b15d9185a87c06aeb694a0a2f5d80e66a6c18c60ce843009c6f97e9b3a
+SHA512 (obs-studio-31.0.0-beta1.tar.gz) = 31ed02bf04625349cf7b4781c44ddca05191e5a5775a7fdd70fcce3ae63fea0e0fd9cbcaf51a4bbd668e901d93aa49b2d18eaa2a8023aacbffdd1d757ce1a2a4
+SHA512 (obs-websocket-5.5.3.tar.gz) = 4833785c5e8db5423581f59ccb58caeac8f82713a7914bfc56e7811981ff7ad88787376078cb4737ea6467b354cbbd136fa90f365b71698b797ebe3f7e715508
+SHA512 (obs-browser-c794b64be90c87387973098ca012a7f79483e1ff.tar.gz) = 0c572adaf14dd4d610cc75aa0cb715b488775a0d0803319ca43d203fdcf23aa9f4fd9b46be67a15f85b507a81d8cfe47e32f75191aff727ff38f1b8bd44e10c2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-10 20:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-10 20:01 [rpms/obs-studio] epel9: Update to 31.0.0~beta1 Neal Gompa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox