ShayBox / Mon2Cam

Workaround for multi-monitor Discord screensharing
MIT License
337 stars 33 forks source link

Shared screen looks entirely black #82

Open MeGustaElArroz-23 opened 2 years ago

MeGustaElArroz-23 commented 2 years ago

Installed following the instructions, but when i tried to share the webcam just looks like this image Tried rescaling to other resolutions, it does either look like this or just keeps loading forever Using Ubuntu 21.10.

~$ mon2cam -v
DEBUG Starting Mon2Cam with the following options: Options {
  hwEncoder: undefined,
  framerate: 60,
  device: 50,
  monitor: undefined,
  resolution: "",
  verboseFile: undefined,
  ffmpeg: [],
  border: false,
  sound: false,
  wayland: false,
  loggerOptions: { verbose: true },
  execOptions: { verbose: true, output: 3 }
}
DEBUG Checking if V4L2 device exists
DEBUG V4L2 device found with id 50
INFO X11 detected, to use Wayland add -w
0: 1920x1080 XWAYLAND2
1: 1536x864 XWAYLAND0
Which monitor?
0
INFO CTRL + C to stop
INFO The screen will look mirrored for you, not others

Exec Context: 24ab5e2d-b052-40af-b96e-022e69ba9511
    Exec Options:  { verbose: true, output: 3 }
    Exec Command: ffmpeg -f x11grab -r 60 -s 1920x1080 -i :0+0,0 -pix_fmt yuv420p -f v4l2 /dev/video50
    Exec Command Splits:  [ffmpeg,-f,x11grab,-r,60,-s,1920x1080,-i,:0+0,0,-pix_fmt,yuv420p,-f,v4l2,/dev/video50]
MeGustaElArroz-23 commented 2 years ago

I tried to share the other monitor in which i had opened discord and the terminal. It apparently shows where my cursor is but the rest is black image

RealMrCactus commented 1 year ago

add the -w flag for wayland