MixTranscoding is a paid feature service launched by Tencent Real-Time Communication (TRTC) and can be used to process multiple upstream audio and video streams through image mixing, audio and video transcoding, and repackaging. You can perform configurations on the console or call APIs as needed.
Billing
Billing mode: Post-paid on a daily basis.
Billing cycle: Settled daily. The cloud recording fees for each day will be deducted when the billing statement is generated the next day. For detailed billing and billing time, see Billing Statement. Since June 1, 2022, the usage measurement for MixTranscoding has been changed from output-duration-based measurement to input-duration-based measurement.
The usage generated by pulling and relaying streams back to the TRTC room is also billed based on the transcoding fees.
If you relay the transcoded audio and video stream output into the Cloud Streaming Services system for the audience to view CDN live streaming, Cloud Streaming Services will charge you for the traffic/bandwidth fee. Note
When a transcoding task is initiated in a room, the system assigns corresponding robot to enter the room as a virtual viewer (for multiple transcoding tasks, multiple robots will enter the room). The robot subscribes to the audio and video streams that need to be transcoded, leading to a fee based on the audio and video duration. To enhance your experience of using Tencent Cloud audio and video services, TRTC and Cloud Streaming Services are joined together. If the audio and video content is transcoded and then relayed to Cloud Streaming Services, the fees generated by the robot based on the audio and video duration can be waived.
In other scenarios (including but not limited to transcoding and relay to other rooms or platforms), the robot subscription duration will be normally charged.
Fee Calculation
MixTranscoding fee = Audio transcoding fee + Video transcoding fee = Audio input duration × Audio transcoding unit price + Video input duration after collection × Unit price corresponding to the input stream collected video resolution and output coding method
Product Pricing
The following table list the published prices for MixTranscoding of TRTC:
|
Audio transcoding | Transcoding-Voice | 1.99 |
H.264 | Transcoding-H264-High Definition (HD) | 5.99 |
H.264 | Transcoding-H264-Full High Definition (FHD) | 13.99 |
H.264 | Transcoding-H264-2K | 25.99 |
H.264 | Transcoding-H264-4K | 69.99 |
H.265 | Transcoding-H265-High Definition (HD) | 17.99 |
H.265 | Transcoding-H265-Full High Definition (FHD) | 37.99 |
H.265 | Transcoding-H265-2K | 69.99 |
H.265 | Transcoding-H265-4K | 189.99 |
Note
MixTranscoding of TRTC supports only post-paid billing mode on a daily basis, with the fees generated from the previous day being deducted at 10:00 AM each day.
Usage Statistics
The TRTC transcoding service usage is calculated based on the video and audio stream duration input for MCU MixTranscoding under the same Tencent Cloud account across all applications. Depending on the input streams in the room, the transcoding duration falls into two categories: video input duration and audio input duration. Video Input Duration
The video input duration refers to the length of the videos in all input streams after collection before transcoding. TRTC will divide the videos into different levels based on the resolution of the input video after collection and will charge for the duration of the videos at different levels. The relationship between video level and resolution is as follows:
|
High Definition (HD) | Not exceeding 1280 × 720 (inclusive) |
Full High Definition (FHD) | 1280 × 720 to 1920 × 1080 (inclusive) |
2K | 1920 × 1080 to 2560 ×1440 (inclusive) |
4K | 2560 × 1440 to 4096 × 2176 (inclusive) |
If the same input stream before transcoding contains both video and audio at the same time, only the video duration is measured, and the audio duration is not measured again.
Before transcoding, if there are pure audio streams in multiple input streams, the audio duration of this stream also needs to be measured.
Before transcoding, the resolution of the same input stream may change. TRTC will measure the usage in segments, which is usually updated every 60 seconds. When the resolution changes, it will be reported and updated immediately.
For the same mixed stream task at a certain moment, when the ratio of the area of the output resolution to the sum of all input resolution areas is greater than 2:1, the system will add an input image according to the output resolution to guarantee the quality of the output resolution, generating an extra audio and video input usage.
When the host uses H.265 as the stream codec and the audience in TRTC room does not support H.265 decoding, the stream codec of the host will automatically downgrade to H.264 to ensure the playback experience of the audience in the room. At the same time, to keep the stability of the codec of CDN playback and not to affect the CDN audience, the TRTC background will automatically initiate transcoding to output H.265 during bypass relay, generating H.265 transcoding fees.
Audio Input Duration
Audio input duration refers to the length of pure audio in all input streams before transcoding.
For scenarios of pure audio input, billing for multiple audio inputs is based on the collected audio. That is, multiple audio inputs are billed as a single audio input for transcoding.
Note
The duration is measured by second, and the billing is conducted by SDKAppID and based on the time through a conversion from seconds to minutes every day. Durations less than one minute are billed as one minute.
If there is no image in the audio and video output of MixTranscoding, the system will add a black screen image according to the output resolution to ensure that there is the audio and video output. Therefore, an extra video input usage will be generated.
For one stream input of MixTranscoding, if there is pure audio input in a period and video input in another period, the period of pure audio will be charged based on audio, and the period of video will be charged based on video.
Billing Examples
Pure Audio Input Example
On January 1, you used the TRTC MCU cluster for MixTranscoding, during which users A, B, and C stayed continuously for 30 minutes in the TRTC room. The three users don't have upstream video duration.
For transcoding in pure audio scenarios, multiple audio inputs are calculated as one audio input. Therefore, the audio input duration for the initiated transcoding is 30 minutes.
Therefore, on February 1, you need to pay the transcoding fee incurred on January 1 is calculated as follows: The fee = 1.99 USD/Thousand minutes × 30 minutes ÷ 1,000 = 0.0597 USD
Voice/Video Mixed Input Example
On January 2, you used the MCU cluster of TRTC for MixTranscoding, with H.264 selected as the codec for transcoding. During this period, only users A, B, and C stayed continuously for 100 minutes in the TRTC room. The following table lists the types and resolution information of the upstream pushing of users A, B, and C:
|
A | Pure audio | No | Transcoding-Voice |
B | Video + Audio | 640 × 360 | Transcoding-H264-High Definition (HD) |
C | Video + Audio | 1920 × 1080 | Transcoding-H264-Full High Definition (FHD) |
Analysis:
The following content lists the unit prices corresponding to the types of input streams:
The resolution of the input audio stream is 0, and video streams to be input are collected. The total area of the input video resolution (1920×1080 and 640 × 320) falls within the 2K range. The codec for transcoding is H.264. Therefore, the transcoding unit price is 25.99 USD/thousand minutes.
Therefore, on January 3, you need to pay the transcoding fee accumulated on January 2, which is 2.599 USD (25.99 USD per thousand minutes × 100 minutes ÷ 1,000).
Note
This billing example is calculated by using the published price. If you have signed a contract with a Tencent Cloud business manager, the price stipulated in the contract prevails.
Was this page helpful?