I'm on Ubuntu 18.04 running Gnome and having several problems running this. Not sure whether to post about the issues here or via Github.
Running the release, executing with ./discord-monitors-to-vc
, returns with an error:
[31056] Error loading Python lib '/tmp/_MEIsfAKGG/libpython3.7m.so.1.0': dlopen: /lib/x86_64-linux-gnu/libc.so.6: version \GLIBC_2.28' not found (required by /tmp/_MEIsfAKGG/libpython3.7m.so.1.0)
...
So next, I attempted running from source. I noticed that the current release on the GitHub rep "release" tab is marked "stable" and says it has "5 commits to master since this release." It does not contain "requirements.txt" as is needed to run.
So, I downloaded the "master" .zip through "Clone or Download" option.
Once downloaded, first I checked for my needed dependencies. I already have ffmpeg, so next installed v4l2loopback:
sudo apt-get install v4l2loopback-dkms
Then I installed pip 9.0.1:
sudo apt install python-pip
Then ran pip install -r requirements.txt
as instructed on the GitHub rep.
I then ran the program through python main.py
and it returned with the following error:
Traceback (most recent call last):File "
main.py
", line 175, in <module>
subprocess.run
('sudo modprobe v4l2loopback video_nr=4 \'card_label=VirtualScreen\'', shell=True)AttributeError: 'module' object has no attribute 'run'
When that failed, I tried running script.sh
by double-clicking the icon in gnome. It opens a Terminal window. After inputting my password, the script runs, but when I select which monitor I want to use, the terminal window closes.
...
So next, I tried manually opening a terminal window and ran ./script.sh
and it runs; I select my monitor, but then this happens:
Monitors: 2
0: +*DVI-I-2 1920/518x1200/324+1920+0 DVI-I-2
1: +DVI-I-3 1920/518x1200/324+0+0 DVI-I-3
Which monitor you want to share: 0
ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
[x11grab @ 0x558c54630780] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, x11grab, from ':1+1920,0':
Duration: N/A, start: 1570148834.943565, bitrate: N/A
Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1200, 60 fps, 1000k tbr, 1000k tbn, 1000k tbc
Stream mapping:Stream #0:0 -> #0:0 (rawvideo (native) -> rawvideo (native))
Press [q] to stop, [?] for help
[v4l2 @ 0x558c5463a500] ioctl(VIDIOC_G_FMT): Invalid argument
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 --
Conversion failed!