Open dlws21 opened 6 years ago
you have to change the nginx.conf file, I am not sure what to change, but I know it is possible
In nginx config file enable rtmp server below it put this script
application hls { live on;
# Static pull is started at nginx start
exec_static /home/xtreamcodes/iptv_xtream_codes/bin/ffmpeg -re -i http://example.com/example.mp4 -acodec aac -strict -2 -vcodec copy -f flv rtmp://localhost/hls/chunks;
hls on;
hls_path /mnt/hls/;
hls_fragment 3;
hls_playlist_length 60;
# disable consuming the stream from nginx as rtmp
deny play all;
}
what is this?
How can I encode to HLS with various quality for streaming?