[Original] audio and video basics (a)

One: the kind of live products

1.1 Pan-entertainment live: pepper, reflected off the live entertainment, fighting fish, such as giant pandas live games

   Features: beautiful anchor to showcase talent-based, such as singing, dancing, etc.

1.2 real-time interactive live: audio and video conferencing, broadcast and other education, such as Cisco, full-time, sound net

   Product features: real-time multiuser interactive video

II: Architecture contrast

2.1 Pan live entertainment architecture

 Pan live entertainment architecture consists of four parts, anchor end signaling server + + + streaming cloud the general audience

1. anchor initiate signaling to the signaling server, information processing on the server side after server by signaling information, such as creating a room; return to the address of the shared end a streaming cloud of post-treatment success

2. Shared end of their audio and video data collected form rtmp stream pushed to network cdn

3. viewers want to watch anchor end of the program, before sending signaling to the signaling server, the signaling server is added to the anchor room after receiving the information; after treatment returned to the client successfully address a cloud media streaming (ie want to see beautiful anchor of address)

4. cdn network audience to pull to the flow, so that the desired program see

2.2 real-time interactive live architecture

1. The need for real-time interaction with UDP protocol

2. Background server needs to have multiple nodes, one node problem, you can quickly switch to another node; each node ensure load balancing and reduce risk.

3. Control Center is responsible for the state of nodes communicate in real time through the heart; each node periodically report their health index (cpu memory, etc.) to the control center.

Control center data on how decisions are allocated according to the report.

4. the bus: communication nodes and the control center via the interconnect; benefits of the bus can guarantee the security of the heartbeat, a high throughput, better control;

Media Server: UDP protocol RTP packet transmitted to the internal bus, through the internal bus to the media server through the media; final media server the RTP packets into packets RTMP.

 

Guess you like

Origin www.cnblogs.com/HYanqing/p/11480903.html