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) +
",height=" + std::to_string(out_height) +
",framerate=" + std::to_string(cam.fps) + "/1"
" ! queue max-size-time=100000000"
" ! videoconvert"
" ! queue max-size-buffers=1 leaky=downstream"
" ! mpph264enc rc-mode=cbr bps=" +
std::to_string(cam.bitrate) +
" gop=" + std::to_string(cam.fps) +
" profile=high"
" ! h264parse"
" header-mode=1"
" ! h264parse config-interval=1"
" ! rtph264pay name=pay0 pt=96 )";
GstRTSPMediaFactory *factory = gst_rtsp_media_factory_new();