1
This commit is contained in:
parent
a76fd20c13
commit
b73ff6d300
@ -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 +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user