Halaman ini belum tersedia dalam bahasa lokal Anda. Kami berusaha keras untuk menambahkan lebih banyak versi bahasa. Terima kasih atas dukungan Anda.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Live/ Media Live/ Getting Started/ Pushing Streams and Streaming Content on a PC

Pushing Streams and Streaming Content on a PC

Updated on 2025-01-24 GMT+08:00

This section describes how to push streams and stream content on a PC using third-party software.

Prerequisites

  • You have configured an ingest domain name and a streaming domain name on the Live console by referring to Adding Domain Names.
  • You have created a channel by referring to Creating a Channel.
  • You have installed a streaming tool (recommended: Open Broadcaster Software). If you have not installed it yet, download and install it.
  • You have installed a media player (recommended: VLC media player). If you have not installed it yet, download and install it.

Notes

  • Check the output resolution of Open Broadcaster Software (OBS).

    Pay attention to the input and output resolution levels configured in OBS and the resolution level configured in the live transcoding template of the channel to guarantee the playback.

    To view the input and output resolution levels of OBS, perform the following steps:

    1. Open OBS on the local PC.
    2. On the top navigation bar, choose File > Settings.
    3. In the navigation pane on the left, choose Video to view Base (Canvas) Resolution and Output (Scaled) Resolution.
      Figure 1 Video settings
  • Check the GOP duration of OBS following 3.

    You can set the GOP duration (recommended: 1–2 seconds) for OBS stream push. A GOP duration too long will compromise user experience when the I-frame interval of the source stream fluctuates greatly.

Pushing Streams

  1. Obtain the ingest URL.

    1. Log in to the Live console.
    2. In the navigation pane on the left, choose Channels under Media Live. The Channels page is displayed.
    3. Find the desired channel and click Manage on the right. The Update Channel page is displayed.

      The ingest URL is required only when Input Type is set to RTMP_PUSH or SRT_PUSH. If FLV_PULL, HLS_PULL, or SRT_PULL is selected, stream push is not required. The streaming URL provided by the user is directly obtained and used by Media Live to push streams to the origin server.

      An example of the ingest URL is shown in Figure 2.

      NOTICE:

      SRT_PUSH channels and RTMP_PUSH channels cannot be created at the same time for one domain name.

      • RTMP_PUSH URL example: rtmp://live-push.example.com/live/huaweitest?request_source=ott&channel_id=huaweitest
      • SRT_PUSH URL example: srt://live-srt-push.example.com:5000?streamid=#!::h=push.bj4.srt.transcodeonline.com,r=live/srtpush,request_source=ott,channel_id=srtpush,m=publish
      Figure 2 Viewing the ingest URL

  2. Run OBS and click Settings in the lower right corner.

    Figure 3 Settings

  3. In the navigation pane on the left, choose Output. Set Output Mode to Advanced and Keyframe Interval to 2.

    Figure 4 Output settings

  4. In the navigation pane on the left, choose Stream and enter the ingest URL obtained in 1.

    Figure 5 Livestream settings

    The ingest URL consists of two parts: Server and Stream Key.

    NOTE:

    The parameter names on the GUI may vary depending on the OBS version, but the rules for configuring the parameters are the same.

    Rules for setting an RTMP_PUSH ingest URL:
    • Server: Enter the part from the beginning of the ingest URL to the AppName, for example, rtmp://live-push.example.com/live/
    • Stream Key: Enter the URL containing StreamName, for example, huaweitest?request_source=ott&channel_id=huaweitest

    Rules for setting an SRT_PUSH ingest URL:

    • Method 1:
      • Server: Enter a server URL, for example, srt://live-srt-push.example.com:5000
      • Stream Key: Enter the URL following streamid=, for example, #!::h=push.bj4.srt.transcodeonline.com,r=live/srtpush,request_source=ott,channel_id=srtpush,m=publish
    • Method 2:
      • Server: Enter a complete URL, for example, srt://live-srt-push.example.com:5000?streamid=#!::h=push.bj4.srt.transcodeonline.com,r=live/srtpush,request_source=ott,channel_id=srtpush,m=publish
      • Stream Key: Leave it empty.

  5. Click OK.
  6. Click + in the lower left corner of the Sources area and add a stream source.

    Figure 6 Source settings
    • Media Source indicates local media files.
    • Video Capture Device indicates a camera. If a camera is available on the PC, the camera is directly enabled.

  7. Click Start Streaming in the lower right corner.

Streaming Content

  1. Obtain the streaming URL.

    1. Log in to the Live console.
    2. In the navigation pane on the left, choose Channels under Media Live. The Channels page is displayed.
    3. Find the desired channel and click Manage on the right. The Update Channel page is displayed.

      View the streaming URL, as shown in Figure 7. Streaming URLs whose output protocol is HLS, DASH, or MSS can be assembled. Examples:

      • HLS: https://live-play.example.com/{channelld}/hls/{unique_string}/index.m3u8
      • DASH: https://live-play.example.com/{channelId}/dash/{unique_string}/index.mpd
      • MSS: https://live-play.example.com/{channelId}/mss/{unique_string}.ism/Manifest

      A streaming URL supports HTTPS. You can configure an HTTPS certificate by referring to HTTPS Certificates.

      Figure 7 Viewing the streaming URL

  2. Run VLC.
  3. On the menu bar, choose Media > Open Multiple Files.
  4. In the displayed dialog box, enter the streaming URL obtained in 1. Click Play.

Kami menggunakan cookie untuk meningkatkan kualitas situs kami dan pengalaman Anda. Dengan melanjutkan penelusuran di situs kami berarti Anda menerima kebijakan cookie kami. Cari tahu selengkapnya

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback