1
This commit is contained in:
parent
8ed5b295fd
commit
394520befb
@ -35,13 +35,12 @@ GstRTSPMediaFactory *RTSPManager::create_media_factory(const Camera &cam)
|
||||
" ! video/x-raw,format=NV12,width=" + std::to_string(out_width) +
|
||||
",height=" + std::to_string(out_height) +
|
||||
",framerate=" + std::to_string(cam.fps) + "/1"
|
||||
" ! queue max-size-time=100000000"
|
||||
" ! videoconvert"
|
||||
" ! queue max-size-buffers=1 leaky=downstream"
|
||||
" ! mpph264enc rc-mode=cbr bps=" +
|
||||
std::to_string(cam.bitrate) +
|
||||
" gop=" + std::to_string(cam.fps) +
|
||||
" profile=high"
|
||||
" ! h264parse"
|
||||
" header-mode=1"
|
||||
" ! h264parse config-interval=1"
|
||||
" ! rtph264pay name=pay0 pt=96 )";
|
||||
|
||||
GstRTSPMediaFactory *factory = gst_rtsp_media_factory_new();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user