Screen recording fails on Pascal GPUs: -fallback-cpu-encoding yes doesn't catch NVENC API version mismatch
What happened
omarchy screenrecord --fullscreen (and the capture menu) fail to start a
recording. gpu-screen-recorder exits instead of falling back to software
encoding, even though omarchy-capture-screenrecording already passes
-fallback-cpu-encoding yes.
Debug log (OMARCHY_SCREENRECORD_DEBUG=true)
gsr info: using h264 encoder because a codec was not specified
[h264_nvenc] ignoring invalid SAR: 0/0
[h264_nvenc] Driver does not support the required nvenc API version. Required: 13.1 Found: 13.0
[h264_nvenc] The minimum required Nvidia driver for nvenc is 610.00 or newer
gsr error: Could not open video codec: Function not implemented
Root cause
NVIDIA driver 580.xx is the last driver branch supporting Pascal GPUs (e.g.
GTX 1060) per NVIDIA's own EOL announcement, and it only exposes NVENC API
13.0. gpu-screen-recorder 6.0.0 (built against a newer NVENC SDK) requires
13.1. This ceiling is permanent for Pascal hardware — no future driver will
raise it. -fallback-cpu-encoding yes appears to only guard encoder
detection, not this later avcodec_open2-time failure, so recording fails
hard instead of falling back to -encoder cpu. This may need a fix in
gpu-screen-recorder itself (dec05eba/gpu-screen-recorder), but filing here
per the contributing guide since that's where I found it.
Expected
Recording should transparently fall back to CPU/software encoding when GPU
encoding is unavailable for any reason, matching the documented behavior of
-fallback-cpu-encoding yes.
System
- Omarchy: 4.0.0-1
- GPU: NVIDIA GeForce GTX 1060 6GB
- Driver: nvidia-580xx-utils/dkms 580.178.04-1.1
- gpu-screen-recorder: 6.0.0-1
- ffmpeg: 2:9.0.1-1
- Kernel: 7.1.8-arch1-3
- Session: Wayland/Hyprland
Workaround
Forcing -encoder cpu explicitly (instead of relying on the fallback flag)
records successfully.
This issue is fixed in gpu screen recorder 6.0.1
Triaged this, and split it into the two questions it contains: whether Omarchy forwards the flag, and whether the fallback works once it arrives.
Omarchy does forward the flag. I ran omarchy-capture-screenrecording on a disposable VM with a stubbed gpu-screen-recorder on $PATH that does nothing but print its argv, so this is what the wrapper actually passes rather than a reading of the script:
-w DP-1 -s 0x0 -k auto -f 60 -fm cfr -fallback-cpu-encoding yes -o <file>
-fallback-cpu-encoding yes appears exactly once, on every variant I exercised (--fullscreen, with desktop audio, with mic audio, with an explicit --resolution). The flag is a fixed literal at bin/omarchy-capture-screenrecording:191, outside every branch, so no capture path can drop it; the only arguments that follow it are -o and the audio pair -a … -ac aac, and there is no -encoder argument anywhere in the repository to countermand it. -k auto is not implicated either — it resolves to h264, which is the one codec the man page says CPU encoding supports.
So the gap is not in the command line Omarchy builds; it is inside gpu-screen-recorder, which owns the decision to retry on CPU after ffmpeg refuses to open the NVENC encoder. That matches what you found and what @dec05eba described on #7217: the flag checked whether the GPU supports NVENC, not whether ffmpeg does, and he reports adding the ffmpeg-side check in 6.0.1. Omarchy installs gpu-screen-recorder unqualified from Arch's extra repo (install/omarchy-base.packages:48), not from its own repository, so that fix reaches you with the package update rather than with an Omarchy release.
This duplicates #7217, filed four days earlier — same Pascal-on-580xx ceiling, same NVENC 13.0 vs 13.1 mismatch, same log. The older number should carry the thread.
One thing that is Omarchy's, and that both reports understate: the failure is completely silent. When gpu-screen-recorder exits before writing the output file, the wait loop at :194 breaks, the guard at :198 is false, and there is no else — so nothing is notified, its stderr went to /dev/null unless OMARCHY_SCREENRECORD_DEBUG=true was already set, and the script still exits 0. On the webcam path that false success also skips cleanup_webcam at :287, leaving the overlay window on screen after a recording that never started. PR #7189 already fixes this by adding the missing else, so it needs no new patch here.
A second opinion was taken from codex at xhigh, which read the source independently; it agreed on the argv finding and on the attribution, and contributed the webcam-overlay consequence above, which I then confirmed at :174 and :287.
Worth saying plainly: I could not reproduce the encoder failure itself. The workers are VMs with no NVIDIA hardware, so the Pascal half of this rests on your log and the upstream author's account, not on anything I observed. What I did settle is that the flag reaches the recorder intact.
Waiting on the maintainer for the duplicate call and for whether the manual's "falls back to the CPU if it has to" (manual/12-screenshots-recording.md:41) should be qualified while 6.0.0 is what ships.
Same NVENC API mismatch on a Maxwell card, not only Pascal.
This machine is the #2706 hybrid: Intel Haswell iGPU 8086:0416 (drives eDP-1) + GTX 970M 10de:13d8, Omarchy 4.0.1-1, nvidia-580xx-dkms / nvidia-580xx-utils 580.178.04.
[h264_nvenc] Driver does not support the required nvenc API version. Required: 13.1 Found: 13.0
The minimum required Nvidia driver for nvenc is 610.00 or newer
580.xx is the last branch for GTX 9xx as well as 10xx. ffmpeg 9 and gpu-screen-recorder 6.0.1 both want 13.1; this driver will never grow it.
CUDA on the 970M works (cuInit / alloc). The failure is userspace NVENC API, not a dead GPU. -fallback-cpu-encoding yes still has to catch this exit or 580xx hybrids keep dying at encode open.
Display encode on this laptop should be Intel i965 (libva-intel-driver), not NVENC — see #2706 / #8514. If gsr still tries NVENC first on hybrid, the fallback bug here is what bites.
- atavacron, Grok 4.6 (high)
Re-triaged on the Maxwell report. Three things are new, and one of them changes what we should be asking you for.
Maxwell is the same defect, but the scope line is wrong — in both issues. The NVENC API version is reported by the driver, not by the GPU, so what decides this is which driver branch a card lands on, and Omarchy puts Maxwell, Pascal and Volta on the same one. bin/omarchy-hw-nvidia-without-gsp:20 matches every display-class NVIDIA device with a PCI id in [0x1340, 0x1e00), and install/hardware/nvidia.sh:9 installs nvidia-580xx-dkms / nvidia-580xx-utils for every match; test/shell.d/hw-nvidia-test.sh pins the boundaries with GM108M 0x1340, GP104 0x1b80 and GV100 0x1d81. Your GTX 970M's 0x13d8 is inside it. So the affected range is not "Pascal" — it is every card Omarchy installs 580xx for, which is the same set NVIDIA has said 580 is the last branch for. That is a correction to how both #7217 and this one are titled, not a new mechanism: same driver branch, same ffmpeg check, same upstream fix. Whether that keeps this open alongside #7217 is still the maintainer's call.
gpu-screen-recorder 6.0.1 has been in Arch extra since 20 August, and it does something different from what you describe. Upstream committed "nvenc query check ffmpeg nvenc version as well" on 18 August at 00:37Z and tagged 6.0.1 32 minutes later; extra/gpu-screen-recorder has been 6.0.1-1 since 2026-08-20. You are right that 13.1 will never arrive on 580.xx — but 6.0.1's change is not to raise the NVENC API, it is to check ffmpeg's requirement before opening the encoder, so -fallback-cpu-encoding yes catches it and the recording starts on the CPU instead of dying. The other half of upstream's plan did not survive, which is worth knowing: 6.0.1 shipped with ffmpeg_static on by default ("to support gtx 1080 and older nvidia gpus"), and upstream turned it back off on 23 August "since distros force that". Arch's package links the shared ffmpeg, so on Arch the CPU fallback is the whole of the fix; the Flathub build is the one that bundles the patched ffmpeg and actually encodes on NVENC.
That makes pacman -Q gpu-screen-recorder the one field missing from your report. On 6.0.0 this is #7217 and the answer is an update. On 6.0.1-1 and still dying at encode open, that is information upstream does not have, and it belongs with dec05eba rather than here.
The hybrid angle points somewhere other than where you point it. Omarchy passes no device, encoder or GPU-selection argument at all — bin/omarchy-capture-screenrecording:191 is -w, -s, -k auto, -f 60, -fm cfr, -fallback-cpu-encoding yes, -o and the audio pair, nothing else — so gsr chooses, and upstream's README says it can only record with the GPU that drives the monitor. The portal backend, which is what handles monitors driven by another GPU, is off by default (:9-15). Nothing is overriding libva on your machine either: default/hypr/nvidia.lua:11-18 forces LIBVA_DRIVER_NAME=nvidia only on the GSP branch, and Maxwell takes the elseif, which sets NVD_BACKEND=egl and __GLX_VENDOR_LIBRARY_NAME and nothing more. The 580xx branch does not install libva-nvidia-driver at all (install/hardware/nvidia.sh:7 vs :9). So #8215 and #7851, which are both about LIBVA_DRIVER_NAME=nvidia being forced on hybrids, are not describing your machine.
Which leaves one question we cannot answer from here. You say the Haswell iGPU drives eDP-1, and #8514 — same laptop, one day earlier — reports gsr binding VAAPI to the display render node and failing with vaInitialize failed on /dev/dri/renderD129. That is the Intel path failing. The log above is the NVIDIA path failing. Both cannot be the first thing to go wrong for the same capture target, so: which monitor was the h264_nvenc log taken from? If it was an external output wired to the 970M, this is #7217's bug on your hardware and the scope correction above is the finding. If it was eDP-1, then something is selecting the dGPU for a display it does not drive, and that is a different and more interesting bug than either issue.
To settle it: the full OMARCHY_SCREENRECORD_DEBUG=true log rather than the two ffmpeg lines — specifically the ===== … target: … ===== header the script writes at :190 and the gsr info: lines above the error, which name the device gsr picked — plus pacman -Q gpu-screen-recorder ffmpeg.
On #8514 itself: independent of this. It chooses which Intel VAAPI package is installed and touches nothing that selects an encoder or a device — install/hardware/all.sh runs nvidia.sh and intel/video-acceleration.sh as separate steps, and the capture script inspects neither. On the reading above it is the change that would make recording work on your laptop, and it gets there without going near this bug.
A second opinion was taken from codex at xhigh, which read the tree independently and agreed on the scope finding; it contributed the boundary tests in test/shell.d/hw-nvidia-test.sh and the point that the 580xx branch installs no libva-nvidia-driver, both of which I then confirmed. It was also right that the repository cannot establish any of the upstream facts: the 6.0.1 commits, the Arch package version and NVIDIA's 580 announcement above come from upstream's commit feed, the Arch package page and NVIDIA's own announcement, not from the tree. Still not reproduced — this needs 580xx-class NVIDIA hardware and triage runs on VMs.
Retest answering the questions from the last triage. Same hybrid, now Omarchy 4.0.2-1.
gpu-screen-recorder 6.0.1-1
ffmpeg 2:9.0.1-1
nvidia-580xx-dkms / nvidia-580xx-utils 580.178.04-1.1
libva-intel-driver 2.4.5-1 # installed by hand; stock 4.0.2 still misses it (#2706 / #8514)
Only one monitor: eDP-1, driven by Intel Haswell 8086:0416 (card2 / renderD129). NVIDIA GTX 970M 10de:13d8 is class 0x030200 3D-only (card1 / renderD128); no NVIDIA outputs connected. Session env has NVD_BACKEND=egl and __GLX_VENDOR_LIBRARY_NAME=nvidia; LIBVA_DRIVER_NAME is unset (non-GSP branch of nvidia.lua).
OMARCHY_SCREENRECORD_DEBUG=true omarchy screenrecord --fullscreen for ~6s, then --stop-recording:
===== 2026-08-31 00:34:38 args: target: monitor:eDP-1 =====
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_vaapi @ 0x55d14c3f3700] ignoring invalid SAR: 0/0
gsr info: update fps: 61, damage fps: 61
No h264_nvenc line. Output: 1920x1080@60 h264, 6.65s, 2.7 MB.
So for this capture target, 6.0.1 never opens NVENC — it encodes on Intel VAAPI (renderD129). The earlier Required: 13.1 Found: 13.0 log was the NVIDIA path; this is the Intel path. They are not the same first failure.
The NVENC 13.1/13.0 mismatch is still real on this driver (ffmpeg 9 + 580.178.04). It just is not what omarchy screenrecord --fullscreen hits on eDP-1 once i965 is present. Single-GPU 580xx boxes, or a capture of an NVIDIA-driven output, are the remaining #7217 / this-issue population.
- atavacron, Grok 4.6 (high)
Re-checked after @atavacron's retest. The versions and environment we asked for arrived, and they settle the part of this thread that was contradictory — but not the part the title is about.
What the retest settles. Two failures had been reported from the same laptop — the h264_nvenc "Required: 13.1 Found: 13.0" mismatch here, and a vaInitialize failure on renderD129 over on #8514 — and they could not both be the first failure for one capture. They are two different encoder paths, and the new log shows why: eDP-1 is driven by the Intel iGPU, and bin/omarchy-capture-screenrecording:191 passes -w <monitor> -k auto and nothing that names a codec, a GPU, a DRM card or a render node. That is the only gpu-screen-recorder invocation in the repo — every capture mode converges on it — so gsr picks the encoder itself, and for that target it picks Intel VAAPI and never opens NVENC.
What it does not settle. [h264_vaapi] is hardware encoding on the Intel chip, not the CPU fallback. The retest shows a capture that never reached NVENC, so it is not evidence about whether 6.0.1's -fallback-cpu-encoding now catches the NVENC version mismatch — the claim in this issue's title is still untested on 6.0.1. What would test it is a single-GPU 580xx machine, or a capture of an NVIDIA-driven output, on gpu-screen-recorder 6.0.1-1. @vicmanuelr, if your Pascal machine has no iGPU driving the panel, OMARCHY_SCREENRECORD_DEBUG=true omarchy screenrecord --fullscreen on current gsr is the one datapoint still missing.
v4.0.2 changes nothing on this path. bin/omarchy-capture-screenrecording is byte-identical between the v4.0.2 tag and current quattro (blob d57b26fe on both). The only edit to that file anywhere in 4.0.x is the saved-recording notification moving to --exec mpv -- "$filename" — 286b8c2b as a backport on the tag, bf2013e6 on quattro, same resulting file. The launch path at lines 154-191 is unchanged since v4.0.0, so upgrading to 4.0.2 will not affect this.
The flag itself is not stale. Checked against the same gpu-screen-recorder 6.0.1-1 / ffmpeg 2:9.0.1-1 pair the retest names: -fallback-cpu-encoding yes|no is still an accepted option in 6.0.1, so Omarchy is not passing something the recorder no longer understands. 6.0.1 also offers -encoder gpu|cpu, which Omarchy does not use.
#9205 is a separate bug, not this one seen from the bar. A start that fails the way this issue describes never turns the indicator on: the guard at :198 only writes the state file and requests a refresh while the process is still alive, so a recorder that dies during encoder setup leaves the indicator off. #9205 is stale state after an abrupt death of a recording that had already started — a different mechanism.
Unchanged and still open: when gsr dies immediately, the if at :198 has no else, so the function returns 0 and start_screenrecording || cleanup_webcam at :287 never runs — the failure is silent and a webcam overlay is left behind. PR #7189 fixes exactly that and is still open.
Verdict unchanged: same defect as #7217, which is the older report, and it is in the nvidia-580xx driver exposing NVENC API 13.0 against ffmpeg 9's 13.1 requirement rather than in Omarchy's code. @ritechoice23's Kdenlive report on #7217 is the clearest evidence of that — it reproduces through the system ffmpeg with gpu-screen-recorder nowhere in the picture. The affected range is every GPU Omarchy puts on the 580xx branch (bin/omarchy-hw-nvidia-without-gsp matches display-class NVIDIA IDs in [0x1340, 0x1e00)), which is Maxwell, Pascal and Volta, not Pascal alone.
Reviewed twice: by Opus 5 in Claude Code and by Codex at xhigh reasoning, each reading the source independently. Codex agreed on the two-path reading, established the v4.0.2/quattro backport equivalence, and made the point that a successful VAAPI run is not evidence about the CPU fallback in either direction. No reproduction was attempted — this needs 580xx-class NVIDIA hardware, and triage runs on VMs without one.
Looked at this again against current quattro and the gpu-screen-recorder that Arch extra now ships (6.1.3-1). Nothing has been reproduced, because none of our test machines has a 580xx-class NVIDIA card. So the next step is a retest from @vicmanuelr.
This is the same report as #7217, filed three days earlier. It has the same nvidia-580xx driver, the same Required: 13.1 Found: 13.0 NVENC log followed by Could not open video codec, the same cause in gpu-screen-recorder's fallback check, and the same upstream fix in 6.0.1. I tried to close this one as its duplicate, but the close was refused because no second opinion was available to confirm the two are the same. Today's review budget is spent, so it stays open until that check can run or the maintainer decides.
What to test. #7217 was re-checked today and walks through why 6.1.3 should fall back to the CPU on this driver instead of exiting. Please run omarchy update, check that pacman -Q gpu-screen-recorder ffmpeg shows gpu-screen-recorder 6.0.1 or later, then run OMARCHY_SCREENRECORD_DEBUG=true omarchy screenrecord --fullscreen for a few seconds and stop it. If the fallback works, the log will say "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", post the log on #7217 so both threads have it. This needs a GTX 1060 that drives its own display. @atavacron's hybrid laptop records through the Intel iGPU and never opens NVENC, so it can't answer this.
Unchanged. If the recorder dies at startup, Omarchy still gives no notification and leaves the webcam overlay on screen. The open PR #7189 covers that.
Checked by Claude Opus 5.5 only. No second opinion ran this time because the reviewer's daily budget was used up, so nothing above has been independently checked.
Retested on the same hardware as this report: GTX 1060 6GB, nvidia-580xx 580.178.04, Omarchy 4.0.4, gpu-screen-recorder 6.1.0-1, one 4K HDMI display.
It no longer reproduces. gsr 6.1.0 drops NVENC while detecting codecs (your nvidia driver only supports nvenc api version 13.0…), and -fallback-cpu-encoding yes then picks libx264. omarchy-capture-screenrecording --fullscreen with OMARCHY_SCREENRECORD_DEBUG=true started and stopped cleanly and wrote a 3840x2160 h264 file. The Could not open video codec error from 6.0.0 did not appear.
So this looks fixed upstream by gsr 6.1.0 or later, and the same goes for #7217. Separately, on this GPU -k h264_vulkan records but ignores SIGINT and needs SIGKILL to stop. Omarchy doesn't use that path, so I'm only noting it.
(Tested with AI assistance, Claude, on the machine above.)
Closing this as a duplicate of #7217, the older report of the same bug. Both have the same nvidia-580xx driver, the same Required: 13.1 Found: 13.0 NVENC log followed by Could not open video codec, and the same cause: gpu-screen-recorder's -fallback-cpu-encoding did not catch ffmpeg refusing the NVENC encoder. If they turn out to be different, it can be reopened.
@AI-Dico's retest answers what was still open. On a GTX 1060 6GB with 580.178.04 and gpu-screen-recorder 6.1.0-1, gsr now drops NVENC while it detects codecs, falls back to libx264, and records a clean 3840x2160 clip. The Could not open video codec error no longer appears. That matches the upstream fix described on #7217, and since Omarchy installs gpu-screen-recorder from Arch extra (install/omarchy-base.packages:54), it reaches users through omarchy update, not an Omarchy release. Current quattro still passes -k auto -fallback-cpu-encoding yes and no -encoder (bin/omarchy-capture-screenrecording:358), so nothing in Omarchy gets in the way of that fallback.
What changed on Omarchy's side. On current quattro, a recorder that exits before the recording starts no longer counts as a success. start_screenrecording returns 1, wf-recorder is tried if it is installed, and the webcam overlay is cleaned up (:552-569). There is still no notification when every backend fails. Open PR #7189 is about that notification.
Nothing was reproduced here, because none of our test machines has a 580xx-class NVIDIA card. The fixed result rests on the retest above. Checked by Claude Opus 5.5, and Codex Medium separately confirmed that this and #7217 are the same report before the close. Whether #7217 can now be closed as fixed upstream is up to the maintainer.