1
This commit is contained in:
parent
a0f6d9ca4b
commit
2357b35ba7
@ -110,11 +110,13 @@ GstElement* RTMPManager::create_pipeline(const Camera& cam)
|
|||||||
|
|
||||||
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 "
|
" ! video/x-raw,format=NV12 "
|
||||||
|
" ! videoconvert "
|
||||||
" ! videoscale "
|
" ! videoscale "
|
||||||
" ! video/x-raw,width=" +
|
" ! video/x-raw,width=" +
|
||||||
std::to_string(width) + ",height=" + std::to_string(height) +
|
std::to_string(width) + ",height=" + std::to_string(height) +
|
||||||
",framerate=" + std::to_string(fps) +
|
",framerate=" + std::to_string(fps) +
|
||||||
"/1 "
|
"/1 "
|
||||||
|
" ! videoconvert "
|
||||||
" ! mpph264enc "
|
" ! mpph264enc "
|
||||||
"bps=" +
|
"bps=" +
|
||||||
std::to_string(bitrate) + " gop=" + std::to_string(fps) +
|
std::to_string(bitrate) + " gop=" + std::to_string(fps) +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user