Versions Compared

Key

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

...

ElementDescriptionMaximum size
{streamName}Stream name
{duration}

File duration, for MP4 recordings only. The value is taken from mvhd (movie header) atom of recording metadata.


{startTime}Recording start time20 characters
{endTime}Recording end time20 characters
{sessionId}Session ID in BASE64 encoding60 characters
{mediaSessionId}Media session ID36 characters
{login}Login32 characters
{audioCodec}Audiocodec4 characters
{videoCodec}Videocodec4 characters

...

In this case recording fragments are not numbered and will be named exactly as template sets. If template does not provide unic names, old fragments may be overwritten.

Recording start time, end time and duration time calculation

Sinca build 5.2.458, recording start taime, end time and duration time are calculated by stream frames time stamps. note that RTMP stream timestamps are always starting from 0, but WebRTC publisher usually sets full time stamp by its own clock for ever frame.

To calculate recording times more preciosly, audio data should be buffered to keep synchronization. To do this, the following parameter is added

Code Block
themeRDark
record_audio_buffer_max_size=100

By default, audio buffer size is set to 100 packets.

Record files handling script

...