2014-05-22 17:13:57 +08:00
|
|
|
# the config for srs to dvr in segment mode
|
2025-07-05 09:32:11 -04:00
|
|
|
# @see https://ossrs.io/lts/en-us/docs/v7/doc/dvr
|
2014-05-22 17:13:57 +08:00
|
|
|
# @see full.conf for detail config.
|
|
|
|
|
|
2014-07-26 15:34:45 +08:00
|
|
|
max_connections 1000;
|
2017-02-09 14:17:36 +08:00
|
|
|
daemon off;
|
|
|
|
|
srs_log_tank console;
|
2025-08-27 19:27:23 -04:00
|
|
|
|
|
|
|
|
# RTMP server configuration
|
|
|
|
|
rtmp {
|
|
|
|
|
listen 1935;
|
|
|
|
|
}
|
2014-05-22 17:13:57 +08:00
|
|
|
vhost __defaultVhost__ {
|
|
|
|
|
dvr {
|
|
|
|
|
enabled on;
|
2015-03-23 22:06:18 +08:00
|
|
|
dvr_path ./objs/nginx/html/[app]/[stream].[timestamp].flv;
|
2014-05-22 17:13:57 +08:00
|
|
|
dvr_plan segment;
|
|
|
|
|
dvr_duration 30;
|
2014-09-25 10:59:29 +08:00
|
|
|
dvr_wait_keyframe on;
|
2014-05-22 17:13:57 +08:00
|
|
|
}
|
|
|
|
|
}
|