From b488f01b16b1e3697780ab275b8cedabc6bd7754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Thu, 4 Feb 2021 13:52:32 +0100 Subject: [PATCH] vp9enc add properties from vp8enc. --- internal/capture/gst/gst.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/capture/gst/gst.go b/internal/capture/gst/gst.go index 4446aed0..48a17ba7 100644 --- a/internal/capture/gst/gst.go +++ b/internal/capture/gst/gst.go @@ -86,7 +86,7 @@ func CreateAppPipeline(codecRTP codec.RTPCodec, pipelineDevice string, pipelineS return nil, err } - pipelineStr = fmt.Sprintf(videoSrc + "vp9enc" + appSink, pipelineDevice) + pipelineStr = fmt.Sprintf(videoSrc + "vp9enc cpu-used=16 threads=4 deadline=1 keyframe-max-dist=15 static-threshold=20" + appSink, pipelineDevice) case "h264": var err error if err = CheckPlugins([]string{"ximagesrc"}); err != nil {