This commit is contained in:
cxh 2026-01-09 10:21:16 +08:00
parent 7cce2abdca
commit 6a8863c4b6

View File

@ -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) +
" "