Skip to content

obs-ffmpeg: muxer output host code behind obs-ffmpeg-mux-host.h (#853) - #2023

Merged
zackees merged 3 commits into
masterfrom
facade/853-mux-host
Oct 24, 2026
Merged

zackees merged 3 commits into
masterfrom
facade/853-mux-host

Conversation

@zackees

@zackees zackees commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Refs #853 (slice 1 of 4: obs-ffmpeg-mux). Same pattern as #882.

  • ffmpeg_mux_host_exe_name(): obs-ffmpeg-mux.exe on Windows, obs-ffmpeg-mux elsewhere (was the FFMPEG_MUX macro).
  • ffmpeg_mux_host_warn_defender(): true on Windows 10 and later (get_win_ver), false elsewhere. It decides whether "unable to write" errors add the Defender hint.
  • util/windows/win-version.h moves from the shared mux PCH to the Windows host's PCH.
  • Each host lives in obs-ffmpeg-mux-host-{windows,macos,posix}.c.h with its own unity group and PCH. cmake/cross compiles the Windows and macOS hosts.
  • Baseline: obs-ffmpeg-mux.pch.h (1) and obs-ffmpeg-mux.c.h (2) go to 0.

RED (first commit): test_obs_ffmpeg_mux_host_{macos,posix} (Tier 2) fail against the stub hosts. The Windows host includes win-version.h, so the cross check compiles it rather than a Linux test.
GREEN: ./lint passes (ifdef ratchet included) and ci/test_cross_sources.py passes. Local: both new tests pass and cmake/cross/docker.sh win-x64 mac-arm64 exits 0. Local Tier 2 also failed two deinterlace tests (test_deinterlace_pacing_steps, test_deinterlace_2x_field_order) that this PR does not touch; #1995 changed both and passed CI, so the local build tree was stale. PR CI is authoritative here.

Tiers 1/3/4 do not apply (C build-structure refactor, no behavior change).

obs-ffmpeg-mux-host.h with stub Windows/macOS/POSIX hosts in per-OS unity
groups; test_obs_ffmpeg_mux_host_{macos,posix} fail against the stubs.
The helper's executable name and the Windows Defender hint move into
obs-ffmpeg-mux-host-{windows,macos,posix}; win-version.h leaves the mux
PCH for the Windows host's. The cross check compiles the Windows and macOS
hosts. Baseline: two obs-ffmpeg entries (3) to 0.
@zackees
zackees force-pushed the facade/853-mux-host branch from 8f742b1 to 14d050f Compare October 24, 2026 02:03
@zackees
zackees marked this pull request as ready for review October 24, 2026 02:19
@zackees
zackees enabled auto-merge October 24, 2026 02:19
)

test_encoder_error_stop, test_ffmpeg_mux_unwritable_path,
test_output_filename_reserve and test_replay_buffer_pause_stop compile
obs-ffmpeg-mux.c directly; they now also compile its POSIX host, the way
#1625 added the VST host's include path. The test sources are unchanged.
@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

CI caught a link failure: four existing Linux tests (test_encoder_error_stop, test_ffmpeg_mux_unwritable_path, test_output_filename_reserve, test_replay_buffer_pause_stop) compile obs-ffmpeg-mux.c directly and now need its host. Their tests.d build files add build/obs-ffmpeg.mux-host-posix+.h.c, the same kind of build-wiring change #1625 made for the VST host. The test sources and assertions are unchanged.

@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 46a8288 Oct 24, 2026
33 checks passed
@zackees
zackees deleted the facade/853-mux-host branch October 26, 2026 15:43
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