1. Create a new rtmp directory in the nginx source directory and enter git clone https://github.com/arut/nginx-rtmp-module.git 2. Recompile nginx code as follows
3. After completing the installation. Open nginx.conf and add the following code after http{server...} rtmp{ server{ listen 1935; chunk_size 4000; application hls live on; hls on; hls_path /your server path is used to store cache files. Must be writable; hls_fragment 5s; } } } Then create a new host configuration server { listen 8851; location /index.html { root /website storage directory; } location / {# return 403; # Serve HLS fragments types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; } root /same as above, for caching; expires -1; } } After completing the above configuration. Just download a software called open broadcaster software and use it to push the stream (note that you can also use ffmpeg to push the stream). Software usage as shown in screenshots Then click Start Streaming. Download and open VLC player (streaming). Enter rtmp://your website:1935/hls/the password in the picture above and it will be ok. Successful online live broadcast The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Solution to the problem of Failed when configuring IDEA to connect to MYSQL database
>>: Vue implements a simple shopping cart example
Table of contents 1. Introduction 2. Implementati...
Table of contents 01 Introduction to GTID 02 How ...
It's easy to send messages to other users in ...
Table of contents webpack5 Official Start Buildin...
To achieve an effect similar to Windows forms, dr...
This article uses an example to describe the crea...
This article mainly records a tomcat process, and...
This article records the installation and configu...
Table of contents 1. Offline installation 2. Onli...
Preface Starting from MySQL 5.7.11, MySQL support...
The default remote repository of Nexus is https:/...
Problem Description 1. Database of the collection...
This article shares the specific code for JavaScr...
Whether the a tag opens a new page: (1) Baidu Ency...
Preface Starting from React 16, the concept of Er...