This PR makes Muxer.Isom use File.SeekEvent to avoid storing whole MP4 in memory until the end of stream.
In comparison to the previous implementation, we send ftyp box and empty mdat header right away, then we can forward chunks as they are ready. On end of stream, we use seek event to overwrite mdat header with the proper box size.
This PR makes
Muxer.Isom
useFile.SeekEvent
to avoid storing whole MP4 in memory until the end of stream. In comparison to the previous implementation, we sendftyp
box and emptymdat
header right away, then we can forward chunks as they are ready. On end of stream, we use seek event to overwritemdat
header with the proper box size.