Skip to content

obs-ffmpeg: NVENC device check and AMF load behind obs-ffmpeg-host.h (#853) - #2050

Merged
zackees merged 5 commits into
masterfrom
facade/853-ffmpeg-host
Oct 24, 2026
Merged

zackees merged 5 commits into
masterfrom
facade/853-ffmpeg-host

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Refs #853 (slice 3: obs-ffmpeg.c.h and its PCH).

  • obs-ffmpeg-host.h: obs_ffmpeg_host_nvenc_available(is_blacklisted), obs_ffmpeg_host_load/unload.
  • Windows host: DXGI adapter scan (moved verbatim), AMF load/unload under OBS_FFMPEG_AMF (CMake defines it with the x64 AMF sources, replacing !_M_ARM64).
  • Linux host: sysfs scan + libnvidia-encode.so.1 dlopen (as before). POSIX host (macOS/BSD): dlopen only (the old #else).
  • LIBAVUTIL_VAAPI_AVAILABLE moves from the PCH's !_WIN32 && !__APPLE__ block to a CMake definition for Linux/FreeBSD/OpenBSD (the platforms that build the VA-API groups); INITGUID/dxgi.h move to the Windows host PCH.
  • Own unity group + PCH per host; cross check entries; baseline entries for obs-ffmpeg.c.h and obs-ffmpeg.pch.h removed.

RED: b536786 adds test_obs_ffmpeg_host_{linux,posix} (Tier 2); it fails to build, the host files don't exist.
GREEN: next commit. Locally both pass; cmake/cross win-x64 and mac-arm64 compile. (Local test_deinterlace_2x_field_order failure is pre-existing on this machine, also on unrelated branches.)

Tiers 1/3/4 n/a (C restructuring, no behavior change).

@zackees
zackees enabled auto-merge October 24, 2026 04:42
@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Coordinator: this now conflicts with master in ci/platform-ifdef-baseline.json and cmake/cross/CMakeLists.txt, after #2039/#2042 landed. cmake/cross is build code, so the rebase is yours. Auto-merge is on, so it queues once it's rebased and green. (Same two files as #1993; I'm adding them to #1997.)

@zackees
zackees force-pushed the facade/853-ffmpeg-host branch from b8c62f5 to f3c1023 Compare October 24, 2026 05:14
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 24, 2026
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Merge queue run 40066825554 failed only on test_context_names (test_canvas_sources segfault), the known intermittent #2049; this PR doesn't touch libobs canvases. Requeued.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant