Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this case, record audio sample rate will be set to 48 kHz.

moov atom placement configuration in recording metadata

To play a recording file while downloading (progressive downloading), moov atom must be placed before mdat atom in recording metadata. To do this, the following default setting is added in latest builds

Code Block
themeRDark
mp4_container_moov_first=true

The place for moov atom can be reserved when recording file is created to optimize disk operations while saving the file. This feature can be enabled with the following parameter

Code Block
themeRDark
mp4_container_moov_first_reserve_space=true

A space size to reserve should be set in kilobytes with the following parameter

Code Block
themeRDark
mp4_container_moov_reserved_space_size=2048

By default, 2048 kilobytes will be reserved. Therefore, a recordinbg file size will not be less than reserved space if moov atom reservation is enabled, this must be taken into account while setting up record rotation by size.

Audio track bitrate configuration for FDK AAC codec

Since 5.2.428, the ability is added to set audio track bitrate mode for recording with FDK AAC codec. By default, mode 5 is set (VBR 112 kbps). This value can be changed with the following parameter

Code Block
themeRDark
record_fdk_aac_bitrate_mode=5

The following bitrate modes are possible:

  • 0 - CBR
  • 1-5 - VBR

Note that recording files playback by file timestamps using nginx module ngx_http_mp4_module is possible for VBR recordings only.

Client side

If stream recording is enabled on the server, whether the stream is recorded or not is determined by the value of record parameter passed into the createStream function in the script of the publisher client:

...