1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Set up an encoder for video streaming
This guide helps you configure your encoder with the Streaming video service.
Preamble
- The structure of this guide is organized based on the encoding quality chosen for your stream:
- The URL-based authentication system offered by Infomaniak differs from the default authentication offered by some encoders.
- This information is provided for reference only, and the configuration of your encoder may vary depending on your device, your software, and the options of your product.
Encoder configuration required
Here is how to access the configuration information required by your encoder:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click on the action menu โฎ to the right of the relevant item in the displayed table.
- Click on Configure the encoder:
- Follow the instructions tailored to your situation.
1. Automatic management of multi-bitrate by Infomaniak
The following information applies if you have chosen to let Infomaniak automatically manage the quality of your stream. In this case, the following configuration information is available:
In this example, the stream is named "F.A.Q." and its authentication key is "3bmPvLqc" :
- Server address:
rtmp://faq.vprimary.infomaniak.com/livecast?key=3bmPvLqc
- Stream name:
faq
1.1 Source Quality Configuration
The stream qualities generated by Infomaniak will depend on the quality of your source (bitrate). Here is an indicative list of the qualities that could be generated at the time of connecting your encoder:
- 1080p with a bitrate of 3 Mbps
- 720p with a bitrate of 1.8 Mbps
- 480p with a bitrate of 0.8 Mbps
- 360p with a bitrate of 0.5 Mbps
- 240p with a bitrate of 0.3 Mbps*
* 240p will only be offered if your source bitrate is less than 0.8 Mbps.
It is ideally recommended to set a source of 1080p with a bitrate of 3.2 Mbps to generate all available qualities. If the bitrate of your source is limited to 1 Mbps, only the following resolutions will be generated: 480p, 360p and 240p.
Important: ensure that the bitrate control is set to CBR (constant bitrate) on your encoder. The ABR (adaptive bitrate) mode can indeed distort the detection of your source bitrate.
1.2 Your encoder requires a connection address and a stream ID
If your encoder requires a connection address and a stream ID, simply enter the server address and stream ID in your encoder.
In this example, the following information would be required:
- Server address:
rtmp://faq.vprimary.infomaniak.com/livecast?key=3bmPvLqc
- Stream ID:
faq
1.3 Your encoder requires only a URL
If your encoder requires only a URL, you need to combine the server address and the connection identifier; in this case, the URL would be the following:
rtmp://faq.vprimary.infomaniak.com/livecast?key=3bmPvLqc/faq
1.4 Your encoder offers advanced configuration
If your encoder offers a wide range of parameters, follow the instructions below, which are always based on the same example:
- RTMP Server Address:
faq.vprimary.infomaniak.com
- RTMP server port:
1935
- RTMP Username: leave this field empty (authentication is done by key with a key on the stream identifier)
- RTMP Password: leave this field empty (authentication is done by key with a key on the stream identifier)
- RTMP Application Name:
livecast?key=3bmPvLqc
- RTMP Stream Name:
faq
2. Manual management of multi-bitrate
The following information is relevant if you have decided to manually manage the quality of your stream. If you are using the Cloud Transcoding option, refer to the 3. Single bitrate section below.
In this case, you will find a table containing the different qualities (bitrate/resolutions) that you defined during the configuration of your encoder:
In this example, the stream is named "faq" and its authentication key is "3bmPvLqcโ".
2.1 Your encoder requires a connection address and a stream ID
If your encoder requires a connection address and a stream ID, simply enter the server address and ID for each stream in your encoder.
2.2 Your encoder requires a URL per stream
If your encoder requires specific configurations per URL, you need to group the server address and the connection identifier for each bitrate. In this case, the URLs would be as follows:
- Bitrate 2000000 : rtmp://faq.vprimary.infomaniak.com/livecast?key=3bmPvLqc/faq
- Bitrate 1000000 : rtmp://faq.vprimary.infomaniak.com/livecast?key=3bmPvLqc/faq_1
- Bitrate 500000 : rtmp://faq.vprimary.infomaniak.com/livecast?key=3bmPvLqc/faq_2
- Bitrate 250000 : rtmp://faq.vprimary.infomaniak.com/livecast?key=3bmPvLqc/faq_3
3. Single bitrate (one quality)
Take note of the instructions provided in point 1. Automatic management of multi-bitrate by Infomaniak ignoring point 1.1.