This commit is contained in:
cxh 2025-10-17 17:31:06 +08:00
parent a76fd20c13
commit b73ff6d300

View File

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