diff --git a/src/rtmp_manager.cpp b/src/rtmp_manager.cpp index 9ad1131..525d26e 100644 --- a/src/rtmp_manager.cpp +++ b/src/rtmp_manager.cpp @@ -64,21 +64,17 @@ GstElement* RTMPManager::create_pipeline(const Camera& cam) "! videocrop top=120 bottom=120 " "! videoscale " - - "! videorate " - "! video/x-raw,framerate=30/1,width=" + + "! video/x-raw,width=" + 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 " "bps=" + std::to_string(cam.bitrate) + " " - "gop=" + - std::to_string(gop) + - " " + "gop=30 " "header-mode=each-idr profile=main " "! h264parse config-interval=1 "