StartCloudTranscode
https://rtc-api.zego.im/
Overview
This document describes how to use the server-side API to transcode a specified single input Stream into video Streams with different resolutions, bitrates, and frame rates.
For single-stream transcoding triggered by the "client" based on transcoding templates, please refer to Single-Stream Transcoding; for related "server" callbacks, please refer to Single-Stream Transcoding Started Callback and Single-Stream Transcoding Stopped Callback.
Prerequisites
Before implementing single-stream transcoding, ensure that:
- You have created a project in the ZEGOCLOUD Console and applied for a valid AppId and ServerSecret. For details, please refer to Console - Project Information.
- You have enabled the "Stream Mixing" service permission in the ZEGOCLOUD Console. For details, please refer to Console - Service Configuration - Stream Mixing, or contact ZEGOCLOUD technical support to enable it.
Preset output templates for single-stream transcoding
The parameter configurations for preset templates (TemplateId values 0, 1, 2, 3) are as follows:
| Template ID | Resolution (Short Edge) | Bitrate (kbps) | Other Configuration |
|---|---|---|---|
| 0 (360P) | 360 | 600 |
|
| 1 (540P) | 540 | 1000 | |
| 2 (720P) | 720 | 1500 | |
| 3 (1080P) | 1080 | 2000 |
Only some parameters in this interface support dynamic updates after starting Stream Mixing. Parameters not marked do not support dynamic updates. For details, please refer to the parameter descriptions in the table below.
Request
Query Parameters
Possible values: [StartCloudTranscode]
Interface prototype parameters
https://rtc-api.zego.im?Action=StartCloudTranscode
💡Public parameter. Application ID, assigned by ZEGOCLOUD. Get it from the ZEGOCLOUD Admin Console.
💡Common parameter. A 16-character hexadecimal random string (hex-encoded 8-byte random number). For the generation algorithm, refer to the signature example.
💡Common parameter. Current Unix timestamp in seconds. For the generation algorithm, refer to the signature example. A maximum deviation of 10 minutes is allowed.
💡Common parameter. Signature used to verify the legitimacy of the request. Please refer to the signature mechanism to generate it.
Possible values: [2.0]
Default value: 2.0
💡Public parameter. Signature version number.
- application/json
Responses
- 200
- application/json
