OBS crashes on Fedora 40 with screen capture

tacoma50

New Member
OBS came installed with Fedora. I did not install it or add any possibly needed packages.

I am trying to record a video that plays in my browser.
When I start OBS I add a source of: SCREEN CAPTURE (pipewire)
When I click the START RECORDING button, OBS crashes.
When I restart OBS I get a message that OBS did not shutdown properly. If I choose option to run in safe mode it still does the same thing.

What am i missing?


Some notes about my system:

OBS STUDIO 30.2.2 (64 bit)

Fedora Linux 40 (Workstation Edition)
Kernel: Linux 6.9.12-200.fc40.x86_64
Architecture: x86-64
Hardware Vendor: Lenovo
Hardware Model: ThinkPad T15 Gen 2i
graphics: intel Xe Graphics (TGL GT2)

$ switcherooctl list
Device: 0
Name: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics]
Default: yes
Environment: DRI_PRIME=pci-0000_00_02_0

$ glxinfo | grep -e OpenGL.vendor -e OpenGL.renderer
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) Xe Graphics (TGL GT2)

$ lspci -n -n -k | grep -A 2 -e VGA -e 3D
00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:9a49] (rev 01)
Subsystem: Lenovo Device [17aa:22c9]
Kernel driver in use: i915



$ dnf list |grep -i obs-
obs-cef.x86_64 5060^cr103.0.5060.134~git20231010.17f8588-6.fc40 @Updates
obs-studio.x86_64 30.2.2-1.fc40 @Updates
obs-studio-libs.x86_64 30.2.2-1.fc40 @Updates
obs-studio-plugin-browser.x86_64 30.2.2-1.fc40 @Updates
obs-studio-plugin-vlc-video.x86_64 30.2.2-1.fc40 @Updates
obs-studio-plugin-webkitgtk.x86_64 0~git20231023.3c0978b-3.fc40 @fedora
obs-build.noarch 20240913-457.1.1.fc40 updates
obs-build-mkbaselibs.noarch 20240913-457.1.1.fc40 updates
obs-build-mkdrpms.noarch 20240913-457.1.1.fc40 updates
obs-cef-devel.x86_64 5060^cr103.0.5060.134~git20231010.17f8588-6.fc40 updates
obs-service-appimage.noarch 0.10.41-3.fc40 fedora
obs-service-download_files.noarch 0.9.2-3.fc40 fedora
obs-service-extract_file.noarch 0.3-13.20190325git8ea7a76.fc40 fedora
obs-service-obs_scm.noarch 0.10.41-3.fc40 fedora
obs-service-obs_scm-common.noarch 0.10.41-3.fc40 fedora
obs-service-recompress.noarch 0.5.2-1.fc40 fedora
obs-service-rust2rpm.noarch 1-12.fc40 fedora
obs-service-set_version.noarch 0.6.6-1.fc40 updates
obs-service-snapcraft.noarch 0.10.41-3.fc40 fedora
obs-service-tar.noarch 0.10.41-3.fc40 fedora
obs-service-tar_scm.noarch 0.10.41-3.fc40 fedora
obs-signd.x86_64 2.6.1-4.fc40 fedora
obs-studio.i686 30.1.1-1.fc40 fedora
obs-studio-devel.i686 30.2.2-1.fc40 updates
obs-studio-devel.x86_64 30.2.2-1.fc40 updates
obs-studio-libs.i686 30.2.2-1.fc40 updates
obs-studio-plugin-vkcapture.i686 1.4.3-5.fc40 fedora
obs-studio-plugin-vkcapture.x86_64 1.4.3-5.fc40 fedora
 

tacoma50

New Member
Here is how I got OBS-studio video screen capture working on Fedora 40

OBS-Studio came installed on my Fedora laptop as shown here:

$ dnf list |grep -i obs-studio
obs-studio.x86_64 30.2.2-1.fc40
obs-studio-libs.x86_64 30.2.2-1.fc40
obs-studio-plugin-browser.x86_64 30.2.2-1.fc40
obs-studio-plugin-vlc-video.x86_64 30.2.2-1.fc40
obs-studio-plugin-webkitgtk.x86_64 0~git20231023.3c0978b-3.fc40
obs-studio-plugin-x264.x86_64 30.2.2-1.fc40
obs-studio.i686 30.1.1-1.fc40
obs-studio-devel.i686 30.2.2-1.fc40
obs-studio-devel.x86_64 30.2.2-1.fc40
obs-studio-libs.i686 30.2.2-1.fc40
obs-studio-plugin-vkcapture.i686 1.4.3-5.fc40
obs-studio-plugin-vkcapture.x86_64 1.4.3-5.fc40


==== 1. Enable RPM Fusion on your system ========================
Command Line Setup using rpm
To enable access to both the free and the nonfree repository use the following command:
For Fedora using dnf:
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm


======= 2. Install x264 encoding plugin ===========================
$ sudo dnf install obs-studio-plugin-x264

$ dnf list |grep -i obs-studio-plugin-x264
obs-studio-plugin-x264.x86_64 30.2.2-1.fc40 @rpmfusion-free-update

============ 3. enable openh264 library =========================
On Fedora, the default to use the openh264 library, so you need the repository to be explicitly enabled.
$ sudo dnf config-manager --enable fedora-cisco-openh264


========= 4. set video encoder/record to software x264 ==============
Set OBS to record from Open H264 to x264, navigate to your OBS settings, go to the "Output" tab, switch to "Advanced" mode, then under the "Recording" section, select "x264" as your video encoder; essentially choosing the x264 codec to encode your recording instead of the default Open H264 option
My video encoder was originally set to: hardware (QSV, h.264)
I changed the video encoder to: software x.264

======= 5. set your desired output file ===========================
OBS SETTINGS > OUTPUT > RECORDING FORMAT:
Video output was set to .mkv I changed to mepg .mp4

=========== Some related links ================================
https://forums.fedoraforum.org/showt...screen-capture
https://forums.fedoraforum.org/showt...an-t-find-h264
https://obsproject.com/wiki/unofficial-linux-builds
https://rpmfusion.org/Configuration
 
Top