WWBN / AVideo-Encoder

Encoder Server for AVideo Platform Open-Source
https://platform.avideo.com
GNU Affero General Public License v3.0
149 stars 188 forks source link

FFmpeg Encode to HLS #14

Open dlws21 opened 6 years ago

dlws21 commented 6 years ago

How can I encode to HLS with various quality for streaming?

DanielnetoDotCom commented 6 years ago

you have to change the nginx.conf file, I am not sure what to change, but I know it is possible

rollykaunang commented 6 years ago

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;
    }
DanielnetoDotCom commented 6 years ago

what is this?