Watch
1
0
Fork
You've already forked Mon2Cam
0
mirror of https://github.com/ShayBox/Mon2Cam.git synced 2026-10-18 13:33:09 +00:00
Workaround for multi-monitor Discord screensharing
  • TypeScript 98.1%
  • Shell 1.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2022-05-13 12:47:31 -04:00
.github Add bug report issue template (#52) 2020-10-20 21:13:07 +02:00
images Modified the readme regarding audio support 2020-09-09 18:48:40 +02:00
src allow screensharing with one monitor 2022-05-13 11:43:17 +02:00
.prettierrc Deno Rewrite (#31) 2020-08-09 05:48:37 -04:00
install.sh Add support for fish 2020-12-05 16:36:16 -06:00
LICENSE added options for vertical and horizontal flips in ffmpeg 2019-08-08 02:00:48 -07:00
README.md Add snap warning 2021-03-13 03:13:37 -05:00

Mon2Cam

Fix for multi-monitor Discord screensharing

Dependencies:

Note: Ubuntu 18.04 and below does not provide v4l2loopback 0.12, if you use older versions of Ubuntu you will need to compile from source

Instructions:

  • Install Deno DO NOT USE UBUNTU SNAP
  • Run curl -s https://raw.githubusercontent.com/ShayBox/Mon2Cam/master/install.sh | sh
  • Open a new terminal and type mon2cam
  • Switch discord webcam

You can also use the AUR package which is a deno bundle and a desktop file

Mon2Cam - Monitor 2 Camera

Mon2Cam [options] [value]

options:
-h,  --help,       Show help
-f,  --framerate,  Set framerate
-d,  --device,     Set device number
-m,  --monitor,    Set monitor number
-r,  --resolution, Set output resolution (W:H)
-vf, --vflip,      Vertically flip the camera
-hf, --hflip,      Horizontally flip the camera
-b,  --border,     Add border when scaling to avoid stretching
-s,  --sound,      Create virtual sink and route sound into it
-v,  --verbose,    Show verbose output

To find out more, visit https://github.com/shaybox/mon2cam
0: 1920x1080
1: 1366x768
2: 1366x768
Which monitor?
0
INFO CTRL + C to stop
INFO The screen will look mirrored for you, not others

Screenshot

Audio routing

There is audio routing built into Mon2Cam, which you can use with the -s flag. It's interactive, so it's not hard to use, but keep in mind that it may still have bugs. Also, it probably introduces some latency, however this wasn't tested and is probably quite tiny. (I haven't noticed any difference.)

Mon2Cam will try to detect if discord is trying to record, and then switch it's input to the Mon2Cam combined sink, but you may have to do it manually. You should also disable echo cancellation, because discord will detect most audio as echo.

Screenshot_Pavucontrol