This commit is contained in:
cxh 2025-10-17 17:28:49 +08:00
parent b2b40cc6ad
commit a76fd20c13

View File

@ -71,8 +71,8 @@ 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 = "camera"; 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;
// 给关键元素起名字src, vc, enc, par, mux, sink, tee // 给关键元素起名字src, vc, enc, par, mux, sink, tee
std::string pipeline_str = "v4l2src name=src device=" + cam.device + std::string pipeline_str = "v4l2src name=src device=" + cam.device +