1
This commit is contained in:
parent
602c8075ac
commit
ac51d125dd
@ -33,11 +33,10 @@ GstRTSPMediaFactory *RTSPManager::create_media_factory(const Camera &cam)
|
|||||||
std::string launch_str =
|
std::string launch_str =
|
||||||
"( v4l2src device=" + cam.device +
|
"( v4l2src device=" + cam.device +
|
||||||
" io-mode=2"
|
" io-mode=2"
|
||||||
" ! video/x-raw,format=YUY2,width=" +
|
" ! video/x-raw,format=NV12,width=" +
|
||||||
std::to_string(out_width) +
|
std::to_string(out_width) +
|
||||||
",height=" + std::to_string(out_height) +
|
",height=" + std::to_string(out_height) +
|
||||||
",framerate=" + std::to_string(cam.fps) + "/1"
|
",framerate=" + std::to_string(cam.fps) + "/1"
|
||||||
" ! videoconvert ! video/x-raw,format=NV12"
|
|
||||||
" ! queue max-size-buffers=1 leaky=downstream"
|
" ! queue max-size-buffers=1 leaky=downstream"
|
||||||
" ! mpph264enc rc-mode=cbr bps=" +
|
" ! mpph264enc rc-mode=cbr bps=" +
|
||||||
std::to_string(cam.bitrate) +
|
std::to_string(cam.bitrate) +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user