This commit is contained in:
cxh 2025-12-29 13:34:06 +08:00
parent a0f6d9ca4b
commit 2357b35ba7

View File

@ -110,11 +110,13 @@ GstElement* RTMPManager::create_pipeline(const Camera& cam)
std::string pipeline_str = "v4l2src name=src device=" + cam.device +
" ! video/x-raw,format=NV12 "
" ! videoconvert "
" ! videoscale "
" ! video/x-raw,width=" +
std::to_string(width) + ",height=" + std::to_string(height) +
",framerate=" + std::to_string(fps) +
"/1 "
" ! videoconvert "
" ! mpph264enc "
"bps=" +
std::to_string(bitrate) + " gop=" + std::to_string(fps) +