Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to re-encapsulate the TS source stream and transmit it through P2P protocol to play on Android and Apple terminals

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

The content of this article mainly focuses on how to re-encapsulate the TS source stream and transmit it to Android and Apple terminals through P2P protocols. The content of the article is clear and well-organized. It is very suitable for beginners to learn and is worth reading. Interested friends can follow the editor to read together. I hope you can get something through this article!

What is a TS stream

TS stream (TransportStream) is the standard information stream generated by the multiplexing of video and audio es stream and auxiliary data for actual transmission in MPEG-2 system, which is called MPEG-2 transport stream. According to the quality of transmission media, two kinds of composite information flow are defined in MPEG-2: transport stream (TS) and program stream (PS:ProgramStream).

TS flows can also be understood at another level. TS is an encapsulation format of streaming media proposed in MPEG2, which is suitable for streaming media playback. Two media playback formats are supported in MPEG2: local playback PS stream (program Stream) and network playback streaming media format TS streaming (transport Stream).

Streaming Media Transport Protocol and TS streaming

At present, there are two main ways to transmit audio, video and other multimedia information on the Internet: download and streaming transmission. Using the download method, users need to download the entire media file before playing it. Due to the limitation of network bandwidth, downloading often takes a long time, so this processing method has a great delay.

The key technology of streaming media is streaming transmission. Before transmission, the multimedia is preprocessed (reduced quality and efficient compression), and then the cache system is used to ensure that the data is transmitted continuously and correctly. Using streaming mode, users do not have to wait for the entire file to be downloaded, but only need to go through a few seconds to dozens of seconds of startup delay to play and watch on the client. At this point, the rest of the media file will continue to download in the background.

Compared with the simple download mode, this streaming transmission mode of downloading and playing multimedia files not only greatly shortens the startup delay, but also greatly reduces the demand for system cache capacity. Another advantage of using streaming is that it is possible to transmit media data that is unknown or impossible to know in advance (such as webcast, video conferencing, etc.).

Application of TS flow

TS stream has a wide range of applications, such as the preservation of video and audio materials, non-linear editing system of TV programs and its network. Generally, the network application of TS stream is to encapsulate it in various protocols for network transmission. Such as RTSP, HTTP, UDP, etc. Our common RTMP is encapsulated FLV video that is transmitted over the Internet.

How to transport TS streams over P2P protocols

1. Pull the TS stream over and actively push it to the 800Li streaming media system that supports P2P protocol.

two。 It is distributed through the P2P protocol of 800Li streaming media system.

3. Android set-top boxes and Android phones used in the OTT/IPTV solution of Internet TV play and watch.

TS source-stream pull software

800Li Media Server P2P protocol network distribution

Internet TV-APK interface of Android set-top box

PS: seven copyrighted licensees

1. CCTV International-CNTV (CCTV is the main body of the application)

two。 Hangzhou Huashu (jointly applied by Zhejiang and Hangzhou TV stations)

3. Shanghai Wenguang-BesTV (Shanghai TV Station is the main body of the application)

4. Southern Media (Guangdong TV Station is the main body of the application)

5. Hunan TV Station

6. China Radio International

7. Central people's Radio

Thank you for your reading. I believe you have some understanding of "how to re-encapsulate the TS source stream and transmit it to Android and Apple terminals through P2P protocols". Go ahead and practice it. If you want to know more about it, you can follow the website! The editor will continue to bring you better articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report