From ce721c173c000e1752de9603e5c575472f1b2da0 Mon Sep 17 00:00:00 2001 From: niexiaorong Date: Tue, 11 Nov 2025 16:53:27 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat(srs):=20=E5=85=BC=E5=AE=B9JC261?= =?UTF-8?q?=E7=9B=B4=E8=BF=9Esrs=E4=B8=80=E4=BA=9B=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- video/srs/conf/docker.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/video/srs/conf/docker.conf b/video/srs/conf/docker.conf index e05d20b..4ce2e9a 100644 --- a/video/srs/conf/docker.conf +++ b/video/srs/conf/docker.conf @@ -23,6 +23,10 @@ rtc_server { candidate $CANDIDATE; } vhost __defaultVhost__ { + publish { + # 30秒客户端主动关闭推流端 + kickoff_for_idle 30; + } hls { enabled off; #hls_fragment 0.2; @@ -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; From 3f7889e0572269cfe3e1d1f2fdaac7398731d918 Mon Sep 17 00:00:00 2001 From: niexiaorong Date: Wed, 12 Nov 2025 10:20:31 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat(=E5=BD=95=E5=83=8F=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=8C=89=E6=97=A5=E6=9C=9F=E5=88=86=E7=BB=84):=20=E5=AE=98?= =?UTF-8?q?=E6=96=B9=E6=96=87=E6=A1=A3=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- video/srs-storage/conf/docker.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video/srs-storage/conf/docker.conf b/video/srs-storage/conf/docker.conf index 28a519b..43038fb 100644 --- a/video/srs-storage/conf/docker.conf +++ b/video/srs-storage/conf/docker.conf @@ -57,7 +57,8 @@ 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]/[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; From 52a287afd125da21a982479bb7bdadffdfa5270c Mon Sep 17 00:00:00 2001 From: Jiang <45348546+jss-tg@users.noreply.github.com> Date: Wed, 12 Nov 2025 14:40:46 +0800 Subject: [PATCH 3/3] =?UTF-8?q?wip:=20=E5=88=A0=E6=8E=89=E8=80=81=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- video/srs-storage/conf/docker.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/video/srs-storage/conf/docker.conf b/video/srs-storage/conf/docker.conf index 43038fb..2bd23a2 100644 --- a/video/srs-storage/conf/docker.conf +++ b/video/srs-storage/conf/docker.conf @@ -57,7 +57,6 @@ 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秒