From 602c8075ac84a9ef43768035292e2babfd3c61a0 Mon Sep 17 00:00:00 2001 From: cxh Date: Mon, 24 Nov 2025 15:57:49 +0800 Subject: [PATCH] 1 --- src/rtsp_manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rtsp_manager.cpp b/src/rtsp_manager.cpp index 6144d4c..beb2e27 100644 --- a/src/rtsp_manager.cpp +++ b/src/rtsp_manager.cpp @@ -32,7 +32,9 @@ GstRTSPMediaFactory *RTSPManager::create_media_factory(const Camera &cam) std::string launch_str = "( v4l2src device=" + cam.device + - " ! video/x-raw,format=YUY2,width=" + std::to_string(out_width) + + " io-mode=2" + " ! video/x-raw,format=YUY2,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"