Livestream buffering indefinitely
In order to prevent the live stream from getting stuck (buffering indefinitely), please ensure that you are following the recommended settings.
Make sure to verify that the connection speed is adequate and stable before the stream is starting.
Live stream start delay
When a stream is starting it might take up to 30 seconds for the playback to start delivering.
Starting a live stream
Before starting the stream, it is important to have an intro (static picture, countdown and etc) to the beginning of the stream that will allow users to connect before the stream starts.
Ending the live stream
Make sure to use an outro (static picture, music and etc.) at the end of the stream for 30 seconds. This is a good way for users to indicate that the stream has ended.
When reaching the end of the playback, the player buffers until the live stream is deleted, which could take from 10 seconds to 5 minutes and could cause the live stream not to end properly even if you have stopped the broadcast.
Connectivity loss reconnection
Reconnection is handled by api.video, however, an edge case might occur (very slim chance), which will result in the inability to reconnect to the stream with good quality. In this case, we recommend creating a manual stream reconnection, where the streamer will create a new streaming key while the consumers will have to refresh their player instance.
Reading stream history
While the stream is live, the user can watch the stream for up to 6 hours in the past.
As soon as the stream ends, we will store the stream for another 4-5 minutes subsequently ending the stream and disposing of the cached video.
Recommended setting for ingestion
Video codec: H.264
Audio codec: AAC/MP3
Bitrate encoding: CBR
Keyframe Interval: 2 second
240p
Framerate: 25-30fps
Video Bitrate: 300-700 Kbps
Audio sample rate: 44,1 kHz
Audio Bitrate: 64 Kbps
360p
Framerate: 25-30fps
Video Bitrate: 400-1000 Kbps
Audio sample rate: 44,1 kHz
Audio Bitrate: 128 Kbps
480p
Framerate: 25-30fps
Video Bitrate: 500-2000 Kbps
Audio sample rate: 44,1 kHz
Audio Bitrate: 128 Kbps
720p
25-30fps
Framerate: 25-30fps
Video Bitrate: 1500-4000 Kbps
Audio sample rate: 44,1 kHz
Audio Bitrate: 128 Kbps
60fps
Framerate: 60fps
Video Bitrate: 2250-6000 Kbps
Audio sample rate: 44,1 kHz
Audio Bitrate: 128 Kbps
1080p
25-30fps
Framerate: 25-30fps
Video Bitrate: 3000-6000 Kbps
Audio sample rate: 44,1 kHz
Audio Bitrate: 128 Kbps
60fps
Framerate: 60fps
Video Bitrate: 4500-9000 Kbps
Audio sample rate: 44,1 kHz
Audio Bitrate: 128 Kbps
2160(4K)
25-30fps
Framerate: 25-30fps
Video Bitrate: 13000-34000 Kbps
Audio sample rate: 44,1 kHz
Audio Bitrate: 192 Kbps
60fps
Framerate: 60fps
Video Bitrate: 20000-51000 Kbps
Audio sample rate: 44,1 kHz
Audio Bitrate: 192 Kbps