v4l2 drop-allocation.

This commit is contained in:
Miroslav Šedivý 2021-12-05 22:11:52 +01:00
parent 9a6eb942a4
commit 6431f63da7

View File

@ -128,18 +128,21 @@ func New(desktop types.DesktopManager, config *config.Capture) *CaptureManagerCt
"! rtpvp8depay " + "! rtpvp8depay " +
"! decodebin " + "! decodebin " +
"! videoconvert " + "! videoconvert " +
"! identity drop-allocation=true " +
"! v4l2sink device=/dev/video0", "! v4l2sink device=/dev/video0",
codec.VP9().Name: "appsrc format=time is-live=true do-timestamp=true name=appsrc " + codec.VP9().Name: "appsrc format=time is-live=true do-timestamp=true name=appsrc " +
"! application/x-rtp " + "! application/x-rtp " +
"! rtpvp9depay " + "! rtpvp9depay " +
"! decodebin " + "! decodebin " +
"! videoconvert " + "! videoconvert " +
"! identity drop-allocation=true " +
"! v4l2sink device=/dev/video0", "! v4l2sink device=/dev/video0",
codec.H264().Name: "appsrc format=time is-live=true do-timestamp=true name=appsrc " + codec.H264().Name: "appsrc format=time is-live=true do-timestamp=true name=appsrc " +
"! application/x-rtp " + "! application/x-rtp " +
"! rtph264depay " + "! rtph264depay " +
"! decodebin " + "! decodebin " +
"! videoconvert " + "! videoconvert " +
"! identity drop-allocation=true " +
"! v4l2sink device=/dev/video0", "! v4l2sink device=/dev/video0",
}, "webcam"), }, "webcam"),
microphone: streamSrcNew(map[string]string{ microphone: streamSrcNew(map[string]string{