1
This commit is contained in:
parent
769f5dcf9e
commit
40c4965879
@ -112,10 +112,12 @@ GstElement* RTMPManager::create_pipeline(const Camera& cam)
|
|||||||
" ! video/x-raw,format=NV12,width=" + std::to_string(width) +
|
" ! video/x-raw,format=NV12,width=" + std::to_string(width) +
|
||||||
",height=" + std::to_string(height) + ",framerate=" + std::to_string(fps) +
|
",height=" + std::to_string(height) + ",framerate=" + std::to_string(fps) +
|
||||||
"/1 "
|
"/1 "
|
||||||
" ! mpph264enc bps=" +
|
" ! mpph264enc "
|
||||||
|
"bps=" +
|
||||||
std::to_string(bitrate) + " gop=" + std::to_string(fps) +
|
std::to_string(bitrate) + " gop=" + std::to_string(fps) +
|
||||||
" rc-mode=cbr "
|
" rc-mode=cbr "
|
||||||
" ! h264parse "
|
" header-mode=each-idr "
|
||||||
|
" ! h264parse config-interval=1 "
|
||||||
" ! queue max-size-buffers=5 leaky=downstream "
|
" ! queue max-size-buffers=5 leaky=downstream "
|
||||||
" ! flvmux streamable=true "
|
" ! flvmux streamable=true "
|
||||||
" ! rtmpsink location=\"" +
|
" ! rtmpsink location=\"" +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user