From 4dc4ebf55f8722840d49ba9ef681edba5421dce8 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 8 Dec 2020 19:00:33 +0100 Subject: [PATCH] Add instructions for screen sharing --- docs/media/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/media/index.md b/docs/media/index.md index abfdc92..543c753 100644 --- a/docs/media/index.md +++ b/docs/media/index.md @@ -141,3 +141,14 @@ Imagemagick supports JPEG. Set your desired output density and JPEG quality. :::shell convert -density 300 -compress jpeg -quality 80 document.pdf downscaled.pdf + +## Screen sharing + +Since there is no good support for WebRTC screensharing with wayland, a virtual +webcam device can be used. + + :::shell + sudo modprobe v4l2loopback exclusive_caps=1 card_label=screensharing # only has to be done once + wf-recorder --muxer=v4l2 --codec=rawvideo --file=/dev/video2 -x yuv420p # adjust /dev/video2 to the actual device + +To remove the virtual webcam device run `sudo modprobe -r v4l2loopback`