This commit is contained in:
cxh 2025-12-26 18:03:24 +08:00
parent fecd063fb7
commit a1554f3687

View File

@ -73,7 +73,8 @@ GstElement* RTMPManager::create_pipeline(const Camera& cam)
const std::string stream_name = cam.name + "_main"; const std::string stream_name = cam.name + "_main";
const std::string app = "camera"; const std::string app = "camera";
// 两个不同的 SRS 实例live 用于远控record 用于录像 // 两个不同的 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 + "?vhost=live";
const std::string live_rtmp = "rtmp://36.153.162.171:19435/" + app + "/" + stream_name;
const std::string record_rtmp = "rtmp://127.0.0.1:2935/" + app + "/" + stream_name + "?vhost=record"; const std::string record_rtmp = "rtmp://127.0.0.1:2935/" + app + "/" + stream_name + "?vhost=record";
// 双路推流管线:一份流编码后 tee 分支分别送往两个 flvmux+rtmpsink // 双路推流管线:一份流编码后 tee 分支分别送往两个 flvmux+rtmpsink