From bac69a205f95b5c70e868f9838f50e28b078bca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 8 Feb 2021 22:21:21 +0100 Subject: [PATCH] update qualities pipelines with fps. --- internal/capture/manager.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/capture/manager.go b/internal/capture/manager.go index 792ce787..a6c7267a 100644 --- a/internal/capture/manager.go +++ b/internal/capture/manager.go @@ -80,34 +80,34 @@ func New(desktop types.DesktopManager, config *config.Capture) *CaptureManagerCt videos: map[string]*StreamManagerCtx{ "hd": streamNew(codec.VP8(), fmt.Sprintf( "ximagesrc display-name=%s show-pointer=false use-damage=false " + - "! video/x-raw " + + "! video/x-raw,framerate=25/1 " + "! videoconvert " + "! queue " + - "! vp8enc target-bitrate=8192000 cpu-used=16 threads=4 deadline=1 error-resilient=partitions keyframe-max-dist=15 static-threshold=20 " + + "! vp8enc target-bitrate=24576000 cpu-used=16 threads=4 deadline=1 error-resilient=partitions keyframe-max-dist=15 static-threshold=20 " + "! appsink name=appsink", config.Display, )), "hq": streamNew(codec.VP8(), fmt.Sprintf( "ximagesrc display-name=%s show-pointer=false use-damage=false " + - "! video/x-raw " + + "! video/x-raw,framerate=25/1 " + "! videoconvert " + "! queue " + - "! vp8enc target-bitrate=4096000 cpu-used=16 threads=4 deadline=1 error-resilient=partitions keyframe-max-dist=15 static-threshold=20 " + + "! vp8enc target-bitrate=16588800 cpu-used=16 threads=4 deadline=1 error-resilient=partitions keyframe-max-dist=15 static-threshold=20 " + "! appsink name=appsink", config.Display, )), "mq": streamNew(codec.VP8(), fmt.Sprintf( "ximagesrc display-name=%s show-pointer=false use-damage=false " + - "! video/x-raw " + + "! video/x-raw,framerate=125/10 " + "! videoconvert " + "! queue " + - "! vp8enc target-bitrate=2048000 cpu-used=16 threads=4 deadline=1 error-resilient=partitions keyframe-max-dist=15 static-threshold=20 " + + "! vp8enc target-bitrate=9216000 cpu-used=16 threads=4 deadline=1 error-resilient=partitions keyframe-max-dist=15 static-threshold=20 " + "! appsink name=appsink", config.Display, )), "lq": streamNew(codec.VP8(), fmt.Sprintf( "ximagesrc display-name=%s show-pointer=false use-damage=false " + - "! video/x-raw " + + "! video/x-raw,framerate=125/10 " + "! videoconvert " + "! queue " + - "! vp8enc target-bitrate=1024000 cpu-used=16 threads=4 deadline=1 error-resilient=partitions keyframe-max-dist=15 static-threshold=20 " + + "! vp8enc target-bitrate=4608000 cpu-used=16 threads=4 deadline=1 error-resilient=partitions keyframe-max-dist=15 static-threshold=20 " + "! appsink name=appsink", config.Display, )), },