How to build HTML5 live broadcast?

Friends doing video live, knowing that the current web-lived video live video lived video livelios is the HLS protocol and RTMP protocol. The mobile terminal needs to be relatively high transmission requirements, so the HLS transmission is mainly, and the PC terminal is more focused on video real-time transmission. Therefore, it is mainly RTMP.

For HTML5 live broadcast, the live stream is generally divided into three parts:

  • Video Acquisition: This part is divided into PC terminals and mobile phones, including audio and video input devices on your computer, such as camera recording, mobile phone camera microphones, etc., due to mobile live teams, main collection or mobile terminal Mobile video is main.
  • Live stream video server: That is, the video streaming media server we speak, collect video streams (H264 / ACC encoding) transmitted by video recording, transcoding through streaming media, and outputs RTMP / HLS format video to video playback end.
  • Video broadcast: Generally in the computer, we TSINGSEE peel video is more VLC player, in addition to our own EasyPlayer player, mobile phone player includes Native player, and H5 video label, etc. And is currently based on the Native player of the mobile phone.

For H5 video recording, powerful WebRTC technology can be used. WebRTC we also introduced before, a technology that supports web browsers for real-time voice dialogue or video conversations, is that only on the PC’s Chrome is better, the mobile support is not ideal. At present, TSINGSEE Green Video World Video Service Platform supports webRTC video streaming, you can understand.

Recording video basic processes using WebRTC:

1 Call Window.navigator.WebkitgetUserMedia Get the user’s PC camera video data.

2 Convert the video stream data to Window.WebkitrtcpeerConnection (a video stream data format).

3 Transfer video stream data to the server using WebSCOKET.

H5 playing video also requires us to further break through, first of all, playing HLS video when playing HLS video, the Server side can do a sharper policy, put the TS file on the CDN, the front end can try to do DNS cache, in addition, for It can better implement real-time interaction, or use the RTMP protocol, play by video.js, such as Tsingsee Green Video EasyPlayer.js player.

Scientific note: 3x superimposed ability allows machine evolution than we imagined

Vision + listening + intelligence makes human accumulation knowledge, the philosophical thought + logical thinking + scientific theory makes human science technology such as tiger, and the emergence of mechanical energy + electric energy + light, it is an iterative acceleration The way developed rapidly. When human beings enter the artificial intelligence control, human civilization will develop rapidly in the way.

If we overlay the three ways of human civilization and advancement, use 3X expression, you can see that all knowledge accumulation of human civilization can be summarized as 3x superimposed formulas. If all wisdoms formed by the human civilization process use 3x superimposed formulas, we can see that machine evolution will evolve into intelligent machines with human will, and it will no longer be aware of self-consciousness. The imagination of science fiction is built in 3x superimposed formulas.

Of course, we have seen the machine intelligent development and human civilization development is inverse. We first give the machine’s mechanical energy + electric energy + light energy, and then our knowledge evolution gives the machine’s philosophy + logical thinking + scientific thinking, although we know that the logical thinking ability of the machine is far more than us, but now now We still can’t verify that the second superposition capacity of the machine allows the machine to build self-learning thinking. This prompted us to develop the machine’s research to the first superposed capacity that can produce human civilization, which is given machine vision + hearing + intelligence.

When the 1970s through the 1980s, the scientists began to give the first superposed ability of human beings to give the machine, visual identification + listening identification actually allowed the machine to have human baby’s learning ability. This way to have machine self-learning ability has clearly opened the door of the machine’s wisdom, which means that we may have found a way to give machine wisdom, because by giving machine vision + listening + intelligence, the machine passes already owned Mechanical energy + electric energy + light energy, in improving the philosophical idea of ??human beings + logic thinking + scientific theory, making the science and technology owned by the machine, such as Tiger, this time the machine starts self-evolution, let the 3x superimposed formula find the calculation of self-conscious awakening The formula causes the machine to develop in the direction of manual intelligence.

We may add a mechanical to the machine to build a mutual learning garden through any way. This is often a 3x superimposed ability to improve the machine to improve the 3X overlay capacity, which also makes the machine acquire self-learning ability, and Accept the broader space of human knowledge.

We can envision, when the machine has 3X superposed ability, there is a huge intelligent learning library of knowledge network + neural network + gene network, we can imagine that the machine has the ability to give these human beings, will make the machine Where is the development of?

This may also mean how big the data space we provide, the machine will self-develop in an iterative acceleration. At this time, the artificial intelligence we have said may have begun to develop in the direction of self-consciousness.

In fact, when we own due to various reasons, it has not reached the extent of all human self-consciousness awakening, and the artificial intelligence that wakes up self-consciousness will challenge the humanity, which will force human beings to face themselves, facing human society. Various disadvantages, the development of various interest disputes, find the path to artificial intelligence synchronous development with self-consciousness awakening.

At this time, human social civilization has truly reached the promotion of social peace through self-consciousness, through the self-awareness of artificial intelligence, making it a service of human civilization and peace development.

At this time, human beings may truly realize that the development space of the artificial intelligence of artificial intelligence is much, and it is also aware that we have promoted the self-consciousness of human beings through artificial intelligence.

# 科学 notes #

# 原创 graphic #