This commit is contained in:
cxh 2025-10-17 17:08:26 +08:00
parent 0b53cf04d0
commit c2c3d91d76

View File

@ -71,7 +71,7 @@ GstElement *RTMPManager::create_pipeline(const Camera &cam)
const int bitrate = cam.bitrate; const int bitrate = cam.bitrate;
const std::string stream_name = cam.name + "_main"; const std::string stream_name = cam.name + "_main";
const std::string app = "record"; const std::string app = "live";
const std::string location = "rtmp://127.0.0.1:1935/" + app + "/" + stream_name + "?vhost=" + app; const std::string location = "rtmp://127.0.0.1:1935/" + app + "/" + stream_name + "?vhost=" + app;
// 给关键元素起名字src, vc, enc, par, mux, sink, tee // 给关键元素起名字src, vc, enc, par, mux, sink, tee