mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
Merge branch '2.0release' into develop
This commit is contained in:
commit
d16ae193f6
4 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
# 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.
|
||||
|
||||
listen 1935;
|
||||
|
@ -7,7 +7,7 @@ max_connections 1000;
|
|||
vhost __defaultVhost__ {
|
||||
dvr {
|
||||
enabled on;
|
||||
dvr_path ./objs/nginx/html;
|
||||
dvr_path ./objs/nginx/html/[app]/[stream].[timestamp].flv;
|
||||
dvr_plan segment;
|
||||
dvr_duration 30;
|
||||
dvr_wait_keyframe on;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# 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.
|
||||
|
||||
listen 1935;
|
||||
|
@ -7,7 +7,7 @@ max_connections 1000;
|
|||
vhost __defaultVhost__ {
|
||||
dvr {
|
||||
enabled on;
|
||||
dvr_path ./objs/nginx/html;
|
||||
dvr_path dvr_path ./objs/nginx/html/[app]/[stream].[timestamp].flv;
|
||||
dvr_plan session;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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_EN_DVR#custom-path
|
||||
# segment,session apply it.
|
||||
# default: ./objs/nginx/html
|
||||
dvr_path ./objs/nginx/html;
|
||||
# default: ./objs/nginx/html/[app]/[stream].[timestamp].flv
|
||||
dvr_path ./objs/nginx/html/[app]/[stream].[timestamp].flv;
|
||||
# the duration for dvr file, reap if exeed, in seconds.
|
||||
# segment apply it.
|
||||
# session,append ignore.
|
||||
|
|
|
@ -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_ACODEC "aac"
|
||||
#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_SEGMENT "segment"
|
||||
#define SRS_CONF_DEFAULT_DVR_PLAN_APPEND "append"
|
||||
|
|
Loading…
Reference in a new issue