Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
jb-alvarado edited this page Apr 29, 2018 · 4 revisions

Here is an config example for srs:

listen              1935;
max_connections     20;
daemon              on;
pid                 /usr/local/srs/objs/srs.pid;
srs_log_tank        file; # console;
srs_log_file        /var/log/srs.log;
ff_log_dir          /dev/null;

# can be: verbose, info, trace, warn, error
srs_log_level       warn;

stats {
    network         0;
    disk            sda vda xvda xvdb;
}

vhost __defaultVhost__ {
    # timestamp correction
    # mix_correct             on;

    hls {
        enabled         on;
        hls_path        /var/www/ffplayout;
        hls_fragment    10;
        hls_window      60;
        hls_cleanup     on;
        hls_dispose     1;
        hls_m3u8_file   [app]/[stream].m3u8;
        hls_ts_file     [app]/[stream]-[seq].ts;
    }
}
Clone this wiki locally