From 6a8863c4b6056e344c7cf5c62d0ba29eb913f5d1 Mon Sep 17 00:00:00 2001 From: cxh Date: Fri, 9 Jan 2026 10:21:16 +0800 Subject: [PATCH] 1 --- src/rtmp_manager.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rtmp_manager.cpp b/src/rtmp_manager.cpp index d601a4e..9ad1131 100644 --- a/src/rtmp_manager.cpp +++ b/src/rtmp_manager.cpp @@ -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) + " "