Blame view

trunk/conf/srs.conf 2.7 KB
1
# the listen ports, split by space.
2
listen              1935;
3 4 5 6 7
# the default chunk size is 128, max is 65536,
# some client does not support chunk size change,
# however, most clients supports it and it can improve 
# performance about 10%.
# if not specified, set to 4096.
8
chunk_size          65000;
9 10
# vhost list, the __defaultVhost__ is the default vhost
# for which cannot identify the required vhost.
11
vhost __defaultVhost__ {
winlin authored
12 13 14 15
    enabled         on;
    gop_cache       on;
    hls             on;
    hls_path        ./hls;
16
}
17
# the vhost disabled.
winlin authored
18 19 20 21 22 23
vhost removed.vhost.com {
    # whether the vhost is enabled.
    # if off, all request access denied.
    # default: on
    enabled         off;
}
winlin authored
24 25 26 27 28 29 30 31 32 33
# the vhost with hls specified.
vhost no-hls.vhost.com {
    # whether the hls is enabled.
    # if off, donot write hls(ts and m3u8) when publish.
    # default: on
    hls             on;
    # the hls output path.
    # default: ./hls
    hls_path        /data/nginx/html/hls;
}
34 35 36 37 38 39 40
# the vhost with hls disabled.
vhost no-hls.vhost.com {
    # whether the hls is enabled.
    # if off, donot write hls(ts and m3u8) when publish.
    # default: on
    hls             off;
}
41
# the vhost for min delay, donot cache any stream.
winlin authored
42 43 44 45 46 47 48 49 50
vhost min.delay.com {
    # whether cache the last gop.
    # if on, cache the last gop and dispatch to client,
    #   to enable fast startup for client, client play immediately.
    # if off, send the latest media data to client,
    #   client need to wait for the next Iframe to decode and show the video.
    # set to off if requires min delay;
    # set to on if requires client fast startup.
    # default: on
51 52
    gop_cache       off;
}
53
# the vhost for antisuck.
winlin authored
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
vhost refer.anti_suck.com {
    # the common refer for play and publish.
    # if the page url of client not in the refer, access denied.
    # if not specified this field, allow all.
    # default: not specified.
    refer           github.com github.io;
    # refer for publish clients specified.
    # the common refer is not overrided by this.
    # if not specified this field, allow all.
    # default: not specified.
    refer_publish   github.com github.io;
    # refer for play clients specified.
    # the common refer is not overrided by this.
    # if not specified this field, allow all.
    # default: not specified.
    refer_play      github.com github.io;
}
71 72 73 74 75 76 77 78 79 80 81
# config for the pithy print,
# which always print constant message specified by interval,
# whatever the clients in concurrency.
pithy_print {
    # shared print interval for all publish clients, in milliseconds.
    # if not specified, set to 1100.
    publish         2000;
    # shared print interval for all play clients, in milliseconds.
    # if not specified, set to 1300.
    play            3000;  
}
82