1, the preface






























2. Host and system configuration



First, WebRTC requirements are 64-bit machine 8G memory, preferably more than 16G memory:









Second, at least 100G disk space, NTFS format:









Visual Studio 2015 Update 3 will compile successfully only with this version of VS:









Fourth, the operating system is Windows7 or updated English version:





3. (Optional) Install the VM.









Note the following points when installing a VM:





  • In order to make better use of the hardware, you need to make sure that the virtualization option is enabled in the BOIS of your machine, which has a great impact on the performance of the VIRTUAL machine.
  • After installing the system on the virtual machine, be sure to install the virtual enhancement driver so that the virtual machine can display in full screen. Won’t but ask Baidu.


4, Install Visual Stuido notes









Select Custom Install when installing VS and select the following modules:





  • Select install: Visual C++ and check the three subdirectories that contain MFC.
  • Install: Universal Windows Apps Development Tools: Tools (1.4.1) and Windows 10 SDK (10.0.14393).



Note:












Note:


5. Install depot_tools



depot_tools






First of all:






Second:





Note: It must be placed at the beginning of the PATH environment variable.








Default: depot_tools uses Google internal versions.



Finally:


6. Obtain WebRTC code



To get the WebRTC code, run the following command:



                                                                                            

                                                                                                
1. mkdir webrtc-checkout

                                                                                                
2. cd webrtc-checkout

                                                                                                
3. fetch --nohooks webrtc

                                                                                                
4. gclient sync

                                                                                            

                                                                                        Copy the code



Note:


7. Compile and generate project files



To compile WebRTC, run the following command:



                                                                                            

                                                                                                
$ cd src

                                                                                                
$ gn gen out/Default

                                                                                            

                                                                                        Copy the code



After successful compilation, execute the following command to generate the VS project file:



                                                                                            

                                                                                                
$ gn gen --ide=vs out\Default

                                                                                            

                                                                                        Copy the code





8. Summary of this paper















Click here to enter


Appendix: More real-time audio and video development articles



Instant messaging audio and video development (I) : a theoretical overview of video codec



Instant messaging audio and video development (ii) : digital video introduction to video codec



Instant messaging audio and video development (iii) : coding basis of video codec



Instant communication audio and video development (iv) : introduction to video codec predictive technology



Instant messaging audio and video development (5) : Understanding the mainstream video coding technology H.264



Instant messaging audio and Video development (vi) : How to start learning audio codec technology



Instant messaging audio and Video development (7) : Introduction to audio fundamentals and coding principles



Instant messaging audio and Video development (8) : common real-time voice communication coding standards



Instant messaging audio and Video development (ix) : Overview of echo and echo cancellation for real-time voice communications



Instant messaging audio and Video development (10) : real-time voice communication echo cancellation technology details



Instant communication audio and video development (11) : Real-time voice communication packet loss compensation technology details



Instant messaging audio and video development (12) : Multi-party real-time audio and video chat architecture discussion



Instant communication audio and Video development (13) : features and advantages of real-time video coding H.264



Instant communication audio and Video development (xiv) : Introduction of real-time audio and video data transmission protocols



Instant messaging audio and video development (15) : Talk about P2P and real-time audio and video applications



Instant Messaging audio and Video development (16) : Some suggestions for mobile real-time audio and video development



Instant communication audio and video development (17) : video coding H.264, VP8 past life



Brief introduction of audio processing and coding compression techniques in real-time voice chat



Netease Video Cloud technology sharing: Audio processing and compression technology quick start



Learn the basic knowledge of RFC3550: RTP/RTCP real-time transmission protocol



The advantages and disadvantages of open source real-time audio and video technology WebRTC are introduced



Conscience Sharing: WebRTC Zero-Base Developer Tutorial (Chinese)



Application of RTP/RTCP data transmission protocol in WebRTC



Research on Real-time Streaming Media Technology Based on RTMP Data Transfer Protocol



Audio Net Architect on difficulties in Implementing real-time Audio and Video Cloud (Video interview)



Brief discussion on the technical essentials of developing real-time video live broadcasting platform



Still testing real-time voice call quality with Hello hello? This article teaches you the scientific evaluation method!



To realize the practice sharing of 1080P real-time audio and video broadcast with a delay of less than 500 milliseconds



Practice of real-time video broadcast technology on mobile terminal: How to achieve real-time second open, smooth and smooth



How to test your live audio and video solution in the easiest way



Technology revealed: Facebook live video with millions of fans interacting



This section describes the working principles of end-to-end encryption (E2EE) in real-time audio and video chat



Detailed explanation of real-time audio and video broadcast technology on mobile terminal (I) : Introduction



Mobile terminal real-time audio and video broadcast technology details (ii) : acquisition



Mobile terminal real-time audio and video broadcast technology details (three) : processing



Mobile terminal real-time audio and video broadcast technology details (IV) : coding and packaging



Mobile terminal real-time audio and video broadcast technology details (five) : push stream and transmission



Mobile terminal real-time audio and video broadcast technology details (six) : delay optimization



Combine theory with practice: realize a simple real-time video live broadcast based on HTML5



IM real-time audio and video chat echo cancellation technology in detail



Brief introduction to several key technical indicators that directly affect user experience in real-time audio and video live broadcast



How to optimize the transmission mechanism to achieve ultra-low latency of real-time audio and video?



First disclosure: How does Kuaishou achieve millions of viewers watching the live broadcast can still open seconds and no delay?



Real-time communication RTC stack: video codec



Open source real-time audio and video technology WebRTC under Windows concise compilation tutorial



More of the same…