From 25cd676ef7ad6ae9d90b384d4da9ddbfee7c1958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=A5=9A?= <771730766@qq.com> Date: Mon, 7 Feb 2022 15:59:15 +0800 Subject: [PATCH] =?UTF-8?q?Updated=20GB28181=E6=8E=A8=E6=B5=81=20(markdown?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GB28181推流.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GB28181推流.md b/GB28181推流.md index 969bacd..fc879d0 100644 --- a/GB28181推流.md +++ b/GB28181推流.md @@ -27,9 +27,9 @@ ZLMediaKit默认开启10000端口用于接收UDP/TCP的GB28181推流,由于国 ## 高阶使用 -在推流给10000端口时,您可能发现有个缺陷,就是stream_id是ssrc,比较抽象,可能还没法控制。另外还需说明的时,单端口情况下,如果是udp推流,那么性能会比较低下,原因是这样只能发挥一条线程的算力(tcp例外,可以发挥多线程性能)。 +在推流给10000端口时,您可能发现有个缺陷,就是stream_id是ssrc,比较抽象,可能还没法控制。 -那么我们能否自定义stream_id? 答案是肯定的,ZLMediaKit通过[restful api](https://github.com/xia-chu/ZLMediaKit/wiki/MediaServer%E6%94%AF%E6%8C%81%E7%9A%84HTTP-API#24indexapiopenrtpserver)可以动态开启国标收流端口(同时支持udp/tcp模式), 这样您既能控制流id,也能发挥多线程的效力。 +那么我们能否自定义stream_id? 答案是肯定的,ZLMediaKit通过[restful api](https://github.com/xia-chu/ZLMediaKit/wiki/MediaServer%E6%94%AF%E6%8C%81%E7%9A%84HTTP-API#24indexapiopenrtpserver)可以动态开启国标收流端口(同时支持udp/tcp模式)。 在使用openRtpServer接口动态开启国标收流端口后,这个端口只能产生一个流,也就是说,一个摄像头需要一个服务器端口用于接收国标推流。