-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when run "bash run.sh" #37
Comments
Something wrong with the virtual cam. Please show |
v4l2-ctl --list-devices avatarify (platform:v4l2loopback-000): C922 Pro Stream Webcam (usb-0000:00:14.0-10): echo $CAMID_VIRT |
Your setup looks ok, but pyfakewebcam can’t open the virtual cam for some reason. This is related issue jremmons/pyfakewebcam#7 |
Exactly, the issue was in the v4l2loopback driver. You need to change the line 2095 in the file https://github.com/umlaeute/v4l2loopback/blob/master/v4l2loopback.c#L2096 to #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0) and build, re-install the driver. This worked just fine for me. More info here: umlaeute/v4l2loopback#172 |
Added fix branch. Do:
|
Please write back if it works. |
It works ! 👍 Thanks @alievk and @Prockuror |
I am having a similar 'pyfakewebcam.py' issue.
So I set CAMID_VIRT myself in the command line with
line 54 in pyfakewebcam is this:
on ubuntu 18.04.4
help? |
@bwanaaa does it help compiling v4l2loopback from source? #37 (comment) |
it seems thie issue here persists the line 2098 in the repo is still
whereas the closed issue indicates it should be
|
There are so many references to 'KERNEL_VERSION' I dont know which to change to the '>' from the existing '<' |
Did you try #37 (comment)? I've already changed that line. |
I followed comment 37 to this point 'git pull' and got
|
I did compile the latest v4l2loopback from source and did install it first. |
and now it works. thank you. |
had the same issue, #37 (comment) helped |
I have the same issue but comment #37 did not solve my problem. Relevant output from
Output from
Output from
Running on latest kernel from ubuntu 18.04 |
Looks like this bug is officially fixed umlaeute/v4l2loopback@7dced0f |
Ubuntu 18.04 #remove apt package #install aux #install v4l2loopback from the repository #instal mod |
The first bash run worked with me and got the virtual camper working with zoom, but when I closed it, I made a restart and reopened again, it showed the same messages error like anybody here. I tried may time to remove v4l2loopback and reinitiate everything but I keep getting the same error, even I tried on another ubuntu 16.0.4 machine and the same thing happened!!!. I don't know what happened in the first bash run command, I installed all dependencies again (pandas, NumPy, cv2 .... etc) and then worked without any virtual camera error. anybody solved it or know what is the problem and possible solution? |
@basemdabbour not sure I understood it completely. did you manage to run it without error? |
@alievk yes, I did without any errors after installing dependencies in my condo environment, I used the same code in repo, it worked with me by following the same steps. but only one time :). but when I restarted my OS and tried to run "bash run.sh" again, I got the same error here and couldn't fix it till now. now I am getting the follwoing error: (avatarify) stefan@stefan-XPS-15-9550:~/Desktop/avatarify$ bash run.sh |
@alievk, I got two windows, one is cam and the other one is avatarify with Einstein's face. also worked integrating it with zoom like you did in the video. I stopped and rerun "bah run.sh" many times and it worked. but suddenly it stopped working and now I got again the same error : FileNotFoundError: device does not exist: /dev/video9 |
@alievk Finally, it worked with me and using the GPU. |
Glad to hear you get it through :) |
@alievk yea you are right it's a pretty good project and I think there is a new bug in the zoom or skype where it allows you to add virtual camper to their application!. This project is just highlights the possibility of doing it. But how can I change the avatar? to Elon musk for example?. |
Hi,
I pull the last commit, executed again the install.sh and tryed run:
bash run.sh
But this error occours:
(avatarify) eltonnunes@eltonnunes-home:~/Repository/others/avatarify$ bash run.sh
0: ./avatars/einstein.jpg
1: ./avatars/eminem.jpg
2: ./avatars/jobs.jpg
3: ./avatars/mona.jpg
4: ./avatars/obama.jpg
5: ./avatars/potter.jpg
6: ./avatars/ronaldo.png
7: ./avatars/schwarzenegger.png
load checkpoints..
cam_fomm.py:34: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config = yaml.load(f)
Traceback (most recent call last):
File "cam_fomm.py", line 231, in
stream = pyfakewebcam.FakeWebcam(f'/dev/video{opt.virt_cam}', frame.shape[1], frame.shape[0])
File "/home/eltonnunes/.conda/envs/avatarify/lib/python3.8/site-packages/pyfakewebcam/pyfakewebcam.py", line 54, in init
fcntl.ioctl(self._video_device, _v4l2.VIDIOC_S_FMT, self._settings)
OSError: [Errno 22] Invalid argument
Anyone can help ?
My OS: Linux Mint 19.3 Cinnamon
The text was updated successfully, but these errors were encountered: