1
This commit is contained in:
parent
6a8863c4b6
commit
0f892b5c5b
@ -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 "
|
||||
|
||||
Loading…
Reference in New Issue
Block a user