mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 07:50:13 +00:00
`canEncodeWhileCapturing` started an H.264 export beside the capture workers whenever `workerCount < cpuCount`, but `appendSoftwareEncoderThreadsArg` gave the encoder every usable core, so the overlap spawned a full-width x264 pool next to the capture workers (#7458). The overlap now reserves the cores capture is using: `softwareEncoderThreads = max(1, cpuCount - workerCount)` travels through the streaming encoder options to ffmpeg's `-threads`, while the post-capture encode keeps the old default.