SFU recording can be used to save audio/video calls for offline viewing. SFU recording supports both individual and composite recordings.
Types of SFU recording
Media for each peer is provided as a separate mp4 file. This file will have both audio and video of the peer. These files can be used for offline review or in implementing custom composition.
Audio and video of all peers is composed as per their joining/leaving the meeting and provided as a single mp4. This file can be used for offline viewing of the meeting.
How to enable SFU recording
There are two ways to enable SFU recording for a room.
First way (recommended)
This requires two steps-
Provide upload info in the template and enable the SFU recording.
Autofor recording while creating a room.
Autofor recording will make room's recording settings depends on template. That means -
- Enabling/Disabling SFU recording in template will also enable/disable it for the room.
- Changes made in upload settings in template, will also be reflected for the room.
Another way to enable SFU recording for a room is to choose
Enabled for recording settings while creating it.
Enabled/Disabled explicitly for recording while creating a room, will make the recording settings in room not depend on template.
- Enabling/Disabling SFU recording in template will have no effect this template.
- Room will have its own upload info. By default, they will be uploaded to 100ms storage. More on this below.
Uploading destination configuration
By default recordings will be uploaded to 100ms storage and a pre-signed URL for the same will be provided to customers via a webhook. The pre-signed URL will expire in 12 hours. Customers can also configure the recordings to be stored in their cloud storage. Following are the configurations for the same.
|type||Upload destination type. Currently, ||Yes|
|location||Name of the storage bucket in which you want to store all recordings||Yes|
|prefix||Upload prefix path||No|
|options||Additional configurations of type ||No|
|credentials||Object of type ||No|
|region||Region of the account hosting the storage bucket for storing recordings.||No|
|key||Access Key for the account hosting your storage bucket for storing recordings||Yes|
|secret||Secret for the account hosting the storage bucket for storing recordings||Yes|
Composite mp4 recording will be placed at:
Individual mp4 recordings will be placed at:
Estimating Recording Size
The size of the recordings is a function of the video and audio bitrate configured for publishing and the duration of the peer in the session. For one hour of recording, the file size can be estimated as:
size = video + audio bitrate (in kbps) * 0.45 MB/hour
Example: Size/hour of a recording with 360p 4:3 video publish at 300kbps would be
Video -> 300 * 0.45 = 135 MB
Audio(default at 32kbps) -> 32 * 0.45 = 15 MB (max)
Total size/hour of the peer recording file = 135 + 15 = 150 MB
Video bitrate can be found from 100ms dashboard under Templates -> Roles -> Configure Role > Publish strategies > video quality