QSV H.264 encoder doesn't work on Arch Linux

burduli94

New Member
Hello. I just installed the latest version of OBS Studio on Arch Linux (EndeavourOS) and for the life of me I can't get QuickSync working. "Failed to start recording" error shows up as soon as I click "Start Recording". I read that Intel dropped support for older CPUs but I'm running an 8th gen Intel Core so it should be working. I also installed intel-media-driver package already.
Here are the logs:
Code:
20:36:14.428: Using EGL/X11
20:36:14.428: CPU Name: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
20:36:14.428: CPU Speed: 4099.971MHz
20:36:14.428: Physical Cores: 4, Logical Cores: 8
20:36:14.428: Physical Memory: 15682MB Total, 10963MB Free
20:36:14.428: Kernel Version: Linux 6.7.1-arch1-1
20:36:14.428: Distribution: "EndeavourOS" Unknown
20:36:14.428: Desktop Environment: KDE (KDE)
20:36:14.428: Session Type: x11
20:36:14.428: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
20:36:14.430: Qt Version: 6.6.1 (runtime), 6.6.1 (compiled)
20:36:14.430: Portable mode: false
20:36:14.488: OBS 30.0.2-3 (linux)
20:36:14.488: ---------------------------------
20:36:14.489: ---------------------------------
20:36:14.489: audio settings reset:
20:36:14.489:     samples per sec: 48000
20:36:14.489:     speakers:        2
20:36:14.489:     max buffering:   960 milliseconds
20:36:14.489:     buffering type:  dynamically increasing
20:36:14.490: ---------------------------------
20:36:14.490: Initializing OpenGL...
20:36:14.614: Loading up OpenGL on adapter Intel Mesa Intel(R) UHD Graphics 620 (WHL GT2)
20:36:14.614: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 23.3.4-arch1.2, shading language 4.60
20:36:14.643: ---------------------------------
20:36:14.643: video settings reset:
20:36:14.643:     base resolution:   3440x1440
20:36:14.643:     output resolution: 2580x1080
20:36:14.643:     downscale filter:  Bicubic
20:36:14.643:     fps:               30/1
20:36:14.643:     format:            NV12
20:36:14.643:     YUV mode:          Rec. 709/Partial
20:36:14.644: NV12 texture support not available
20:36:14.644: P010 texture support not available
20:36:14.655: Audio monitoring device:
20:36:14.655:     name: Default
20:36:14.655:     id: default
20:36:14.655: ---------------------------------
20:36:14.661: Failed to load 'en-US' text for module: 'decklink-captions.so'
20:36:14.666: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
20:36:14.671: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
20:36:14.671: Failed to initialize module 'decklink.so'
20:36:14.784: [pipewire] No captures available
20:36:14.838: VAAPI: API version 1.20
20:36:14.838: FFmpeg VAAPI H264 encoding supported
20:36:14.838: FFmpeg VAAPI HEVC encoding supported
20:36:14.910: ---------------------------------
20:36:14.910:   Loaded Modules:
20:36:14.910:     text-freetype2.so
20:36:14.910:     rtmp-services.so
20:36:14.910:     obs-x264.so
20:36:14.910:     obs-webrtc.so
20:36:14.910:     obs-vst.so
20:36:14.910:     obs-transitions.so
20:36:14.910:     obs-qsv11.so
20:36:14.910:     obs-outputs.so
20:36:14.910:     obs-libfdk.so
20:36:14.910:     obs-filters.so
20:36:14.910:     obs-ffmpeg.so
20:36:14.910:     linux-v4l2.so
20:36:14.910:     linux-pulseaudio.so
20:36:14.910:     linux-pipewire.so
20:36:14.910:     linux-jack.so
20:36:14.910:     linux-capture.so
20:36:14.910:     linux-alsa.so
20:36:14.910:     image-source.so
20:36:14.910:     frontend-tools.so
20:36:14.910:     decklink-output-ui.so
20:36:14.910:     decklink-captions.so
20:36:14.910: ---------------------------------
20:36:14.910: QWidget::setTabOrder: 'first' and 'second' must be in the same window
20:36:14.910: ==== Startup complete ===============================================
20:36:14.937: All scene data cleared
20:36:14.938: ------------------------------------------------
20:36:14.942: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.1) 15.0.0'
20:36:14.942: pulse-input: Audio format: s32le, 48000 Hz, 2 channels
20:36:14.942: pulse-input: Started recording from 'alsa_output.pci-0000_00_1f.3.analog-stereo.monitor' (default)
20:36:14.942: [Loaded global audio device]: 'Desktop Audio'
20:36:14.942: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.1) 15.0.0'
20:36:14.943: pulse-input: Audio format: s32le, 48000 Hz, 2 channels
20:36:14.943: pulse-input: Started recording from 'alsa_input.pci-0000_00_1f.3.analog-stereo' (default)
20:36:14.943: [Loaded global audio device]: 'Mic/Aux'
20:36:14.943: xshm-input: Geometry 2560x1440 @ 0,0
20:36:14.952: Switched to scene 'Scene'
20:36:14.953: ------------------------------------------------
20:36:14.953: Loaded scenes:
20:36:14.953: - scene 'Scene':
20:36:14.953:     - source: 'Screen Capture (XSHM)' (xshm_input)
20:36:14.953: ------------------------------------------------
20:36:15.599: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Desktop Audio)
20:36:15.599:
20:36:16.650: >>> gpu tex not active, fall back to old qsv encoder
20:36:16.650: [qsv encoder: 'simple_video_recording'] settings:
20:36:16.650:     codec:          H.264
20:36:16.650:     rate_control:   ICQ
20:36:16.650:     ICQ Quality:    23
20:36:16.650:     target_usage:   TU4
20:36:16.650:     profile:        high
20:36:16.650:     keyint:         0
20:36:16.650:     latency:        normal
20:36:16.650:     b-frames:       3
20:36:16.650:     enhancements:   on
20:36:16.650:     fps_num:        30
20:36:16.650:     fps_den:        1
20:36:16.650:     width:          2580
20:36:16.650:     height:         1080
20:36:16.650: [qsv encoder: 'simple_video_recording'] debug info:
20:36:16.701: Failed to initialize MFX
20:36:16.701: [qsv encoder: 'msdk_impl'] Specified object/item/sync point not found. (MFX_ERR_NOT_FOUND)
20:36:16.701: [qsv encoder: 'simple_video_recording'] qsv failed to load
20:36:16.701:     major:          1
20:36:16.701:     minor:          0
20:36:16.701:     interval:       4
20:36:16.701:     GopPictSize:    0
20:36:16.701:     g_pts2dtsShift: 0
20:41:19.313:   OpenType support missing for "Open Sans", script 11
20:41:19.329:   OpenType support missing for "Open Sans", script 12
20:41:19.345:   OpenType support missing for "Open Sans", script 16
20:41:19.364:   OpenType support missing for "Open Sans", script 20
20:42:28.612: >>> gpu tex not active, fall back to old qsv encoder
20:42:28.612: [qsv encoder: 'simple_video_recording'] settings:
20:42:28.612:     codec:          H.264
20:42:28.612:     rate_control:   ICQ
20:42:28.612:     ICQ Quality:    23
20:42:28.612:     target_usage:   TU4
20:42:28.612:     profile:        high
20:42:28.612:     keyint:         0
20:42:28.612:     latency:        normal
20:42:28.612:     b-frames:       3
20:42:28.612:     enhancements:   on
20:42:28.612:     fps_num:        30
20:42:28.612:     fps_den:        1
20:42:28.612:     width:          2580
20:42:28.612:     height:         1080
20:42:28.612: [qsv encoder: 'simple_video_recording'] debug info:
20:42:28.660: Failed to initialize MFX
20:42:28.660: [qsv encoder: 'msdk_impl'] Specified object/item/sync point not found. (MFX_ERR_NOT_FOUND)
20:42:28.660: [qsv encoder: 'simple_video_recording'] qsv failed to load
20:42:28.660:     major:          1
20:42:28.660:     minor:          0
20:42:28.660:     interval:       4
20:42:28.660:     GopPictSize:    0
20:42:28.660:     g_pts2dtsShift: 0

Any help is appreciated.
 

burduli94

New Member
SOLVED by installing Intel Media SDK. QuickSync encoding works perfectly now. I've been Googling all day and ChatGPT was the one who helped me after it read my logs.
1706461110184.png
 

R@de

Member
I was getting this error in Ubuntu 23.10, installing onevpl-tools and libmfx-gen1.2 is what fixed it for me. More details at this link / blog.
 
Top