mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-10-30 09:16:55 +00:00
Use parseEncoderOptions from @hyperframes/studio-server in /render and /render/stream so the producer server takes the same crf, videoBitrate, videoFrameFormat and hdrMode as the studio render route, with the same rules and messages. crf and videoBitrate are forwarded to the render job and are ignored for mov; a bad value is a 400 (an SSE error event on the stream route). The studio-server package gains an encoder-options subpath export so the producer imports the helper instead of copying it. An hdrMode that disagrees with outputDynamicRange is still rejected, as before, so there is no precedence to resolve between the two. — Jerrai