1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix #222, the dvr path rule changed.

This commit is contained in:
winlin 2015-03-23 22:06:18 +08:00
parent 02addf61f7
commit fcab17741c
4 changed files with 7 additions and 7 deletions

View file

@ -1,5 +1,5 @@
# the config for srs to dvr in segment mode # the config for srs to dvr in segment mode
# @see https://github.com/winlinvip/simple-rtmp-server/wiki/v1_CN_DVR # @see https://github.com/winlinvip/simple-rtmp-server/wiki/v2_CN_DVR
# @see full.conf for detail config. # @see full.conf for detail config.
listen 1935; listen 1935;
@ -7,7 +7,7 @@ max_connections 1000;
vhost __defaultVhost__ { vhost __defaultVhost__ {
dvr { dvr {
enabled on; enabled on;
dvr_path ./objs/nginx/html; dvr_path ./objs/nginx/html/[app]/[stream].[timestamp].flv;
dvr_plan segment; dvr_plan segment;
dvr_duration 30; dvr_duration 30;
dvr_wait_keyframe on; dvr_wait_keyframe on;

View file

@ -1,5 +1,5 @@
# the config for srs to dvr in session mode # the config for srs to dvr in session mode
# @see https://github.com/winlinvip/simple-rtmp-server/wiki/v1_CN_DVR # @see https://github.com/winlinvip/simple-rtmp-server/wiki/v2_CN_DVR
# @see full.conf for detail config. # @see full.conf for detail config.
listen 1935; listen 1935;
@ -7,7 +7,7 @@ max_connections 1000;
vhost __defaultVhost__ { vhost __defaultVhost__ {
dvr { dvr {
enabled on; enabled on;
dvr_path ./objs/nginx/html; dvr_path dvr_path ./objs/nginx/html/[app]/[stream].[timestamp].flv;
dvr_plan session; dvr_plan session;
} }
} }

View file

@ -326,8 +326,8 @@ vhost dvr.srs.com {
# @see https://github.com/winlinvip/simple-rtmp-server/wiki/v2_CN_DVR#custom-path # @see https://github.com/winlinvip/simple-rtmp-server/wiki/v2_CN_DVR#custom-path
# @see https://github.com/winlinvip/simple-rtmp-server/wiki/v2_EN_DVR#custom-path # @see https://github.com/winlinvip/simple-rtmp-server/wiki/v2_EN_DVR#custom-path
# segment,session apply it. # segment,session apply it.
# default: ./objs/nginx/html # default: ./objs/nginx/html/[app]/[stream].[timestamp].flv
dvr_path ./objs/nginx/html; dvr_path ./objs/nginx/html/[app]/[stream].[timestamp].flv;
# the duration for dvr file, reap if exeed, in seconds. # the duration for dvr file, reap if exeed, in seconds.
# segment apply it. # segment apply it.
# session,append ignore. # session,append ignore.

View file

@ -58,7 +58,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define SRS_CONF_DEFAULT_HLS_MOUNT "[vhost]/[app]/[stream].m3u8" #define SRS_CONF_DEFAULT_HLS_MOUNT "[vhost]/[app]/[stream].m3u8"
#define SRS_CONF_DEFAULT_HLS_ACODEC "aac" #define SRS_CONF_DEFAULT_HLS_ACODEC "aac"
#define SRS_CONF_DEFAULT_HLS_VCODEC "h264" #define SRS_CONF_DEFAULT_HLS_VCODEC "h264"
#define SRS_CONF_DEFAULT_DVR_PATH "./objs/nginx/html" #define SRS_CONF_DEFAULT_DVR_PATH "./objs/nginx/html/[app]/[stream].[timestamp].flv"
#define SRS_CONF_DEFAULT_DVR_PLAN_SESSION "session" #define SRS_CONF_DEFAULT_DVR_PLAN_SESSION "session"
#define SRS_CONF_DEFAULT_DVR_PLAN_SEGMENT "segment" #define SRS_CONF_DEFAULT_DVR_PLAN_SEGMENT "segment"
#define SRS_CONF_DEFAULT_DVR_PLAN_APPEND "append" #define SRS_CONF_DEFAULT_DVR_PLAN_APPEND "append"