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