Commit Graph
9 Commits
Author SHA1 Message Date
Codex 654744fbce record: stream native HEVC and HDR over Enhanced RTMP
Select HEVC Annex B framing and advertise the actual encoder and optional AAC track during worker setup. Derive colorInfo from coded encoder metadata, preserving absent mastering/light values and the existing core HDR ABI. Keep packet/audio leases and bounded worker scheduling unchanged.

Allow native HEVC streaming in the frontend and use its smaller FLV packet limit. Cover admission/teardown contracts, real SDR/PQ/HLG GPU streams, wire color metadata and threaded/direct frontend streaming. Correct the native fixture to use the codec-specific packet bound.
2026-11-11 01:02:40 +01:00
Codex 2f6cdda706 record: stream native NVENC video and AAC over RTMP
Connect the I/O-owned publisher to borrowed encoder packets and direct native AAC input. Keep producer input pending until publish setup completes, schedule network readiness alongside GPU completion, and bound setup and final drain.

Cover packet lifetime and cancellation contracts, native socket wakes, and independent GPU/AAC receiver decoding. Preserve file recording and reject unsupported streaming formats explicitly.
2026-11-10 23:46:07 +01:00
Codex 35aeab84c3 record: honor cancellation during final GPU retirement
Recheck cancellation after capture retirement before publishing the final
state, preserving earlier errors. Gate capture release in the dispatcher
regression so cancellation at this boundary cannot report success.
2026-10-26 22:26:59 +01:00
Codex b35eb19c13 Preserve native recording channels through playback folds
Keep the original multichannel batch available to recording when playback uses the stereo fallback, without retaining it after the callback. Admit native AC-3 speaker masks up to six channels while preserving their positions.

Use the configured float hint before a device context exists, even if the audio active flag is already set. Add channel-identity and startup-format regressions plus native signed-PCM and negotiated-float acceptance.
2026-10-17 19:41:26 +02:00
Codex a86a67fdda Record stereo core audio with the native NVENC frontend
Enable optional AC-3 from the existing signed PCM recording path at 32, 44.1 and 48 kHz. Arm audio and video together after worker startup, preserve their shared clock, and fail on PCM backpressure or rate changes without blocking or dropping audio.

Let already queued video frames complete after normal stop so the audio tail stays aligned. Cover admission and retirement boundaries in portable tests and validate all codec/threading/rate combinations through the real frontend.
2026-10-17 19:06:39 +02:00
Codex 33e766ee40 Connect native D3D12 NVENC recording to the frontend
Expose an explicit video-only NVENC MP4 recording driver for SDR D3D12. Carry GPU capture and timestamps with direct or threaded video frames, then retire the owned capture asynchronously after queued frames release it. Defer startup until the viewport is ready and keep staged quit alive through finalization.

Add real frontend codec acceptance and frame-rate and wrapper lease regressions. Core audio and HDR admission remain unavailable in this mode.
2026-10-17 18:40:42 +02:00
Codex 9285db09db Let D3D12 recording dispatch own capture retirement
Transfer a fresh capture only on successful construction. Retire it on the I/O worker after producer closure and session teardown, preserving cancellation while GPU work drains.
2026-10-17 18:10:58 +02:00
Codex 1ec4bd61c9 Retain D3D12 capture sources through GPU completion
Keep submitted textures and source fences alive when callers release their own references, retaining replacements before retiring earlier leases of the same objects. Add nonblocking source retirement independent of encoder destination leases so swapchain owners can release completed references before resizing. Verify early caller release, replacement ordering, pool backpressure, wait failure and signal recovery against native GPU submissions.
2026-10-17 17:24:57 +02:00
Codex 90235d8113 Dispatch D3D12 recording sessions on a dedicated worker
Keep session startup and I/O retirement off render and audio paths. Register before rechecking input, wait on producer/completion events, and schedule SDK BUSY retries without polling an idle session. Preserve independent producer closure and nonblocking collection.

Exercise park races, concurrent producers, cancellation and composed session retirement on native Windows and the Linux scheduling shim under sanitizers.
2026-10-17 16:41:33 +02:00