Demo entry 6746503

11

   

Submitted by anonymous on May 30, 2018 at 10:00
Language: HTML+Twig. Code size: 977 Bytes.

# the config for srs to delivery hls
# @see https://github.com/ossrs/srs/wiki/v1_CN_SampleHLS
# @see full.conf for detail config.

listen              1935;
max_connections     1000;
daemon              off;
srs_log_tank        console;
vhost __defaultVhost__ {
    hls {
        enabled         on;
        hls_fragment    10;
        hls_window      60;
        hls_path        /tmp;
        hls_m3u8_file   [app]/[stream].m3u8;
        hls_ts_file     [app]/[stream]-[seq].ts;
    }
	ingest livestream{
        enabled      on;
        input {
            type    stream;
            url     rtsp://xxxxxxxxxxxxxxxxxx;
        }
        ffmpeg      /usr/bin/ffmpeg;
        engine {
            enabled          on;
            perfile {
                rtsp_transport tcp;
            }
            vcodec copy;
            acodec copy;
            output          rtmp://127.0.0.1:[port]/hls?vhost=[vhost]/livestream;
        }
    }	
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).