1
This commit is contained in:
parent
7cce2abdca
commit
6a8863c4b6
@ -65,12 +65,8 @@ GstElement* RTMPManager::create_pipeline(const Camera& cam)
|
||||
|
||||
"! videoscale "
|
||||
|
||||
// ⭐ 关键:重建时间轴
|
||||
"! videorate "
|
||||
"! video/x-raw,framerate=30/1 "
|
||||
|
||||
// ⭐ 输出尺寸(注意这里前后都有空格)
|
||||
"! video/x-raw,width=" +
|
||||
"! video/x-raw,framerate=30/1,width=" +
|
||||
std::to_string(cam.width) + ",height=" + std::to_string(cam.height) +
|
||||
" "
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user