1
This commit is contained in:
parent
40c4965879
commit
987ef0aa52
@ -109,15 +109,18 @@ GstElement* RTMPManager::create_pipeline(const Camera& cam)
|
|||||||
// "t. ! queue ! fakesink sync=false";
|
// "t. ! queue ! fakesink sync=false";
|
||||||
|
|
||||||
std::string pipeline_str = "v4l2src name=src device=" + cam.device +
|
std::string pipeline_str = "v4l2src name=src device=" + cam.device +
|
||||||
" ! video/x-raw,format=NV12,width=" + std::to_string(width) +
|
" ! video/x-raw,format=NV12 "
|
||||||
",height=" + std::to_string(height) + ",framerate=" + std::to_string(fps) +
|
" ! videoscale "
|
||||||
|
" ! video/x-raw,width=" +
|
||||||
|
std::to_string(width) + ",height=" + std::to_string(height) +
|
||||||
|
",framerate=" + std::to_string(fps) +
|
||||||
"/1 "
|
"/1 "
|
||||||
" ! mpph264enc "
|
" ! mpph264enc "
|
||||||
"bps=" +
|
"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 "
|
||||||
" header-mode=each-idr "
|
" header-mode=each-idr "
|
||||||
" ! h264parse config-interval=1 "
|
" ! h264parse config-interval=1 alignment=au "
|
||||||
" ! 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