Skip to content

Commit f20561a

Browse files
xiaorongniejss-tg
andauthored
feat(srs): 兼容JC261直连srs一些选项配置 (#30)
* feat(srs): 兼容JC261直连srs一些选项配置 * feat(录像文件按日期分组): 官方文档格式 * wip: 删掉老的 --------- Co-authored-by: Jiang <[email protected]>
1 parent b875064 commit f20561a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

video/srs-storage/conf/docker.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ vhost __defaultVhost__ {
5757
enabled on;
5858
# .flv .mp4
5959
#dvr_path ./objs/nginx/html/[app]/[stream]/[timestamp].flv;
60-
dvr_path ./objs/nginx/html/dvr/[app]/[stream]/[timestamp].mp4;
60+
dvr_path ./objs/nginx/html/dvr/[app]/[2006]-[01]-[02]/[stream]/[timestamp].mp4;
6161
dvr_plan segment;
6262
# 分割时长 30=30秒 900=900秒
6363
dvr_duration 90;

video/srs/conf/docker.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ rtc_server {
2323
candidate $CANDIDATE;
2424
}
2525
vhost __defaultVhost__ {
26+
publish {
27+
# 30秒客户端主动关闭推流端
28+
kickoff_for_idle 30;
29+
}
2630
hls {
2731
enabled off;
2832
#hls_fragment 0.2;
@@ -36,6 +40,12 @@ vhost __defaultVhost__ {
3640
http_remux {
3741
enabled on;
3842
mount [vhost]/[app]/[stream].flv;
43+
has_audio on;
44+
has_video on;
45+
# 猜测是否存在音视频轨
46+
guess_has_av on;
47+
# 丢弃不匹配配置的帧
48+
drop_if_not_match off;
3949
}
4050
rtc {
4151
enabled on;

0 commit comments

Comments
 (0)