From 769f5dcf9eb3c5c90928b380ef328fb32c5b3607 Mon Sep 17 00:00:00 2001 From: cxh Date: Mon, 29 Dec 2025 13:14:00 +0800 Subject: [PATCH] 1 --- src/rtmp_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtmp_manager.cpp b/src/rtmp_manager.cpp index 69b9f8d..d7a9e49 100644 --- a/src/rtmp_manager.cpp +++ b/src/rtmp_manager.cpp @@ -74,7 +74,7 @@ GstElement* RTMPManager::create_pipeline(const Camera& cam) const std::string app = "camera"; // 两个不同的 SRS 实例:live 用于远控,record 用于录像 // const std::string live_rtmp = "rtmp://36.153.162.171:19435/" + app + "/" + stream_name + "?vhost=live"; - const std::string live_rtmp = "rtmp://36.153.162.171:19435/" + app + "/" + stream_name; + const std::string live_rtmp = "rtmp://36.153.162.171:19435/" + app + "/" + stream_name + "?vhost=live"; const std::string record_rtmp = "rtmp://127.0.0.1:2935/" + app + "/" + stream_name + "?vhost=record"; // 双路推流管线:一份流编码后 tee 分支分别送往两个 flvmux+rtmpsink