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