From ac51d125dd18bc3160d72957c4628d2b911d7ac0 Mon Sep 17 00:00:00 2001 From: cxh Date: Mon, 24 Nov 2025 16:03:58 +0800 Subject: [PATCH] 1 --- src/rtsp_manager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rtsp_manager.cpp b/src/rtsp_manager.cpp index beb2e27..1c4edd3 100644 --- a/src/rtsp_manager.cpp +++ b/src/rtsp_manager.cpp @@ -33,11 +33,10 @@ GstRTSPMediaFactory *RTSPManager::create_media_factory(const Camera &cam) std::string launch_str = "( v4l2src device=" + cam.device + " io-mode=2" - " ! video/x-raw,format=YUY2,width=" + + " ! video/x-raw,format=NV12,width=" + std::to_string(out_width) + ",height=" + std::to_string(out_height) + ",framerate=" + std::to_string(cam.fps) + "/1" - " ! videoconvert ! video/x-raw,format=NV12" " ! queue max-size-buffers=1 leaky=downstream" " ! mpph264enc rc-mode=cbr bps=" + std::to_string(cam.bitrate) +