mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 06:53:19 -10:00
VideoToolbox, openh264 and rav1e each kept every encoded sample in memory until the end, and the mux copied them all again: a 7-minute film's 1 GB. raea-io-codec's Samples writes each to an unlinked temp file as it comes out (delete-on-close on Windows) and remux::annexb_mux_from reads them back one at a time for the mux. The offline bounce fills each channel as the frames come, sized once from the frame count, instead of an interleaved copy of the whole sound split in two at the end.