Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion video/srs-storage/conf/docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ vhost __defaultVhost__ {
enabled on;
# .flv .mp4
#dvr_path ./objs/nginx/html/[app]/[stream]/[timestamp].flv;
dvr_path ./objs/nginx/html/dvr/[app]/[stream]/[timestamp].mp4;
dvr_path ./objs/nginx/html/dvr/[app]/[2006]-[01]-[02]/[stream]/[timestamp].mp4;
dvr_plan segment;
# 分割时长 30=30秒 900=900秒
dvr_duration 90;
Expand Down
10 changes: 10 additions & 0 deletions video/srs/conf/docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ rtc_server {
candidate $CANDIDATE;
}
vhost __defaultVhost__ {
publish {
# 30秒客户端主动关闭推流端
kickoff_for_idle 30;
}
hls {
enabled off;
#hls_fragment 0.2;
Expand All @@ -36,6 +40,12 @@ vhost __defaultVhost__ {
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
has_audio on;
has_video on;
# 猜测是否存在音视频轨
guess_has_av on;
# 丢弃不匹配配置的帧
drop_if_not_match off;
}
rtc {
enabled on;
Expand Down