This commit is contained in:
cxh 2026-01-09 10:44:07 +08:00
parent 6a8863c4b6
commit 0f892b5c5b

View File

@ -64,21 +64,17 @@ GstElement* RTMPManager::create_pipeline(const Camera& cam)
"! videocrop top=120 bottom=120 " "! videocrop top=120 bottom=120 "
"! videoscale " "! videoscale "
"! video/x-raw,width=" +
"! videorate "
"! video/x-raw,framerate=30/1,width=" +
std::to_string(cam.width) + ",height=" + std::to_string(cam.height) + std::to_string(cam.width) + ",height=" + std::to_string(cam.height) +
" " " "
"! queue max-size-buffers=8 max-size-time=0 leaky=downstream " "! queue max-size-buffers=12 max-size-time=0 leaky=downstream "
"! mpph264enc rc-mode=cbr " "! mpph264enc rc-mode=cbr "
"bps=" + "bps=" +
std::to_string(cam.bitrate) + std::to_string(cam.bitrate) +
" " " "
"gop=" + "gop=30 "
std::to_string(gop) +
" "
"header-mode=each-idr profile=main " "header-mode=each-idr profile=main "
"! h264parse config-interval=1 " "! h264parse config-interval=1 "