business background
The rapid development of live broadcast technology has made the user experience of various industries diversified and personalized, and innovative practices in different business scenarios meet the high standards of the public for audio and video interactive experience and participation. After the great changes in early 2020, the Internet economy, dominated by video, games, e-commerce, and education, has ushered in rapid development. "Live +" has become a trend and is widely integrated into people's work and life. When building a live broadcast system, you will often hear two high-frequency words: RTMP (Real Time Messaging Protocol) and OBS (Open Broadcaster Software).
The RTMP protocol is a TCP-based application layer protocol proposed by Adobe to solve the problems of multiplexing and packetizing of multimedia data transmission streams. RTMP has a history of nearly 20 years and is widely used in the live streaming industry to push streams and intercommunication between different systems.
OBS is an easy-to-use live streaming media content production software that provides users with video, text, image capture and recording functions. The OBS interface is simple, professional and powerful. The OBS program and its source code are all freely available for everyone to use. The version update has been relatively active. It supports OS X, Windows, and Linux operating systems. It is suitable for a variety of live broadcast scenarios and meets the operational needs of most live broadcasts.
Upgrade plan
For the host to push the stream using RTMP, the existing TCP link takes too long, congestion control completely relies on the TCP transport layer, and the inability to provide real-time bandwidth data to dynamically adjust the video encoding rate and other problems caused by the delay and stagnation of the stream. Alibaba Cloud's low-latency live RTS (Real-time Streaming) product is based on the transformation of the downlink UDP, and optimizes the underlying WebRTC technology of the uplink UDP, and promotes the streaming of the entire industry by releasing the RTS SDK plug-in for the mobile and PC end. Quality, providing low-latency, low-latency, safe and reliable live viewing experience. Client access is simple. You only need OBS side to add a push stream protocol, without changing the original push stream collection architecture .
Effect comparison
Anchor
The data comes from internal experimental calculations.
Steps for usage
Step 1. Push streaming domain name to open RTS
After adding the streaming domain name in the live console, in the domain name configuration of the domain name management page, use the low-latency streaming switch to enable or disable this function.
Step 2. Integrate RTS SDK
The RTS SDK is tailor-made for OBS. There is no need to change the OBS native framework, just connect to the RTS SDK to implement the obs-output plug-in, as shown in the figure below. You can refer to the integrated document https://help.aliyun.com/document_detail/272525.html complete autonomous access. In order to facilitate user access, the obs-output plugin of artc-stream is also encapsulated. It can be integrated and used only by adding OBS compilation. For details, please refer to the "OBS Sample Plug-in Artc-Stream Integration Instructions".
Step 3. Use RTS push address to push the stream
The splicing method of the push stream address is the same as RTMP, only the new protocol header artc:// is needed to distinguish it. For example, the RTMP address generated by the console is:
rtmp://push.rts***.grtn.aliyunlive.com/live/123?auth_key=1624860195-*
You only need to change rtmp to artc:
artc://push.rts***.grtn.aliyunlive.com/live/123?auth_key=1624860195-*
Demo experience
https://help.aliyun.com/document_detail/177373.html#title-xgu-5k1-2vx
"Video Cloud Technology" Your most noteworthy audio and video technology public account, pushes practical technical articles from the front line of Alibaba Cloud every week, and exchanges and exchanges with first-class engineers in the audio and video field. The official account backstage reply [Technology] You can join the Alibaba Cloud Video Cloud Product Technology Exchange Group, discuss audio and video technologies with industry leaders, and get more industry latest information.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。