<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                [TOC] ## 一、安裝ffmpeg >[info] **1.升級系統** ~~~ yum install epel-release -y yum update -y shutdown -r now ~~~ >[info] **2.安裝Nux Dextop Yum 源** ~~~ rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm ~~~ >[info] **3.安裝FFmpeg 和 FFmpeg開發包** ~~~ yum install ffmpeg ffmpeg-devel -y ~~~ >[info] **4.測試是否安裝成功** ~~~ ffmpeg ~~~ ## 二、Nginx編譯安裝 >[info] **1、下載** 下載`nginx`、`nginx-http-flv-module`到`/opt/tools/`目錄中。`無需解壓`! >[info] **2、安裝系統相關依賴項** ~~~ yum -y install unzip yum -y install gcc-c++ yum -y install pcre pcre-devel yum -y install zlib zlib-devel yum -y install openssl openssl-devel ~~~ >[info] **3、解壓`nginx-http-flv-module-1.2.10.zip`解壓到`/usr/local/nginx`目錄中** >[danger]`/usr/local/nginx`此目錄需自行新建 ~~~ cd /opt/tools unzip nginx-http-flv-module-1.2.10.zip cp -r /opt/tools/nginx-http-flv-module-1.2.10 /usr/local/nginx/nginx-http-flv-module ~~~ >[info] **4、將`nginx-http-flv-module`模板添加到`nginx`中,生成`make`文件 并安裝`nginx`** ~~~ cd /opt/tools tar -zxvf nginx-1.21.5.tar.gz cd nginx-1.21.5 ./configure --prefix=/usr/local/nginx --add-module=/usr/local/nginx/nginx-http-flv-module make && make install ~~~ >[info]**5、修改`nginx`配置文件** ~~~ worker_processes 1; events { worker_connections 1024; } rtmp { server { listen 1985; #監聽的端口 application myapp { live on; hls on; hls_path /usr/local/html/hls;#視頻流存放地址 hls_fragment 5s; hls_playlist_length 15s; hls_continuous on; #連續模式。 hls_cleanup on; #對多余的切片進行刪除。 hls_nested on; #嵌套模式。 } } } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 80; server_name localhost; location / { add_header 'Access-Control-Allow-Origin' '*'; root html; index index.html index.htm; } location /live { flv_live on; } location /flv { add_header 'Access-Control-Allow-Origin' '*'; flv_live on; chunked_transfer_encoding on; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } } ~~~ >[info] **6、啟動`nginx`服務** ~~~ cd /usr/local/nginx/sbin ./nginx ~~~ Tips:停止nginx服務“`./nginx -s stop`” , 重新加載配置 “`./nginx -s reload`” ## 三、關閉防火墻 關閉防火墻 ~~~ systemctl stop firewalld ~~~ 查看防火墻狀態 ~~~ systemctl status firewalld ~~~ ## 四、使用 OBS 推流 1. 打開`OBS 設置面板 > 推流` 1. 將服務設置為:`自定義` 2. 服務器設置為:`rtmp://你的IP地址:1985/myapp/` 3. 串流密鑰設置為房間名:`testv` >[danger] 只要Nginx啟動了 即無需再使用任何命令 如:`ffmpeg -re -i rtmp://127.0.0.1:1985/myapp/testv -c copy -f flv rtmp://127.0.0.1:1985/myapp/testv` > 此類是不需要的 ## 五、常見問題 > 出現服務鏈接失敗、拒絕連接 更改監聽端口號(1985)、應用名(myapp)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看