国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
Nginx 的RTMP打流模塊配置

config配置文件:

user www www;
worker_processes  1;

error_log  logs/error.log  debug;

#pid        logs/nginx.pid;

events {
    worker_connections  65535;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    log_format  main  '[$time_local][$remote_addr][$http_x_forwarded_for] $status "$request" "$http_referer" "$http_user_agent"';

    access_log  logs/access.log  main;

    sendfile        on;
    keepalive_timeout  65;

    server {
        set  $wwwroot  /home/www/node/html;
        
        listen       80;
        server_name  localhost;
        index        index.html;
        root         $wwwroot;
        access_log   logs/node.access.log  main;

        location ~ .*\.(js|css)?$ {
            expires      2d;
            access_log   off;
        }
        
        #html
        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|rar|zip|txt|mid|doc|ppt|pdf|xls)$  {
            expires      30d;
            access_log   off;
        }
        
        location /rtmp/stat {
            rtmp_stat all;
            rtmp_stat_stylesheet rtmpstat.xsl;
        }
        
        location /rtmpstat.xsl {
        }
        
        location /rtmp/control {
            rtmp_control all;
        }
        
        location ~* /hls/.*\.m3u8$ {
            types {
                application/vnd.apple.mpegurl m3u8;
            }
            root /tmp;
            add_header Cache-Control no-cache;
            add_header Access-Control-Allow-Origin *;
        }

        location ~* /hls/.*\.ts$ {
            types {
                video/mp2t ts;
            }
            root /tmp;
            expires    1m;
            add_header Cache-Control public;
            add_header Access-Control-Allow-Origin *;
        }

        #error_page  404              /404.html;

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        
        location / {
            
        }

    #控制rtmp模塊
    location /control {
        rtmp_control all;
    }
        
    }

}

rtmp {
    server {
        listen 1935;
        ping 5s;
    timeout 10s;
        notify_method get;
    drop_idle_publisher 10s;
        
    application live {  ##這個是直播節(jié)點
        live on;

        #exec /home/www/amaiStream/streamPushToLiveNode.sh;
        exec /home/www/bin/rtmpDispatch.sh $name 
                exec_kill_signal term;
            exec_publish_done /home/www/bin/pubDone.sh $name;
            #設(shè)置是否保存錄像(手動)
                recorder rec {
                       record all manual;              #在活動服務(wù)器進行錄像,手動控制
                       record_unique on;
                       record_notify on;
                       record_max_size 512M;
               #record_interval 30s;
                       record_path /data/recorded_flvs;
                       record_suffix wsl.flv;          #文件的后綴

                       #錄像停止后,先判斷是否能上傳,允許后則將錄像上傳到OSS/
                       #exec_record_done /home/www/bin/rtmpRecorded.sh $name $path $filename $basename $dirname;
                }

    }

       application hls {
            live on;
            hls on;
            hls_path /tmp/hls;
            #live, event
            hls_type live;

            #hls_sync 100ms;

            #sequential, timestamp, system
            hls_fragment_naming system;
            hls_fragment_naming_granularity 500;

            #plain, aligned
            hls_fragment_slicing aligned;

            hls_fragment 3s;
            #hls_fragment 5s;
            hls_playlist_length 15s;
        }

    }
}
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
視頻直播點播nginx
基于Nginx搭建RTMP/HLS視頻直播服務(wù)器
不會搭建視頻直播服務(wù)?教你十分鐘實現(xiàn)視頻推流拉流服務(wù)
利用nginx搭建RTMP視頻點播、直播、HLS服務(wù)器
Nginx RTMP 功能研究和hls配置
nginx+nginx-rtmp-module+ffmpeg搭建流媒體服務(wù)器
更多類似文章 >>
生活服務(wù)
分享 收藏 導長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服