Public bug reported: OBS Studio fails to record using the VAAPI hardware encoding of Intel Skylake CPUs (Intel(R) Core(TM) i7-6700HQ in my case): "Starting the output failed. Please check the log for details."
info: [FFMPEG VAAPI encoder: 'streaming_h264'] settings: device: /dev/dri/renderD128 rate_control: CBR profile: 578 level: 40 qp: 0 bitrate: 2500 maxrate: 2500 keyint: 60 width: 1920 height: 1080 b-frames: 0 [h264_vaapi @ 0x55bae7f246c0] Driver does not support any RC mode compatible with selected options (supported modes: CQP). warning: [FFMPEG VAAPI encoder: 'streaming_h264'] Failed to open VAAPI codec: Invalid argument STEPS TO REPRODUCE: - Start obs, Settings, Output, Output Mode "Advanced" - Streaming, Encoder: FFMPEG VAAPI - Start recording EXPECTED RESULT: - H.264-encoded recording starting with low CPU usage ACTUAL RESULT: - Error message popping up: "Starting the output failed. Please check the log for details." - Log see above ANALYSIS AND WORKAROUND: - vainfo reports this (before I thought bug #1872875 was responsible here): vainfo: VA-API version: 1.7 (libva 2.6.0) vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 () - Workaround: Overriding iHD with i965 fixes the issue for me. Start obs with the LIBVA_DRIVER_NAME environment variable set to "i965" for my Intel Skylake CPU. LIBVA_DRIVER_NAME=i965 obs ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: obs-studio 25.0.3+dfsg1-2 ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27 Uname: Linux 5.4.0-21-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu27 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: KDE Date: Fri Apr 17 09:34:51 2020 InstallationDate: Installed on 2016-11-26 (1237 days ago) InstallationMedia: Kubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1) SourcePackage: obs-studio UpgradeStatus: Upgraded to focal on 2020-03-06 (41 days ago) ** Affects: obs-studio (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1873400 Title: obs-studio FFMPEG VAAPI encoding fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/obs-studio/+bug/1873400/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs