FileMp4OutputSettings.incrementalWriteIntervalMs property
Maximum duration that the file is expected to last. This should be a conservative estimate according to the use case, so that you never expect to hit the limit, but there is some file size cost to a larger value (so if the file is going to be 10 seconds, setting 2 hours would be a bad idea).
Signature:
incrementalWriteIntervalMs?: number;