2014-05-22 09:13:57 +00:00
|
|
|
# the config for srs to dvr in segment mode
|
2015-11-11 02:45:45 +00:00
|
|
|
# @see https://github.com/ossrs/srs/wiki/v3_CN_DVR
|
2014-05-22 09:13:57 +00:00
|
|
|
# @see full.conf for detail config.
|
|
|
|
|
|
|
|
listen 1935;
|
2014-07-26 07:34:45 +00:00
|
|
|
max_connections 1000;
|
2017-02-09 06:17:36 +00:00
|
|
|
daemon off;
|
|
|
|
srs_log_tank console;
|
2014-05-22 09:13:57 +00:00
|
|
|
vhost __defaultVhost__ {
|
|
|
|
dvr {
|
|
|
|
enabled on;
|
2015-03-23 14:06:18 +00:00
|
|
|
dvr_path ./objs/nginx/html/[app]/[stream].[timestamp].flv;
|
2014-05-22 09:13:57 +00:00
|
|
|
dvr_plan segment;
|
|
|
|
dvr_duration 30;
|
2014-09-25 02:59:29 +00:00
|
|
|
dvr_wait_keyframe on;
|
2014-05-22 09:13:57 +00:00
|
|
|
}
|
|
|
|
}
|