This commit is contained in:
cxh 2025-11-21 16:28:35 +08:00
parent 8ed5b295fd
commit 394520befb

View File

@ -35,13 +35,12 @@ GstRTSPMediaFactory *RTSPManager::create_media_factory(const Camera &cam)
" ! video/x-raw,format=NV12,width=" + std::to_string(out_width) + " ! video/x-raw,format=NV12,width=" + std::to_string(out_width) +
",height=" + std::to_string(out_height) + ",height=" + std::to_string(out_height) +
",framerate=" + std::to_string(cam.fps) + "/1" ",framerate=" + std::to_string(cam.fps) + "/1"
" ! queue max-size-time=100000000" " ! queue max-size-buffers=1 leaky=downstream"
" ! videoconvert"
" ! mpph264enc rc-mode=cbr bps=" + " ! mpph264enc rc-mode=cbr bps=" +
std::to_string(cam.bitrate) + std::to_string(cam.bitrate) +
" gop=" + std::to_string(cam.fps) + " gop=" + std::to_string(cam.fps) +
" profile=high" " header-mode=1"
" ! h264parse" " ! h264parse config-interval=1"
" ! rtph264pay name=pay0 pt=96 )"; " ! rtph264pay name=pay0 pt=96 )";
GstRTSPMediaFactory *factory = gst_rtsp_media_factory_new(); GstRTSPMediaFactory *factory = gst_rtsp_media_factory_new();