diff --git a/src/rtsp_manager.cpp b/src/rtsp_manager.cpp index 6d96486..cf17d15 100644 --- a/src/rtsp_manager.cpp +++ b/src/rtsp_manager.cpp @@ -36,7 +36,7 @@ GstRTSPMediaFactory *RTSPManager::create_media_factory(const Camera &cam) ",height=" + std::to_string(out_height) + ",framerate=" + std::to_string(cam.fps) + "/1" " ! queue max-size-buffers=1 leaky=downstream" // 最小队列 - " ! mpph264enc bps=4000000 gop=" + + " ! mpph264enc bps=2000000 gop=" + std::to_string(cam.fps) + " " // 固定 4Mbps " ! h264parse" " ! rtph264pay name=pay0 pt=96 config-interval=1 )"; // 每秒发送 SPS/PPS