هذه الصفحة غير متوفرة حاليًا بلغتك المحلية. نحن نعمل جاهدين على إضافة المزيد من اللغات. شاكرين تفهمك ودعمك المستمر لنا.
- What's New
- Function Overview
- Product Bulletin
- Service Overview
-
Billing
- Billing Items
- Basic Service Billing
- Value-added Service Billing
- Billing Modes
- Changing the Billing Option
- Renewing a Resource Package
- Bills
- Arrears
- Billing Termination
- Cost Management
-
Billing FAQs
-
Common Cases
- What Do I Need to Pay?
- Do I Need to Buy the CDN Service Before Using Live?
- How Do I Change the Billing Option?
- Do I Need to Delete Resources If I Don't Want to Use Live Any More?
- How Do I View the Usage and Expenditure of Pay-per-Use Live Resources?
- Is Downstream Traffic or Upstream Traffic Billed?
- Will I Be Billed for URL Validation?
- How Is Transcoding Billed?
- Does the Daily Peak Bandwidth Mean the Upstream Bandwidth or Downstream Bandwidth?
- Why Is a Recording Fee Deducted on the First Day of Each Month?
- Arrears
-
Common Cases
- Cloud Live
-
Media Live
- Overview
- Scenarios
- Functions
- Product Advantages
- Constraints
- Getting Started
-
Console Operations
- Prerequisites
- Functions
- Permissions Management
- Domain Name Management
- Channels
- Live Transcoding
- Service Monitoring
- Cloud Resource Authorization
- Tools
- Best Practices
-
Cloud Live API Reference
- Before You Start
- API Overview
- Calling APIs
- Examples
-
Domain Name Management
- Creating a Domain Name
- Deleting a Domain Name
- Modifying a Domain Name
- Querying a Domain Name
- Mapping Domain Names
- Deleting a Domain Name Mapping
- Configuring the Domain Name IPv6 Function
- Querying IP Address Information
- Modifying the Streaming Domain Name Delay
- Querying the Streaming Domain Name Delay
- Modifying the HLS Configuration of a Domain Name
- Querying HLS Configurations of Domain Names
- Modifying Origin Pull Settings
- Querying Origin Pull Settings
- Notification Management
-
Authentication Management
- Configuring a Referer Validation ACL
- Deleting a Referer Validation ACL
- Querying Referer Validation ACLs
- Querying IP Address ACLs
- Modifying an IP Address ACL
- Generating a Signed URL
- Querying Supported Areas of a Streaming Domain Name
- Modifying Supported Areas of a Streaming Domain Name
- Querying the URL Validation Configuration of a Specified Domain Name
- Modifying the URL Validation Configuration of a Specified Domain Name
- Deleting the URL Validation Configuration of a Specified Domain Name
- Snapshot Management
- Log Management
- Recording Management
- Recording Callback Management
- HTTPS Certificate Management
- OBS Bucket Management
- Transcoding Template Management
- Stream Management
-
Statistics Analysis
- Querying Peak Bandwidth
- Querying Total Traffic
- Querying HTTP Status Codes for Pulling Live Streams
- Querying the Duration of Transcoded Outputs
- Querying Recording Channels
- Querying the Number of Snapshots
- Querying Upstream Bandwidth
- Querying the Number of Stream Channels
- Querying the Historical Stream List
- Querying the Playback Profile
- Querying the Distribution of Live Streaming Metrics by Region
- Querying Stream Data of a Streaming Domain Name
- Stream Analytics
- Appendix
- Change History
-
Media Live API Reference
- Before You Start
- API Overview
- Calling APIs
- Examples
-
OTT Channel Management
- Creating an OTT Channel
- Querying Channel Information
- Deleting Channel Information
- Modifying Channel Packaging Information
- Modifying Channel Input Stream Information
- Modifying Channel Recording Information
- Modifying General Channel Information
- Changing the Channel Status
- Modifying Channel Transcoding Template Information
- Appendix
- Change History
- Cloud Live Server SDK Reference
- Low Latency Live Client SDK Reference
-
FAQs
-
Product Consulting
- Do I Need to Buy the CDN Service Before Using Live?
- How Do I Use Live? Do I Need to Create a Channel?
- In Which Regions Is Live Available?
- Can I Use a Camera to Stream Live Video?
- Do I Need to Have a Domain Name?
- Can I Send HTTP Requests After Configuring an HTTPS Certificate?
- How Do I Select a Live Origin Server and Acceleration Area?
-
Billing
- What Do I Need to Pay?
- How Do I View the Usage and Expenditure of Pay-per-Use Live Resources?
- How Do I Change the Billing Option?
- Do I Need to Delete Resources If I Don't Want to Use Live Any More?
- Is Downstream Traffic or Upstream Traffic Billed?
- Why Charges Are Still Debited to My Account Even Though My Account Is in Arrears?
- Will I Be Billed for URL Validation?
- How Is Transcoding Billed?
- How Do I Know Whether My Account Is in Arrears?
- Does the Daily Peak Bandwidth Mean the Upstream Bandwidth or Downstream Bandwidth?
- Why Is a Recording Fee Deducted on the First Day of Each Month?
-
Domain Name Management
- How Many Domain Names Can I Add?
- Are There Any Requirements for the Streaming and Ingest Domain Names?
- What Does CNAME Mean on the Domains Page?
- What Can I Do If a Message Is Displayed Indicating that the Domain Name Fails to Be Added and the User Is in the Deleted State?
- Why Does the Domain Status Change from Normal to Configuring?
- A Conflict Occurs When Adding a CNAME Record
- Can the Ingest and Streaming Domain Names Be Second-level Domain Names?
- Can a Domain Name Be Added to Live in Multiple Regions?
- How Do I Check Whether Acceleration Has Been Enabled for a Live Domain Name?
- Will My Domain Names Be Cleared If My Account Is in Arrears?
- How Long Should I Disconnect a Stream for the New Streaming Configuration to Take Effect?
-
Recording
- Can Live Recordings Be Stored in OBS?
- How Long Is the Maximum Recording Length?
- Can I Configure a Recording Template for Each Live Stream?
- Are Transcoded Streams Recorded During Live Recording?
- How Long Is the TS Segment Length Supported by Live?
- How Many Recordings Are Created for a Live Recording Task?
- Why Still Are Recording Files Created Even Though I Have Already Deleted the Recording Template?
- Why Are There Two Recording Files When A Live Stream Is Not Interrupted?
- How Do I Obtain the URL of Recordings?
- Can I Call an API to Record a Live Video?
- Why Are No Recording Files Created After I Configured a Recording to OBS Template?
- Can I Enter Wildcard Characters in Stream Name When I Configure Recording to OBS?
- How Do I Delete a Recording?
- Can Live Stream Recording Be Started and Stopped at Any Time?
- Why Didn't I Receive a RECORD_FILE_COMPLETE Callback?
- Do StreamNames Support Regular Expressions?
- Why Can't I Download Videos Using the download_url Generated During Recording?
- Why Do the Modified Recording Rule and File Storage Path Not Take Effect?
- Can I Record and Store the Live Streams That Are Disconnected for Multiple Times in One File?
-
Transcoding
- How Do I Play a Transcoded Live Video?
- Why Is the Live Video Resolution During Playback Inconsistent with That Configured In the Transcoding Template?
- How Does the System Define the Effective Template If I Configure Multiple Transcoding Templates?
- How Is a Video Transcoded When Only the Width or Height Is Configured?
- Why Is the BANDWIDTH Value in a Level-1 M3U8 File for Pulling a Transcoded Stream Not the Bitrate of the Transcoded Stream?
- How Do I Configure Definitions of Video Streams?
- Snapshot Capturing
-
Security
- How Do I Protect Live Videos?
- Are There Any Requirements for the Key and Timeout Interval in URL Validation?
- Why Does Referer Validation Not Take Effect?
- Do I Need to Use the Same Key for Streaming Authentication and Playback Authentication?
- How Do I Set the Validity Period of a Signed Ingest URL to a Longer Period?
- Why Does HTTPS Access Fail When an HTTPS Certificate Has Been Configured for My Domain Name?
- Why Are Messages Indicating Insecurity Displayed During Video Playback After an HTTPS Certificate Is Configured?
-
Streams Pushing
- Which Ingest Protocols Are Supported?
- How Do I Live Stream?
- How Do I Get the Ingest URL?
- Are There Any Requirements for StreamName in an Ingest URL?
- How Do I Obtain a StreamName?
- How Do I Set the Resolution and Bitrate?
- What Do I Do If Stream Pushing Failed?
- How Many Live Streams Can I Push Simultaneously?
- How Long Is the Latency If a Live Video Resolution is 1080p?
- What Can I Do If I Use OBS to Push Streams but the Latency Is Too High?
- Why Does Open Broadcaster Software Fail to Push Streams?
- How Do I Disable a Live Stream?
- How Do I View Disabled Live Streams?
- How Do I Resume a Disabled Live Stream?
- What Are the Differences Between Stream Disabled and Stream Interrupted?
- Can an Ingest URL Push Multiple Streams at the Same Time?
-
Live Streaming
- Which Streaming Protocols Are Supported?
- How Do I Get the Streaming URL?
- Are There Any Requirements for StreamName in a Streaming URL?
- What Can I Do If I Fail to Play a Live Video?
- Is There Any Limit on the Daily Downstream Traffic?
- Is There Any Limit on the Number of Concurrent Viewers?
- Can I Pull Live Streams from Other Platforms to Huawei Cloud Live?
- Why Do Black Bars Appear on the Video?
- Why Does Playback Using the HTTPS Address Fail?
- Callback
-
API Usage
- What Is the Token for Calling Live APIs?
- Why Does the System Display a Message Indicating that the API Does Not Exist When I Call an API?
- Why Is "projectId in token is nil" Returned When I Call an API?
- Why Is "The token must be updated" Returned When I Call an API?
- Why Is a Message Stating "APIG.0301" Displayed When a VOD API Is Called?
- How Can I Query the Peak Number of Concurrent Recording Channels in a Month?
- Why Do I Receive Only the Recording Completion Callback But Not the Recording Start Callback After Configuring Recording Callbacks?
- Statistics Analysis
- Third-Party Tools
-
Product Consulting
- Troubleshooting
- Videos
- General Reference
Copied.
Creating a Transcoding Template
You can transcode livestreams into video streams with different resolutions and bitrates to meet a broad range of requirements. You can customize a transcoding template. When a channel is created, a transcoding template is configured. When channel content is played, transcoding is performed based on the transcoding template.
Function Overview
The transcoding function allows you to:
- Transcode source audio and video into one or more formats for playback on a wide range of devices.
- Adapt the output bitrate to different network bandwidths.
- Reduce the costs of distributing livestreams. Low-bitrate HD can reduce the bitrate usage by about 20% at the same resolution.
- Customize transcoding templates, such as the transcoding type, video bitrate, resolution, frame rate, and GOP duration.
For details about the function implementation, see Multi-bitrate Adaptation of Media Live.
Notes
- To delete a transcoding template, you need to manually delete it from all channels. Otherwise, the transcoding template still takes effect on the channels.
- The transcoding template of a channel takes effect when the channel playback starts. If the transcoding configuration is modified, the modification takes effect only after the channel is restarted.
- If you enable low-bitrate HD, you will be charged based on the rates of low-bitrate HD. For details about the price, see Live Pricing Details.
- Upsampling transcoding is not supported. If the resolution set in the transcoding template is higher than the original resolution, the transcoded streaming URL can be used for playback, but the played video still uses the original resolution. Upsampling is not applicable to the frame rate of a transcoded output.
- In the AP-Bangkok region, submit a service ticket for review after configuring a template. The configuration takes effect only after it is approved.
- The resolution and frame rate of a transcoded output cannot be higher than those of the input.
Prerequisites
- An ingest domain name has been added.
- CNAME records have been added to your domains' DNS records.
Adding a Media Live Transcoding Template
You can add a Media Live transcoding template on the Live console.
- Log in to the Live console.
- In the navigation pane on the left, choose Live Transcoding under Media Live.
- Click Create Transcoding Template. The Transcoding page is displayed on the right, as shown in Figure 1.
Configure transcoding parameters as instructed by Table 1.
Table 1 Transcoding settings Parameter
Description
Template Name
Name of a Media Live transcoding template.
You can customize the name in letters, digits, and hyphens (-).
Triggered By
Transcoding is triggered by stream push. When a transcoding request is received, the transcoding template whose name is the same as the value of AppName in the request URL takes effect and transcoding starts.
Transcoding Type
Transcoding type of Media Live.
Options:
- Standard transcoding
- Low-bitrate HD
For the same resolution, low-bitrate HD transcoding consumes 20% less bitrate than standard transcoding but costs more.
Low-bitrate HD means a lower output bitrate at a given image quality. If you enable this function, you will be billed based on the rates of low-bitrate HD. For details, see Pricing Details.
Video Encoding
Supported video encoding formats:
- H.264
- H.265
NOTICE:
- Select only one encoding format for each channel.
- H.265 is displayed only when Input Type of a created channel is set to SRT_PUSH, HLS_PULL, or SRT_PULL.
Presets (Optional)
Resolution levels:
- 360p
- 540p
- 720p
- 1080p
- 1440p
- Custom
Select a level to see preset values for Video Bitrate and Resolution (W x H) below. Change them as needed.
Video Bitrate
Average bitrate of the transcoded video, in Kbit/s.
Value range: 40 to 30,000
Bitrate Control
Bitrate control policy.
Options:
- Disabled: Bitrate adaptation is disabled. The target bitrate is output as specified.
- Not higher than source stream: The target bitrate is the smaller value between the specified bitrate and the bitrate of the source file.
- Adaptive to source stream: The target bitrate is adaptive to the bitrate of the source file.
Default value: Disabled
Resolution (W x H)
Width and height of the video, in pixel.
If the input value of both sides is set to 0, the video is output using the resolution of the source stream. If the value of one side is set to 0, the value of that side will be converted proportionally according to the input value of the other side.
Value range:
- Width: The value must be 0 or a multiple of 2 between 32 and 3,840.
- Height: The value must be 0 or a multiple of 2 between 32 and 2,160.
Video Frame Rate
Frame rate of the transcoded video.
Options:
- Retain the original
- Set a new one: If you select this option, you need to enter the frame rate. The value ranges from 0 to 60. 0 means adaptive frame rate.
The transcoded output frame rate cannot be higher than the input frame rate.
Use Source I-Frame
This function must be enabled for Media Live.
After this function is enabled, the I-frame, position, and PTS of the transcoded stream are the same as those of the source stream. In this case, both the source and transcoded streams have the same GOP duration.
B-Frame Removal
After this function is enabled, the transcoded video does not contain B-frames.
- Click OK.
There is a new transcoding template on the Live Transcoding page.
Managing Transcoding Templates
You can perform the following operations on your transcoding template:
- Editing a transcoding template
Click Edit in the Operation column to modify parameters in the template. If the channel where the transcoding template is located has been started, you need to restart the channel for the modification to take effect. It takes about 30 seconds to restart the channel. During the channel restart, transcoding will be interrupted. After the channel is restarted, transcoding automatically resumes.
- Deleting a transcoding template
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot