Billing of Audio and Video Duration

Audio and video duration is a basic billing item of TRTC. It’s applicable to audio calls, video calls, and interactive live streaming.
Charges are based on each participant's duration in an audio call, video call, or interactive live streaming room. The price of video duration varies with resolution.
If you have a contract with TRTC, the billing details in the contract will apply.
Note:
Aggregate video resolution applies to accounts whose first TRTC application is created on or after October 27, 2021.

Billing Instructions

Billing mode: Daily pay-as-you-go.
Billing cycle: Billing occurs on a daily basis. Audio and video duration fees incurred each day will be deducted the following day at the time of billing (the actual deduction and bill generation time may vary).
You can buy pre-paid packages to deduct your audio and video duration. Pre-paid packages will be used first. If you haven’t purchased a package or have used up your packages, your audio and video duration will be billed at pay-as-you-go rates. The deduction ratios for pre-paid packages are 1:4, 1:9, 1:16, and 1:36 for audio, HD, FHD, 2K, and 4K duration respectively. For example, for 1 minute of HD video duration generated, 4 minutes will be deducted from a pre-paid package.
10,000 free minutes can also be used to deduct audio and video duration. For details, see Free Minutes.
You can use the TRTC Price Calculator to estimate the audio and video duration usage and fees for your service.
If the audio/video streams in a TRTC room are relayed to CSS to enable playback via CDN, additional fees will be incurred. For details, refer to Billing of MixTranscoding and Relay to CDN.
Note:
If an audio/video stream processing task (recording, audit, relay, etc.) is initiated for a room, the system will assign a robot to the room (if multiple tasks are initiated, there will be multiple robots). The robot will enter the room as a user and will subscribe to streams of the room. This will incur audio/video duration fees.
For relaying to RTC rooms, because the robot does not subscribe to streams in the room, audio duration fees will be charged according to the robot’s length of stay in the room.
In other scenarios (relaying streams in one RTC room to another room or to a third-party platform, etc.), audio/video duration fees will be charged according to the media received by the robot.
If you use other TRTC services that are neither audio/video calls nor interactive live streaming, such as cloud recording, additional fees will be incurred. For details, see billing instructions for the corresponding TRTC services.
If you want your pay-as-you-go usage to be billed monthly, please contact us.

Billing Formula

Monthly cost = Audio duration x Unit price of audio duration + Video durations of different categories x Unit price of the corresponding category

Pricing

Category
Unit price (USD/1,000 minutes)
Aggregate Video Resolution
Audio
0.99
-
HD
3.99
Resolution ≤ 921,600 (1280 x 720)
FHD
8.99
921,600 (1280 x 720)< Resolution ≤ 2,073,600 (1920 x 1080)
2K
15.99
2,073,600 (1920 x 1080) < Resolution ≤ 3,686,400 (2560 x 1440)
4K
35.99
3,686,400 (2560 x 1440) < Resolution ≤ 8,847,360 (4096 x 2160)
Note:
You can use the TRTC Price Calculator to estimate your costs.
TRTC will calculate the total duration generated by your Tencent Cloud account for each category each day.
Video durations are classified into four categories based on aggregate video resolution and are priced differently. The system will first deduct your usage using the 10,000 free minutes offered by TRTC for each developer account and the minutes of purchased monthly packages. The remaining audio and video durations are multiplied by their corresponding unit prices and added up. The result is your audio/video duration fee for the day.

Dual-Stream Resolution

In the dual-stream mode, a user's resolution is calculated as follows:
If the user subscribes to the high-quality stream, the resolution of the high-quality stream set by the sender will be used for the calculation of the aggregate resolution.
If the user subscribes to the low-quality stream, the resolution received by the user will be used for the calculation of the aggregate resolution.

Resolution of Screen Sharing Stream

For screen sharing streams, audio/video duration is charged based on the resolution set in TRTCVideoEncParam. For details on how the resolution is set, see the following documents:
All platforms (C): ++startScreenCapture
Android: startScreenCapture
On the Web, a target resolution may be unattainable due to device and browser restrictions, in which case the browser will adjust the resolution automatically to make it as close as possible to the target, and the actual resolution will be used for billing. For details, see setScreenProfile.

Usage Calculation

Video Duration

For users who successfully enter a TRTC room:
Video duration is defined as the duration of video streams the users subscribe to (the duration of received video).
If a user subscribes to both the audio and video streams of another user, only the video duration will be billed.
Users may enter and exit a room multiple times. TRTC will tally up the durations of multiple video segments in real time.
If a user subscribes to multiple video streams simultaneously, the resolution of each video stream will be added up. The result is the user's aggregate resolution.
TRTC will categorize videos based on the actual received video resolution and then bill the video duration of different categories respectively.

Audio Duration

For users who successfully enter a TRTC room:
Audio duration is defined as the duration of a user’s stay in the room when video streams are not received, including when the user subscribes only to audio streams, when the user doesn’t subscribe to any streams at all, and when the user only sends but does not receive audio and video in the room.
If a user does not subscribe to any video stream in the room, audio duration fees will be charged based on the user’s length of stay in the room.
Users may enter and exit a room multiple times. TRTC will tally up the durations of multiple audio segments in real time.
If there is only one user in the room, whether they publish streams or not, audio duration fees will be charged based on the user’s length of stay in the room.
Note:
Durations for each day are calculated in seconds for each application (SDKAppID) and then converted to minutes (rounded up to the nearest minute) for billing.
When there is a screen sharing stream in the room, the shared screen will be seen as published by a virtual anchor, and audio/video duration fees will be charged separately.

Examples of Billing

Example 1

Assume that six users entered a room at the same time and communicated over video for 60 minutes.
There were three anchors (A, B, and C) in the room. The video resolution of A was 960 x 720, and that of B and C were both 640 x 480. Two of the audience members subscribed to the video streams of all anchors, while the other subscribed to audio only. Anchor A also shared the screen at a resolution of 1920 x 1080.

Step 1: Calculating the Aggregate Video Resolution and Duration of Each User

The table below shows the aggregate resolution of videos received by each user, the categories the resolutions fall in, and their prices.
User
Streams Received
Video Resolutions
Aggregate Resolution
Category
Duration (minutes)
A (shared the screen)
B's and C's video streams
640 x 480 x 2
614,400
HD
60
B
A's video and screen sharing streams + C's video stream
(960 x 720) + (640 x 480) + (1920 x 1080)
3,072,000
2K
60
C
A's video and screen sharing streams + B's video stream
(960 x 720) + (640 x 480) + (1920 x 1080)
3,072,000
2K
60
Audience 1
A's video and screen sharing streams + B's and C's video streams
(960 x 720) + (640 x 480 x 2) + (1920 x 1080)
3,379,200
2K
60
Audience 2
A's video and screen sharing streams + B's and C's video streams
(960 x 720) + (640 x 480 x 2) + (1920 x 1080)
3,379,200
2K
60
Audience 3
Audio streams only
-
-
Audio
60
The figure below shows the billing details:


Step 2: Querying the Unit Price of the Corresponding Category, and Calculating the Final Cost according to the Formula

Formula: Monthly cost = Audio duration x Unit price of audio duration + Video durations of different categories x Unit price of the corresponding category
Billable Item
Total duration (minutes) = Sum of each user's duration
Unit price
(USD/1,000 minutes)
Cost by Category (USD)
Total cost (USD)
(Rounded to two decimal places)
HD
60 x 1 = 60
3.99
(60/1000) × 3.99 = 0.2394
4.14
2K
60 x 4 = 240
15.99
(240/1000) x 15.99 = 3.8376
Audio
60 x 1 = 60
0.99
(60/1000) x 0.99 = 0.0594

Example 2

Assume that six users entered a room at the same time and communicated over video for 60 minutes. There were four anchors (A, B, C, and D) in the room. The video resolution of A, B, and C was 480 x 480, while D published only audio. One of the audience members subscribed to the video streams of all anchors, and the other subscribed to audio only.

Step 1: Calculating the Aggregate Video Resolution and Duration of Each User

The table below shows the aggregate resolution of videos received by each user, the categories the resolutions fall in, and their prices.
User
Streams Received
Video Resolutions
Aggregate Resolution
Category
Duration (minutes)
A
B's and C's video streams + D's audio stream
480 x 480 x 2
460,800
HD
60
B
A's and C's video streams + D's audio stream
480 x 480 x 2
460,800
HD
60
C
A's and B's video streams + D's audio stream
480 x 480 x 2
460,800
HD
60
D
A's, B's, and C's video streams
480 x 480 x 3
691,200
HD
60
Audience 1
A's, B's, and C's video streams + D's audio stream
480 x 480 x 3
691,200
HD
60
Audience 2
Audio streams only
-
-
Audio
60

Step 2: Querying the Unit Price of the Corresponding Category, and Calculating the Final Cost according to the Formula

Formula: Monthly cost = Audio duration x Unit price of audio duration + Video durations of different categories x Unit price of the corresponding category
Billable Item
Total duration (minutes) = Sum of each user's duration
Unit price
(USD/1,000 minutes)
Cost by Category (USD)
Total cost (USD)
(Rounded to two decimal places)
HD
60 x 5 = 300
3.99
(300/1000) x 3.99 = 1.197
1.26
Audio
60 x 1 = 60
0.99
(60/1000) x 0.99 = 0.0594