Quitting a capture-card session crashed (SIGSEGV in _convert_gpu) in 3 of 4
runs: the card and CUDA were torn down under an NVDEC decode in flight. close()
now joins the reader first. 6 of 6 clean quits after the fix.
Measured on the GC311, 60 fps out, game locked 30: arrival->presented p50
20.3 ms (p99 24.8) with RTX VSR, the same with FSR 1.
- scripts/linux/smoovplay-capture.sh: fullscreen on SMOOVPLAY_MONITOR (default
HDMI-A-2), log in ~/.cache/smoovplay/last-run.log, notification on failure
- scripts/linux/install-desktop-entry.sh: 'SmoovPlay (capture card)' entry
- verified launching through KDE (kioclient exec) on the RTX 5080 box
- vfg_setup: pin the Linux nvidia-vfx 0.2.0.0 wheel's own sha256
- io: on Wayland fullscreen is the compositor's (a program can't place its own
window); --monitor NAME / SMOOVPLAY_MONITOR picks the output (e.g. DP-4)
- Verified on the RTX 5080: GC311 -> RIFE 120 Hz -> RTX VSR q4 to 4K, fullscreen
on DP-4
A GC311 (MJPEG) with GTA VI locked at 30 fps read as ~50 fps: its repeats
differ by a block max of 2.0-2.5, over the fixed threshold of 2, so most were
called new and almost nothing was interpolated. MJPEG/H.264 cards now learn the
line between repeats and new frames from the block max (DuplicateDetector
learn_on=max, ratio 2.5). Live on the GC311: N.N.N... -> 33 fps (was 50).
- framegen/capture_linux.py: devices via VIDIOC_QUERYCAP (/sys/class/video4linux),
formats via ENUM_FMT/FRAMESIZES/FRAMEINTERVALS -> capture.Mode, ALSA cards from
/proc/asound, busy/permission errors in plain words (names the app holding it)
- capture.CardSource: Linux opens video4linux2 + alsa as two inputs, sound on its
own thread; needs PyAV built against system FFmpeg (--no-binary av)
- PyAV's bundled libasound: point ALSA_CONFIG_PATH at the system config
- winutil: nice -10 via rtkit MakeThreadHighPriorityWithPID instead of SCHED_RR
(RLIMIT_RTTIME got the process SIGKILLed during startup); '--' before args
- Verified on the GC311: 1080p60 MJPEG via NVDEC, 62 fps, 0 dropped, sound in sync
- docs/linux-port/target.md: sm_120 native, RIFE 1080p 6.9 ms (PyTorch fp16),
NVDEC 0.61 ms, CUDA->GL on Wayland 0.18 ms, GC311 = 1080p60 MJPEG/H.264
- winutil: rtkit MakeThreadRealtimeWithPID (busctl is another process) and
lower the hard RLIMIT_RTTIME to rtkit's max; SCHED_RR 10 verified
- linux_spike: time the matmul with CUDA events
- frame tap: window_request word (offset 100, feature bit 32): SmoovPlay asks
chiaki-ng to minimise/restore its own windows (Wayland forbids doing it from
outside); run.py uses it on Linux. Covered by chiaki_tap/selftest.py
- chiaki_tap/PKGBUILD (chiaki-ng-smoovplay, v1.10.1) + build_linux.sh; built in
an archlinux:latest container (needs system curl: the bundled one fails with
Arch's OpenSSL)
- scripts/linux_spike.py: Phase 0 checks in one command
- docs/linux-port: progress log, QUICKSTART
- framegen/oslayer.py: config/cache/Videos folders (XDG on Linux, unchanged on
Windows), the frame tap's clock (CLOCK_MONOTONIC ns, qpc_freq 1e9) and its
shared memory (/dev/shm, mode 0600) with a futex wake-up
- frame tap (chiaki_tap/frametap.c, framegen/chiaki_tap.py, docs writer):
Linux backend; layout unchanged apart from a wake word at offset 96 behind
feature bit 16. Windows code path unchanged (cross-compiled with mingw)
- looks: LUT names and look ids lose folders on every OS. On Linux a shared
look code could carry ..\\..\\x.cube through Path.name untouched
- Windows-only modules import on Linux (WINFUNCTYPE stand-in)
- winutil.boost_thread: SCHED_RR 10 (direct or via rtkit) on Linux
- glcuda: finds libcudart.so from torch's nvidia wheels
- tests: frame tap tests run on Linux; tests/test_oslayer.py
pytest on Linux (CPU torch): 370 passed, 0 failed (was 328 passed, 6 failed).
chiaki_tap/selftest.py passes on Linux (C writer vs Python reader).
Baseline on Linux (CPU torch): 328 passed, 6 failed, 33 skipped.
Maps every Win32 dependency to a Linux replacement, phases 0-9 with
measured gates, risks and open questions.