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;

http_api {
    enabled         off;
    listen          127.0.0.1:1985;
}

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

vhost __defaultVhost__ {
    # timestamp correction
    # mix_correct             on;

    http_hooks {
        enabled         off;
        on_publish      http://127.0.0.1:8085/api/v1/streams;
        on_unpublish    http://127.0.0.1:8085/api/v1/streams;
    }

    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