Nginx RTMP可以設定1080p 60fps的畫面接近零延遲嗎?
小弟目前的設定接收串流進來的影像到播放出來會延遲2~5秒左右!
希望各位大大能幫助小弟盡可能做到無感的延遲!
在設定檔裡面如何設定較好!
以下是我的設定檔

worker_processes 1;

error_log logs/error.log info;

events {
worker_connections 1024;
}

rtmp {
server {
listen 1935;
chunk_size 4096;

application demo {
live on;
record off;
}

application live {
live on;
}

application hls {
live on;
hls on;
hls_path temp/hls;
hls_fragment 8s;
}
}
}

http {
server {
listen 8080;

location / {
root html;
}

location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}

location /stat.xsl {
root html;
}

location /hls {
#server hls fragments
types{
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
alias temp/hls;
expires -1;
}
}
}

基本上就是預設的設定檔內容小弟都沒有修改過!