screenrecord: NVENC fallback doesn't trigger on API version mismatch (Pascal/580xx driver)
What happened
omarchy screenrecord (any variant — no audio, desktop audio, mic, webcam) fails to start recording. The bar's recording indicator never activates.
Expected
omarchy-capture-screenrecording already passes -fallback-cpu-encoding yes to gpu-screen-recorder, so it should transparently fall back to software encoding when hardware NVENC is unavailable.
Root cause
- GPU: NVIDIA GeForce GTX 1070 Ti (Pascal/GP104), driver 580.178.04 via
nvidia-580xx-dkms— the legacy driver branch required for Pascal GPUs (markedlegacy-active, EOL ~2028-09) gpu-screen-recorder6.0.0 requires NVENC API 13.1; this driver only reports API 13.0 (needs driver 610.00+, which the 580xx legacy branch doesn't offer for Pascal)-fallback-cpu-encoding yesdoes not trigger for this specific failure —gpu-screen-recorderexits outright withCould not open video codec: Function not implementedinstead of retrying with-encoder cpu
I confirmed CPU/software encoding works correctly when forced manually with -encoder cpu (produced a valid clip), so this is a fallback-detection gap rather than a real incompatibility — any Pascal-class NVIDIA GPU on the legacy driver branch would hit this.
Steps to reproduce
- On a system with an NVIDIA GPU whose driver reports NVENC API < 13.1 (e.g. Pascal on the 580xx legacy branch)
- Run
omarchy screenrecord --fullscreen(or pick any option from the Screenrecord menu) - Recording never starts
System info
- Omarchy: 4.0.0-1
- Hyprland: 0.56.2
- gpu-screen-recorder: 6.0.0-1
- GPU: NVIDIA GeForce GTX 1070 Ti (GP104, Pascal), driver 580.178.04 (nvidia-580xx-dkms)
- CPU: Intel Core i9-14900K
Debug log (OMARCHY_SCREENRECORD_DEBUG=true)
===== 2026-08-17 11:29:05 args: target: monitor:DP-2 =====
gsr info: gsr_kms_client_init: setting up connection to /usr/bin/gsr-kms-server
gsr info: gsr_kms_client_init: waiting for server to connect
kms server info: connecting to the client
gsr info: gsr_kms_client_init: server connected
gsr info: replacing file-backed unix domain socket with socketpair
kms server info: connected to the client
gsr info: using socketpair
gsr info: using h264 encoder because a codec was not specified
[h264_nvenc @ 0x557b3650a880] ignoring invalid SAR: 0/0
[h264_nvenc @ 0x557b3650a880] Driver does not support the required nvenc API version. Required: 13.1 Found: 13.0
[h264_nvenc @ 0x557b3650a880] The minimum required Nvidia driver for nvenc is 610.00 or newer
gsr error: Could not open video codec: Function not implemented
Suggested fix
This looks like a fallback-detection bug in gpu-screen-recorder itself (it isn't honoring -fallback-cpu-encoding yes for this particular ffmpeg-level failure). A workaround on Omarchy's side: have omarchy-capture-screenrecording catch this specific stderr pattern (or pre-check NVENC capability) and retry with -encoder cpu explicitly. This may also be worth reporting upstream to gpu-screen-recorder directly.
Unfortunately when ffmpeg updated to 9.0 they changed the minimum nvenc version to 13.1, which breaks support for older nvidia gpus (only 10 years old). the -fallback-cpu-encoding only checks if the gpu itself supports nvenc, not if ffmpeg does that. I added a check for ffmpeg nvenc version now as well so it should fallback to cpu encoding (in version 6.0.1).
A proper fix would be for distros to build gpu screen recorder with the -Dffmpeg_static=true option, which builds ffmpeg from source, statically with a patch that adds support for all nvidia gpus, including the first generation nvenc devices (such as geforce 600 series). Thats what the flatpak of gpu screen recorder does as well. I made that build option enabled by default now so in the next package release it should work on gtx 1070 ti as well.
guy also,i am using archlinux,so my software package will keep latest,i updated my package,when i use gpu-screen-recorder-ui(gsr-ui) to start gpu-screen-recorder recording the screen,it will fail,and logs told me need to update nvidia driver to 610,but i can't
What happened 发生了什么
omarchy screenrecord(any variant — no audio, desktop audio, mic, webcam) fails to start recording. The bar's recording indicator never activates.omarchy screenrecord(任何类型的输入设备——不包括音频设备、桌面音频设备、麦克风或网络摄像头)都无法开始录制。那个录制指示条始终无法激活。Expected 预期如此
omarchy-capture-screenrecordingalready passes-fallback-cpu-encoding yestogpu-screen-recorder, so it should transparently fall back to software encoding when hardware NVENC is unavailable.omarchy-capture-screenrecording已经将-fallback-cpu-encoding yes传递给gpu-screen-recorder,因此当硬件 NVENC 不可用时,应该会透明地切换到软件编码方式。Root cause 根本原因
* GPU: NVIDIA GeForce GTX 1070 Ti (Pascal/GP104), driver 580.178.04 via `nvidia-580xx-dkms` — the legacy driver branch required for Pascal GPUs (marked `legacy-active`, EOL ~2028-09)GPU:NVIDIA GeForce GTX 1070 Ti(Pascal 架构/GP104 核心),驱动版本为 580.178.04,通过 `nvidia-580xx-dkms` 进行安装——该驱动是支持 Pascal 架构 GPU 所必需的旧版本驱动(标记为 `legacy-active` ,已不再更新,最后更新时间:~2028-09) * `gpu-screen-recorder` 6.0.0 requires NVENC API 13.1; this driver only reports API 13.0 (needs driver 610.00+, which the 580xx legacy branch doesn't offer for Pascal) `gpu-screen-recorder` 6.0.0 版本需要 NVENC API 13.1;而该驱动只支持 API 13.0 版本(需要驱动版本 610.00 及以上,但 580xx 系列设备所使用的 Pascal 架构设备并不具备这一版本的功能)。 * `-fallback-cpu-encoding yes` does not trigger for this specific failure — `gpu-screen-recorder` exits outright with `Could not open video codec: Function not implemented` instead of retrying with `-encoder cpu`对于这种特定的故障情况, `-fallback-cpu-encoding yes` 并不会触发相应的处理流程——相反, `gpu-screen-recorder` 会直接退出,并采用 `Could not open video codec: Function not implemented` 来进行处理,而不是尝试用 `-encoder cpu` 来进行重试操作。I confirmed CPU/software encoding works correctly when forced manually with
-encoder cpu(produced a valid clip), so this is a fallback-detection gap rather than a real incompatibility — any Pascal-class NVIDIA GPU on the legacy driver branch would hit this.我已经确认,当通过-encoder cpu强制进行手动编码时,CPU/软件编码功能能够正常工作(生成了有效的视频片段)。因此,这只是一个临时的检测问题,而不是真正的兼容性问题——在任何支持 Pascal 指令的 NVIDIA 显卡上,使用旧版驱动程序时都会出现这种情况。Steps to reproduce 如何重现步骤
1. On a system with an NVIDIA GPU whose driver reports NVENC API < 13.1 (e.g. Pascal on the 580xx legacy branch)在配备 NVIDIA GPU 的系统中,如果驱动程序报告 NVENC API 版本低于 13.1,那么就需要使用相应的替代方案。例如,580xx 系列的老式架构中使用的 Pascal GPU 就属于这种情况。 2. Run `omarchy screenrecord --fullscreen` (or pick any option from the Screenrecord menu)运行 `omarchy screenrecord --fullscreen` (或者从屏幕录制菜单中选择任意一个选项) 3. Recording never starts 录制从未开始过System info 系统信息
* Omarchy: 4.0.0-1 Omarchy:4.0.0-1 * Hyprland: 0.56.2 Hyprland:0.56.2 * gpu-screen-recorder: 6.0.0-1GPU-屏幕记录器:6.0.0-1 * GPU: NVIDIA GeForce GTX 1070 Ti (GP104, Pascal), driver 580.178.04 (nvidia-580xx-dkms)GPU:NVIDIA GeForce GTX 1070 Ti(GP104 架构,Pascal 系列),驱动版本为 580.178.04(nvidia-580xx-dkms) * CPU: Intel Core i9-14900KCPU:英特尔酷睿 i9-14900KDebug log (
OMARCHY_SCREENRECORD_DEBUG=true)调试日志 (
OMARCHY_SCREENRECORD_DEBUG=true)===== 2026-08-17 11:29:05 args: target: monitor:DP-2 ===== gsr info: gsr_kms_client_init: setting up connection to /usr/bin/gsr-kms-server gsr info: gsr_kms_client_init: waiting for server to connect kms server info: connecting to the client gsr info: gsr_kms_client_init: server connected gsr info: replacing file-backed unix domain socket with socketpair kms server info: connected to the client gsr info: using socketpair gsr info: using h264 encoder because a codec was not specified [h264_nvenc @ 0x557b3650a880] ignoring invalid SAR: 0/0 [h264_nvenc @ 0x557b3650a880] Driver does not support the required nvenc API version. Required: 13.1 Found: 13.0 [h264_nvenc @ 0x557b3650a880] The minimum required Nvidia driver for nvenc is 610.00 or newer gsr error: Could not open video codec: Function not implementedSuggested fix 建议的修复方案
This looks like a fallback-detection bug in
gpu-screen-recorderitself (it isn't honoring-fallback-cpu-encoding yesfor this particular ffmpeg-level failure). A workaround on Omarchy's side: haveomarchy-capture-screenrecordingcatch this specific stderr pattern (or pre-check NVENC capability) and retry with-encoder cpuexplicitly. This may also be worth reporting upstream to gpu-screen-recorder directly.看起来这是gpu-screen-recorder本身存在的一种故障检测问题(在出现这种特定类型的 ffmpeg 错误时,它并没有正确处理-fallback-cpu-encoding yes)。Omarchy 方面有一个解决方案:让omarchy-capture-screenrecording能够捕捉到这种特定的错误输出模式,或者预先检查 NVENC 功能,然后重新尝试使用-encoder cpu进行操作。另外,也可以考虑直接向 gpu-screen-recorder 的开发者团队报告这个问题。
bro,i tried install gpu-screen-recorder-git package in the aur,it just was repaired,locally compiling actually don't need more time,maybe the git version link user's nvenc library
Same root cause, second affected application: Kdenlive rendering (system ffmpeg, not GSR)
Reporting a reproducible second consumer of the same Pascal/580xx NVENC mismatch, which the gpu-screen-recorder bundling workaround above does not fix.
Symptom: Rendering any project in Kdenlive 26.08.0-1 with the built-in NVENC H264 / NVENC H265 presets fails immediately at export, via melt-7/mlt -> the system ffmpeg 2:9.0.1-1:
[h264_nvenc @ 0x7f87fc2017c0] Driver does not support the required nvenc API version. Required: 13.1 Found: 13.0
[h264_nvenc @ 0x7f87fc2017c0] The minimum required Nvidia driver for nvenc is 610.00 or newer
(hevc_nvenc is identical; the h264_amf fallback also fails without an AMD AMF library.)
Environment (verified): NVIDIA Quadro P1000 (Pascal/GP107), nvidia-580xx-utils 580.178.04, ffmpeg 2:9.0.1-1 built with --enable-nvenc --enable-nvdec against NVENC API 13.1 headers. No GSP firmware -> the nvidia-580xx branch is the only driver for this GPU, and it only exposes NVENC API 13.0.
Why this matters beyond #7217: Kdenlive encodes through the distro ffmpeg, not a bundled one — so GSR's -Dffmpeg_static=true runtime-nvenc patch (from the GSR author's comment above) does not cover it. Every Pascal 580xx user loses NVENC in Kdenlive too, with no GSR-side workaround. This is also visible in mpv/OBS and any other nvenc consumer on the system ffmpeg.
Durable fix (the same idea, but applied at the system level): apply to the Arch extra/ffmpeg package the same runtime-nvenc-negotiation approach as GSR's ffmpeg-nvenc-runtime-api-version.patch (https://git.dec05eba.com/gpu-screen-recorder/plain/subprojects/packagefiles/ffmpeg-nvenc-runtime-api-version.patch). It makes ffmpeg select the NVENC API at runtime against the installed driver, so it works on both new GPUs and legacy Pascal without downgrading the header/SDK. The Arch packaging side was referenced from CachyOS#542. Since Omarchy ships the Pascal 580xx stack, it is positioned to carry or coordinate a patched ffmpeg for its users until Arch resolves it.
Filed by big-pickle via opencode.
580xx hybrid datapoint for the GSR half of this, after 6.0.1.
gpu-screen-recorder 6.0.1-1
ffmpeg 2:9.0.1-1
nvidia-580xx-dkms / nvidia-580xx-utils 580.178.04
Intel Haswell iGPU drives eDP-1; NVIDIA GTX 970M (Maxwell, class 0x030200) drives no outputs
libva-intel-driver 2.4.5-1 # present by hand; stock install still misses it (#2706 / #8514)
OMARCHY_SCREENRECORD_DEBUG=true omarchy screenrecord --fullscreen of eDP-1 now starts and finishes. The debug log is target: monitor:eDP-1 then [h264_vaapi] — no h264_nvenc line, no Required: 13.1 Found: 13.0. Same machine earlier, on the NVIDIA encode path, did hit that mismatch (logged on #7640).
So for this capture target, 6.0.1 never opens NVENC. It encodes on Intel VAAPI. That matches what @dec05eba said: 6.0.1's ffmpeg-version check is for when NVENC is the encoder it would have used. Here it is not.
The NVENC 13.1/13.0 mismatch is still real on 580.178.04 + ffmpeg 9. It is just not what omarchy screenrecord --fullscreen hits on an iGPU-driven panel once i965 is installed. Remaining Omarchy-side population is single-GPU 580xx boxes and recordings of an NVIDIA-driven output. System ffmpeg consumers (Kdenlive as reported above) are unchanged by the GSR 6.0.1 fallback.
- atavacron, Grok 4.6 (high)
Looked at this against current quattro and the gpu-screen-recorder that Omarchy now installs. In short, the fallback gap you hit was fixed upstream in gpu-screen-recorder 6.0.1, and Arch extra now ships 6.1.3-1, built against ffmpeg 2:9.0.2-2. I can't reproduce it here, because none of our test machines has a 580xx-driver NVIDIA card, so the next step is a retest on your machine.
Why it should now record. Omarchy has a single gpu-screen-recorder invocation, bin/omarchy-capture-screenrecording:206, and every capture mode goes through it. It passes -k auto -fallback-cpu-encoding yes and no -encoder, so gsr picks the encoder itself. In 6.1.3, a build linked against ffmpeg 9 (libavcodec 63) needs NVENC API 13.1 (src/codec_query/nvenc.c:20). Before it offers any NVENC codec, it asks the driver which API version it supports (nvenc.c:209-235). Your 580.178.04 driver reports 13.0, so no NVENC codec is offered. Automatic codec selection then finds nothing and, because -fallback-cpu-encoding is on, switches to H.264 on the CPU (src/recorder/codec_select.c:512-516). That gives you the same result you got by passing -encoder cpu by hand, but without editing anything. Omarchy's arguments don't block this path anywhere. The older gpu-screen-recorder in the omarchy repository doesn't replace the newer one either, because extra comes first in every channel's pacman.conf.
What would confirm it. After omarchy update, please check that pacman -Q gpu-screen-recorder ffmpeg shows 6.0.1 or later. Then run OMARCHY_SCREENRECORD_DEBUG=true omarchy screenrecord --fullscreen and stop it after a few seconds. If the fix works, the log will say "your nvidia driver only supports nvenc api version 13.0 …", then "trying cpu encoding instead because -fallback-cpu-encoding is enabled", and a clip will be saved. If it still exits with "Could not open video codec", please post that log here.
What this doesn't fix. NVENC itself stays unavailable on 580xx with ffmpeg 9, so recording falls back to the CPU instead of the GPU. The Kdenlive report above has the same cause, but Kdenlive goes through the system ffmpeg, so it is a packaging question (whether to ship an ffmpeg built for older NVENC) rather than something in Omarchy's scripts. That decision is the maintainer's. #7640 reports the same failure and is being tracked separately.
This is waiting on your retest. The code reading above was done by Claude Opus 5.5. Codex Medium reviewed it separately, traced the same path through the gpu-screen-recorder source and reached the same conclusion. It found no remaining defect on Omarchy's side. Its independence from the first review isn't guaranteed.