Repository navigation
linux: OBS video filter (3D LUT, grade, sharpen, FXAA) - #96
Merged
Merged
Conversation
OBS owns capture, decode, composition and encode, so the Linux contribution is
the portable per-frame enhancement chain as an OBS video filter
(`veyra_filter`, shown as "Veyra Enhancement"). The Windows tree is untouched:
the root CMakeLists takes the WIN32 branch and only adds `linux/obs` elsewhere.
Chain: source -> 3D LUT -> colour grade -> FXAA -> sharpen -> output.
* 3D LUT: .cube parser (LUT_3D_SIZE 2..64, DOMAIN_MIN/MAX, red-fastest
ordering), uploaded as a volume texture with linear sampling; strength
0..100% blends against the ungraded colour.
* Grade: exposure -2..2 EV, contrast 0.5..2, saturation 0..2 (Rec.601 luma).
* FXAA: luma-directional, 5-tap cross + 2 diagonal taps, run on the graded
picture.
* Sharpen: 5-tap unsharp cross after AA so sharpened edges are not softened
back by the AA stage.
Effect compiled at create time inside obs_enter_graphics(); every stage is
driven by uniform parameters, so no pipeline is rebuilt at runtime.
Verified by recording 1080p30 through OBS 32.2.2 (RTX 3090, EGL/Wayland) with
synthetic sources and sampling the mkv: identity LUT passthrough (254,0,0),
invert LUT red->cyan (0,253,254), saturation 0 (75,75,75 = Rec.601 luma),
exposure -1EV (124,0,0), sharpen 1.0 on 1px stripes (96/166 -> 61/201), FXAA on
a diagonal edge (214 -> 171). Details in docs/OBS_FILTER.md.
Deliberately absent: NGX (DLSS SR/FG, RTX Video SR/HDR, DeepDVC, optical flow)
and the neural NR adapter have no public Linux SDK; capture/record/subtitles and
the node graph stay with OBS.
andreanjos
force-pushed
the
linux-port
branch
from
November 12, 2026 22:06
810066d to
719e2d8
Compare
Likely7
marked this pull request as ready for review
November 18, 2026 10:44
Likely7
added a commit
that referenced
this pull request
Nov 18, 2026
…ixes Integrates #140, #133, #127, #115, #99, #96 and #75 with their original heads; adopts #136 as source only to exclude DLL/LIB history. Preserves current virtual-camera, audio, replay and default settings. Windows product, 634 preset checks, 220 QtQuick cases, 256 RPU checks and Linux/Windows CI validated. See docs/PR_INTEGRATION_2026-11-18.md for evidence and untested hardware scope.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linux counterpart of the enhancement chain, as an OBS video filter. OBS already owns capture, decode, composition and encode, so this adds only the per-frame GPU work that is portable — no D3D12/COM/Win32 port needed.
Filter id
veyra_filter, shown as Veyra Enhancement. Add it to any source (video capture device, window/screen capture, media source).LUT_3D_SIZE2…64,DOMAIN_MIN/MAX, red-fastest ordering, volume texture + linear samplingVerified
Recorded 1080p30 through OBS 32.2.2 (RTX 3090, EGL/Wayland) with synthetic sources and sampled the mkv:
251, 0, 0254, 0, 00, 253, 25475, 75, 75124, 0, 061 / 201171(was214)Not ported, by API not by effort
NGX (DLSS SR/FG, RTX Video SR/HDR, DeepDVC, optical flow) and the neural NR adapter (
src/ngx/DlssNrRuntimeAdapter.cpp) have no public Linux SDK. Capture, recording, subtitles, presets and the node graph stay with OBS. SMAA/MLAA and FSR/XeSS are portable in principle but not implemented here.Build/install and the full mapping:
docs/OBS_FILTER.md.sudo cmake --install buildputs the module in/usr/lib/obs-plugins/veyra-filter.so.