i have installed Nginx, with adaptive bit rate playback feature on my Ubuntu server v20. i can stream to my server successfully from OBS. But my VLC player can't playback the source URL.
My OBS stream out url is as below
URL- rtmp://MYIP/streaming
Stream Key - test
When i am trying to play this adaptive bit rate video from my vlc player entering the url as below
http://MYIP:8080/live/test.m3u8
The vlc can't play the source. My nginx config file is as below
user www-data;
worker_processes auto;
worker_rlimit_nofile 8192;
pid /run/nginx.pid;
rtmp_auto_push on;
events {
worker_connections 4096;
}
rtmp {
server {
listen 1935;
chunk_size 4096;
max_message 1M;
application streaming {
live on;
exec ffmpeg -i rtmp://localhost/streaming/$name
-c:a aac -b:a 32k -c:v libx264 -b:v 128K -f flv rtmp://localhost/hls/$name_low
-c:a aac -b:a 64k -c:v libx264 -b:v 256k -f flv rtmp://localhost/hls/$name_mid
-c:a aac -b:a 128k -c:v libx264 -b:v 512K -f flv rtmp://localhost/hls/$name_hi;
}
application hls {
live on;
hls on;
hls_path /etc/nginx/live;
hls_nested on;
hls_fragment 6s;
hls_playlist_length 30s;
hls_variant _low BANDWIDTH=160000;
hls_variant _mid BANDWIDTH=320000;
hls_variant _hi BANDWIDTH=640000;
}
}
}
http {
server {
listen 8080;
root /etc/nginx;
location /live {
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
add_header Cache-Control no-cache;
}
}
}
Please point me what should be exact url for vlc player placyback.