FileMp4OutputSettings interface

Settings to control MP4 file output see NorskOutput.fileMp4()

Signature:

export interface FileMp4OutputSettings extends SinkNodeSettings<FileMp4OutputNode>, StreamStatisticsMixin

Properties

Property Type Description

audioEncryption?

EncryptionSettings

(Optional) Settings for encrypting the audio track.

enableIncrementalMp4Write?

boolean

(Optional) Enable "incremental" write mode of non-fragmented mp4 output file. This periodically updates the file header (the moov) to reflect the latest data that has been written, so that the file can be loaded/reloaded in some player while it is being written. You must set to ensure an appropriate space can be reserved for the header or the file will no longer update incrementally

expectedMaxFileDurationS?

number

(Optional)

fragmentedFileName?

string

(Optional) stream fragmented MP4 to this file.

httpFileName?

string

(Optional) Serve the fragmented MP4 from this filename

incrementalWriteIntervalMs?

number

(Optional) 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).

nonfragmentedFileName?

string

(Optional) Write non-fragmented MP4 to this file on close, creates a .tmp file to store the frame data.

videoEncryption?

EncryptionSettings

(Optional) Settings for encrypting the video track.