This topic describes the billing rules for stream mixing and relaying in ApsaraVideo Real-time Communication.
Billing rules
Stream mixing and relaying fees = Unit price per specification × Duration of stream mixing and relaying
Billing item | Description | Other information |
Unit price per specification | The unit price corresponds to the output resolution after stream mixing and relaying. |
|
Duration of stream mixing and relaying | The duration is calculated from the start to the end of the stream mixing and relaying task. Note
|
Pricing for stream mixing and relaying
Stream mixing and relaying uses a pay-as-you-go billing method. Fees are billed daily. Bills for the previous day are generated and the corresponding fees are deducted after 00:00 each day. The actual billing time may vary.
Specification | Output resolution | Price (USD/minute) |
Single-stream relaying | Voice | 0.00043 |
Video (any specification) | 0.00114 | |
Voice | Audio-only | 0.00071 |
480p or lower | Less than or equal to 640 × 480 | 0.00171 |
720p or lower | Greater than 640 × 480 and less than or equal to 1280 × 720 | 0.00457 |
Above 720p (including 1080p) | Greater than 1280 × 720 | 0.00914 |
Fees are calculated based on the total usage duration for each stream mixing and relaying specification on a given day.
Billing examples
Example 1: Streamer A hosts a solo video live stream at a resolution of 1080 × 720 for 1,200 seconds. Then, B and C join the video call for 3,700 seconds. During the call, the resolution of A's video is 1280 × 720, and the resolutions of B's and C's videos are 640 × 360. The streams of A, B, and C are mixed and relayed to viewers at a final resolution of 1280 × 720.
Fee for single-stream relaying of A's video = 0.00114 USD/minute × 20 minutes
Fee for A's interactive audio and video call = 0.00171 USD/minute × 62 minutes × 2
Fee for B's interactive audio and video call = 0.00343 USD/minute × 62 minutes + 0.00171 USD/minute × 62 minutes
Fee for C's interactive audio and video call = 0.00343 USD/minute × 62 minutes + 0.00171 USD/minute × 62 minutes
Fee for stream mixing and relaying = 0.00457 USD/minute × 62 minutes
Total interactive call fee = Fee for single-stream relaying of A's video + Fee for A's interactive audio and video call + Fee for B's interactive audio and video call + Fee for C's interactive audio and video call + Fee for stream mixing and relaying
NoteDurations less than one minute are billed as one minute. Therefore, 3,700 seconds is billed as 62 minutes.
When A hosts a solo live stream, the Push SDK for ApsaraVideo Live is used. The stream is ingested over the RTC protocol. Therefore, a fee for single-stream video relaying is charged for relaying the stream from the RTC network to the CDN distribution network.
Because the three users are in a video call, no fees are charged for voice calls.
A subscribes to the video streams of B and C. Therefore, the billing specification for A's video call is 480p or lower for the video streams of B and C.
B subscribes to the video streams of A and C. Therefore, the billing specifications for B's video call are 720p for A's video stream and 480p or lower for C's video stream.
C subscribes to the video streams of A and B. Therefore, the billing specifications for C's video call are 720p for A's video stream and 480p or lower for B's video stream.
During the call, one stream mixing and relaying task is started to mix and relay the three video streams. The resolution of the mixed stream is 1280 × 720. Therefore, the billing specification for stream mixing and relaying is 720p. The duration of the transcoding job is the same as the call duration, which is 62 minutes.
Example 2: 10 users join a channel call. Three streamers ingest audio-only streams, and seven viewers pull the mixed stream. The call lasts for 2,100 seconds. The audio from the three streamers is mixed.
Fee for stream mixing and relaying = 0.0050 USD/minute × 35 minutes
NoteOne stream mixing and relaying task is started to mix and relay the three audio streams.
Because only audio streams are mixed and relayed, the billing specification for stream mixing and relaying is Mixed_Audio (audio-only).
Example 3: 10 users join a channel call. Three streamers ingest audio and video streams with a video resolution of 480 × 640. Seven viewers pull the mixed stream. The call lasts for 3,700 seconds. The audio and video from the three streamers are mixed.
Fee for stream mixing and relaying = 0.00171 USD/minute × 62 minutes
NoteOne stream mixing and relaying task is started to mix and relay the three audio and video streams.
Because the video streams of three users with a resolution of 480 × 640 are mixed and relayed, the output resolution is 480p. Therefore, the billing specification for stream mixing and relaying is 480p.
Durations less than one minute are billed as one minute. Therefore, 3,700 seconds is billed as 62 minutes.
The streams that the streamers subscribe to from each other are not mixed and relayed. The viewers subscribe to the single mixed stream that is relayed from the cloud.