...
Element | Description | Maximum 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 time | 20 characters |
{endTime} | Recording end time | 20 characters |
{sessionId} | Session ID in BASE64 encoding | 60 characters |
{mediaSessionId} | Media session ID | 36 characters |
{login} | Login | 32 characters |
{audioCodec} | Audiocodec | 4 characters |
{videoCodec} | Videocodec | 4 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 | ||
---|---|---|
| ||
record_audio_buffer_max_size=100 |
By default, audio buffer size is set to 100 packets.
Record files handling script
...