This commit is contained in:
cxh 2025-11-24 15:47:41 +08:00
parent c850b2d2ee
commit 5b76cd0eb3

View File

@ -32,9 +32,10 @@ GstRTSPMediaFactory *RTSPManager::create_media_factory(const Camera &cam)
std::string launch_str =
"( v4l2src device=" + cam.device +
" ! video/x-raw,format=NV12,width=" + std::to_string(out_width) +
" ! 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"
" ! queue max-size-buffers=1 leaky=downstream"
" ! mpph264enc rc-mode=cbr bps=" +
std::to_string(cam.bitrate) +