From 6431f63da7c49676d6e369ac777b2ec810bbb458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 5 Dec 2021 22:11:52 +0100 Subject: [PATCH] v4l2 drop-allocation. --- internal/capture/manager.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/capture/manager.go b/internal/capture/manager.go index 19b078d8..be14252a 100644 --- a/internal/capture/manager.go +++ b/internal/capture/manager.go @@ -128,18 +128,21 @@ func New(desktop types.DesktopManager, config *config.Capture) *CaptureManagerCt "! rtpvp8depay " + "! decodebin " + "! videoconvert " + + "! identity drop-allocation=true " + "! v4l2sink device=/dev/video0", codec.VP9().Name: "appsrc format=time is-live=true do-timestamp=true name=appsrc " + "! application/x-rtp " + "! rtpvp9depay " + "! decodebin " + "! videoconvert " + + "! identity drop-allocation=true " + "! v4l2sink device=/dev/video0", codec.H264().Name: "appsrc format=time is-live=true do-timestamp=true name=appsrc " + "! application/x-rtp " + "! rtph264depay " + "! decodebin " + "! videoconvert " + + "! identity drop-allocation=true " + "! v4l2sink device=/dev/video0", }, "webcam"), microphone: streamSrcNew(map[string]string{