<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Snyder thanks for looking into this.  I looked into it a little
      more and found that OBS will do the job.<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 2/19/25 18:17, Snyder, Alexander J
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAqYjtM=8qUuT9CTdBSm5thoNc_6pWqq+B7vs03UUGwjdPbC6A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">
        <div>On Wayland, x11grab won't work because there is no direct
          access to the display like in Xorg. Instead, you'll need to
          use PipeWire and wf-recorder or obs-v4l2sink.</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Solution Using PipeWire (wf-recorder and
          v4l2loopback)</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">1. Install required dependencies (if not already
          installed):</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">sudo apt install wf-recorder v4l2loopback-utils
          v4l2loopback-dkms</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">2. Load the v4l2loopback module (if not already
          loaded):</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">sudo modprobe v4l2loopback devices=1 video_nr=10
          card_label="Virtual Camera" exclusive_caps=1</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">This creates /dev/video10, which you will use as
          your virtual camera.</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">3. Capture the second monitor and send it to
          /dev/video10:</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">wf-recorder -o HDMI-A-1 -f - | ffmpeg -i - -f
          v4l2 -vcodec rawvideo -pix_fmt yuv420p /dev/video10</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Replace HDMI-A-1 with your monitor's correct
          name. Find your available outputs with:</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">swaymsg -t get_outputs</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">4. Verify the virtual camera in Zoom:</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Start Zoom, and in the camera settings, select
          "Virtual Camera."</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">---</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Alternative Solution Using obs-v4l2sink (If You
          Use OBS)</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">If you're using OBS, you can install the
          obs-v4l2sink plugin to achieve the same effect by redirecting
          an OBS scene to a virtual camera.</div>
        <div><br>
        </div>
        <div data-smartmail="gmail_signature">---<br>
          Thanks,<br>
          Alexander<br>
          <br>
          Sent from my Google Pixel 7 Pro</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Wed, Feb 19, 2025, 17:51
          Jim via PLUG-discuss <<a
            href="mailto:plug-discuss@lists.phxlinux.org"
            target="_blank" rel="noreferrer" moz-do-not-send="true"
            class="moz-txt-link-freetext">plug-discuss@lists.phxlinux.org</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I
          have Kubuntu 24.04 installed.  I managed to get Wayland
          working so I <br>
          can use Waydroid.  Sometimes I need to capture what's
          displayed on the <br>
          system's second monitor and use that as a second webcam so I
          can send <br>
          that video to Zoom.<br>
          <br>
          Using Xorg, this works.<br>
          <br>
          ffmpeg -f x11grab -r 25 -s 1920x1080 -i :0.0+1920,0 -vcodec
          rawvideo <br>
          -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0<br>
          <br>
          <br>
          How do I do this using Wayland?<br>
          <br>
          Thank you<br>
          <br>
          ---------------------------------------------------<br>
          PLUG-discuss mailing list: <a
            href="mailto:PLUG-discuss@lists.phxlinux.org"
            rel="noreferrer noreferrer" target="_blank"
            moz-do-not-send="true" class="moz-txt-link-freetext">PLUG-discuss@lists.phxlinux.org</a><br>
          To subscribe, unsubscribe, or to change your mail settings:<br>
          <a
href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss"
            rel="noreferrer noreferrer noreferrer" target="_blank"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
        </blockquote>
      </div>
    </blockquote>
  </body>
</html>