Skip to content

Stable release 0.1.7162

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 05:10
· 67 commits to main since this release
f507bf3

v0.1.7162

Stable release 0.1.7162 built and fully verified from f507bf3.

Highlights & Changes

Improved

  • Capture startup and release robustness: host GPU-load metrics now defer driver-state allocation until the first sample instead of allocating during static initialization. The low/high load snapping behavior is unchanged, startup no longer carries an uncaught static-initialization exception risk, and release packaging now finishes before a fatal lint result is propagated so the actual gate failure is reported accurately.

  • Hardware encoder open-failure trace diagnostics: when avcodec_open2 fails (including h264_amf, hevc_amf, av1_amf, Quick Sync, and NVENC), Capture Engine now flushes the bounded thread-local libav debug trace captured during the failed open (and includes the last line in encoder=auto probe rejections). This surfaces AMF's own internal property/init rejection lines (which FFmpeg's AMF trace writer logs at AV_LOG_DEBUG) without adding any log noise when opens succeed.

  • Reliable, responsive overlay GPU load reporting: replaced raw single-poll Windows PDH \GPU Engine reporting with a three-tier sampler and stabilizer. On NVIDIA GPUs (including multi-GPU systems, matched per adapter LUID via PCI bus and device), Capture Engine now integrates hardware PMU utilization samples directly from NVML (nvmlDeviceGetSamples with nvmlDeviceGetUtilizationRates fallback), measuring actual graphics/compute core activity instead of WDDM scheduler residency. This eliminates the 0%/100% jumping seen in high-FPS Direct3D 9 workloads under HAGS (Mirror's Edge) as well as inflated ~100% GPU load readings when FIFO V-Sync holds queued frames waiting on scanout. On non-NVIDIA GPUs (AMD, Intel) or when NVML is unavailable, Capture Engine reads adapter-wide WDDM node running times directly through D3DKMTQueryStatistics (excluding video encode/decode/OFA/JPEG engines), detects invalid PDH counter statuses instead of publishing false 0% readings, suppresses single-poll WDDM dropouts while confirming real idle drops on the next poll, and polls active targets every 500 ms to match the overlay's text refresh.

Changed

  • FFmpeg 9.1 stable: updated the bundled custom FFmpeg from the pre-release release/9.1 snapshot to the upstream n9.1 release tag (commit 74e4393595cf2b5857f0da925c4e0dd74ea306e5). The stable branch retains native AAC NMR coding and the project's seven local patches, so encoder quality, CFR timing, and audio/video synchronization behavior remain on the validated 9.1 codec path.

  • Cleaner default [AMF] config template: captureengine/config.ini.template now keeps the core AMF controls (usage, preset, qp, lookahead, spatial_aq, temporal_aq, aq_strength) active with accurate compatibility notes, and comments out advanced or streaming-only knobs (async_depth, preanalysis, preencode, high_motion_quality_boost, b_ref_mode, enforce_hrd, filler_data) whose defaults are already managed automatically. Existing config.ini files continue to parse all keys unchanged.

Fixed

  • FFmpeg corresponding-source packaging with release tags: fixed source-archive generation to resolve an annotated FFmpeg pin such as n9.1 to its peeled commit before checking the clean checkout. The archive manifest records both the tag and exact commit, preserving fail-closed provenance without rejecting the released source.

  • AMD AMF encoder option compatibility and failures: fixed several invalid option combinations that caused h264_amf, hevc_amf, and av1_amf to fail encoder initialization or stall:

    • Changed [AMF] preanalysis to default to auto (still accepting true/false/enabled/disabled for existing configs) so CQ/QVBR, HQVBR, and HQCBR rate-control modes automatically enable AMF PreAnalysis instead of explicitly forcing preanalysis=0.
    • Stopped emitting mutually exclusive encoder-side vbaq/aq_mode and high_motion_quality_boost_enable alongside PreAnalysis AQ/high-motion options, and explicitly emitted pa_lookahead_buffer_depth (raising to at least 1 when temporal AQ or PA high-motion boost is active, with pa_taq_mode=2 for DX11 gaming) so AMF's 11-frame usage default cannot deadlock a smaller async_depth.
    • Guarded incompatible combinations cleanly: disabled preencode, PreAnalysis, spatial_aq (including av1_amf aq_mode=caq), high_motion_quality_boost, enforce_hrd, and filler_data under CQP; restricted filler_data to CBR/HQCBR and preencode away from low-latency usages; rejected 10-bit/HDR CQ/QVBR/HQVBR/HQCBR up front while cleanly disabling optional PreAnalysis assists on 10-bit P010 input; and enforced AMF's 1-51 QVBR and 1-255 AV1 CQP lower bounds.
  • ReLimiter 4.0 and ReShade add-on compatibility: made Capture Engine coexist cleanly with ReLimiter 4.0 and other ReShade add-ons so frame pacing, Streamline frame generation handoff, and both overlays work together:

    • Step past peer threads whose kernel DACL explicitly denies suspend/context access (ThreadQuiescence on both NtGetNextThread and system-snapshot walks) so co-resident anti-freeze hook installer threads no longer block Capture Engine's inline/deep hooks.
    • Classify ReShade add-ons (.addon64 / .addon32 / .addon) as third-party overlay/add-on modules without inflating the tracked overlay count, keeping Capture Engine from patching their IAT or hijacking their GetProcAddress, nvapi_QueryInterface, and NvAPI_D3D12_SetFlipConfig lookups.
    • Preserve the real sl.dlss_g.dll / sl.reflex.dll / sl.pcl.dll function pointers returned by slGetFeatureFunction whenever Capture Engine's direct inline hook is active (and always for third-party overlay/add-on callers), so co-resident tools discover the real Streamline plugin image and chained entry hooks run.
    • Inline-hook native D3D12Core.dll / d3d12.dll ID3D12CommandQueue::ExecuteCommandLists and Signal instead of overwriting ID3D12CommandQueue vtable slots [10] and [14] in place, preserving the class vtable slots that ReLimiter 4.0's queue-based pacer and Streamline GPU handoff require.
  • Direct3D 10 startup crash: fixed a stack overflow when a Direct3D 10 application loads part of the graphics runtime after Capture Engine initializes its hooks.

  • Windows build self-tests with launcher-provided Git settings: fixed false failures in the repository privacy and release authentication tests when the launcher supplies Git configuration with an empty value.

  • Build self-tests after a denied process launch: finish independent suites and retry the denied launch once after the parallel batch. Persistent launch failures name the suite and OS error in the build report.

Release Assets

  • captureengine-0.1.7162.7z: core product binaries, PDBs, FFmpeg closure, and default configuration
  • captureengine-setup-0.1.7162.exe: graphical installer and uninstaller (shortcuts, startup, elevation service, optional PawnIO driver)
  • testapps-0.1.7162.7z: standalone graphics & frame generation test executables and diagnostic tools
  • ffmpeg-corresponding-source-0.1.7162.7z: complete LGPL corresponding source archive
  • latest_manifest.json / latest_summary.txt: full build and verification evidence

Distribution & Licensing

  • FFmpeg is distributed as shared libraries under LGPL-2.1-or-later; see bundled notices.
  • Binaries are verified with PE hardening checks (ASLR, DEP/NX, CFG) and are not Authenticode-signed.