R
R
roald_iopi2020-06-10 23:28:30
Nginx
roald_iopi, 2020-06-10 23:28:30

Nginx rtmp module hls being created but not available?

NGINX CONF:

worker_processes  1;
events {
    worker_connections  1024;
}


rtmp {
    server {
        listen 1935;
        application live {
            live on;
            interleave on;

            hls on;
            hls_path /stream/hls;
            hls_fragment 15s;
        }
    }
}

http {
    default_type application/octet-stream;
    add_header 'Access-Control-Allow-Origin' '*' always;
    add_header 'Access-Control-Expose-Headers' 'Content-Length';
    server {
        listen 80;
        location /tv {
            root /stream/hls;
        }
    }

    types {
        application/vnd.apple.mpegurl m3u8;
        video/mp2t ts;
        text/html html;
    }
}

hls files are created but do not work in players using ffmpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question