Package Details: fake-background-webcam-git r248.ba10079-1

Git Clone URL: (read-only, click to copy)
Package Base: fake-background-webcam-git
Description: Virtual background-replacing camera
Upstream URL:
Licenses: GPL
Conflicts: fake-background-webcam
Provides: fake-background-webcam
Submitter: Premik
Maintainer: Premik
Last Packager: Premik
Votes: 7
Popularity: 0.26
First Submitted: 2021-02-14 13:31 (UTC)
Last Updated: 2021-12-15 09:03 (UTC)

Latest Comments

yochananmarqos commented on 2021-11-21 21:17 (UTC)

Is this not a duplicate of fake-background-webcam-git?

traumweh commented on 2021-11-10 10:34 (UTC) (edited on 2021-11-10 10:36 (UTC) by traumweh)

Build process crashes with Java 17 because bazel crashes. Workaround for me was to temporarily set JAVA_HOME=/usr/lib/jvm/java-11-openjdk.

scorpp commented on 2021-11-08 15:30 (UTC)

installed and ran successfully! had to additionally install fmt, otherwise received

Traceback (most recent call last):
  File "/usr/lib/fake-background-webcam/", line 10, in <module>
    import cv2
ImportError: cannot open shared object file: No such file or directory

for missing deps - there are corresponding -git packages. just install them manually (python-mediapipe-git, python-pyfakewebcam-git)

D3SOX commented on 2021-10-19 21:22 (UTC)

error: could not find all required packages: python-pyfakewebcam (wanted by: fake-background-webcam-git) python-mediapipe (wanted by: fake-background-webcam-git)

cgirard commented on 2021-09-10 07:20 (UTC)

In addition to my last remark, the image_folder arg, which is used in the systemd unit, has been removed:

cgirard commented on 2021-08-30 09:43 (UTC)

python-cmapy dep is mssing

7thSon commented on 2021-07-25 17:31 (UTC)

Could we get this updated to the latest commit? There have been some fixes merged to prevent aggressive flickering.

cgirard commented on 2021-07-08 12:27 (UTC)

Hi, is akvcam really needed as the package is configured to use v4l2loopback?

winicius commented on 2021-06-15 15:52 (UTC)

Getting this error:

==> Starting package_fake-background-webcam-git()...
/home/winicius/.cache/yay/fake-background-webcam-git/PKGBUILD: line 39: cd: /home/winicius/.cache/yay/fake-background-webcam-git/src/fake-background-webcam-git/fakecam: No such file or directory
==> ERROR: A failure occurred in package_fake-background-webcam-git().
error making: fake-background-webcam-git (fake-background-bodypix-git)

Any idea on how to fix this?

suger commented on 2021-06-15 12:28 (UTC) (edited on 2021-06-19 07:52 (UTC) by suger)

Actually, the changes are even larger than pointed out by @Rhinoceros . The contents of the fakecam folder have been moved to root, and the dependency from bodypix has been dropped in favour of Google's mediapipe. Which, if I'm not mistaken, isn't in in aur right now. Do you need help making the switch?

Rhinoceros commented on 2021-06-11 02:14 (UTC)

Looks like upstream changed the directory structure, so this PKGBUILD doesn't work any more. Specifically on line 39, it tries to cd "$srcdir/${pkgbase}/fakecam", but this subdirectory no longer exists.

Also, for the bundled, I get a checksum of f6b37aff68926eb16c510db56df665ec2a3f8aa7348c0e8ddf247bcaa770a955.

entropie commented on 2021-06-09 18:34 (UTC) (edited on 2021-06-09 20:25 (UTC) by entropie)

Thanks for the package Premik, its working great for me. Only thing I did was changing the /dev/video2%i to /dev/video4 on my setup in the fake-background-webcam@.service. That made it get recognized in Zoom and MS Teams which are both firejailed on my setup. With the video siting on 20, I could only disable the private-dev setting all along in firejail or it wouldnt be found.

One question: do you plan on keeping this package or update to the new mediapipe release of the git version?

Rhinoceros commented on 2021-06-07 06:26 (UTC)

Thanks @Premik. I was already using the latest nodejs, but it seems to be working perfectly now. Thank you! Also, I think you were right about linux-headers.

One other minor issue, the checksum of seems to be incorrect.

Premik commented on 2021-06-06 20:45 (UTC) (edited on 2021-06-06 20:48 (UTC) by Premik)

@Rhinoceros thanks for reporting the issue. I assumed the node dependency was coming inherently from the npm. But now I see the known-to-work node version is the v12. So I've added nodejs>=12 as an explicit dependency now. I guess the last node error you got was related to node version.

Btw an easy way to swap the node version is by using the nvm like:

nvm list
nvm install 12
nvm use 12

And only then run the makepkg.

I'm not sure about linux-header. Headers are indeed mentioned in the as a dependency but for the v4l2loopback-dkms. So perhaps it is missing from the v4l2loopback-dkms package.

You can also give the opt-flavor version a try. It has the dependencies self-contained. Edit: I see you did already :)

@lawa42 I was not able to reproduce the issue. But is seems the ticket has been closed on the github in the meantime.

Rhinoceros commented on 2021-06-04 08:00 (UTC)

I can't get this working either. There are at least two dependencies missing. Firstly, sudo systemctl start fake-background-webcam@0.service failed with fake-background-bodypix.service: Failed at step EXEC spawning /usr/bin/node: No such file or directory. I installed nodejs, and it progressed. Then modprobe: FATAL: Module v4l2loopback not found in directory /lib/modules/5.12.8-arch1-1, so I installed linux-headers and it progressed. Finally, I gave up after the following:

Jun 04 13:24:51 hostname systemd[1]: Starting Fake Background Webcam - frame-source /dev/video0 -> /dev/video20...
Jun 04 13:24:51 hostname kernel: v4l2loopback: loading out-of-tree module taints kernel.
Jun 04 13:24:51 hostname kernel: v4l2loopback: module verification failed: signature and/or required key missing - tainting kernel
Jun 04 13:24:51 hostname kernel: v4l2loopback driver version 0.12.5 loaded
Jun 04 13:24:51 hostname systemd[1]: Started Fake Background Webcam - frame-source /dev/video0 -> /dev/video20.
Jun 04 13:24:53 hostname node[2452]: /usr/lib/node_modules/bodypix/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/engine.js:542
Jun 04 13:24:53 hostname node[2452]:                 out = _this.tidy(function () { return forwardFunc(_this.backend, saveFunc_1); });
Jun 04 13:24:53 hostname node[2452]:                                                       ^
Jun 04 13:24:53 hostname node[2452]: TypeError: forwardFunc is not a function
Jun 04 13:24:53 hostname node[2452]:     at /usr/lib/node_modules/bodypix/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/engine.js:542:55
Jun 04 13:24:53 hostname node[2452]:     at /usr/lib/node_modules/bodypix/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/engine.js:388:22
Jun 04 13:24:53 hostname node[2452]:     at Engine.scopedRun (/usr/lib/node_modules/bodypix/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/engine.js:398:23)
Jun 04 13:24:53 hostname node[2452]:     at Engine.tidy (/usr/lib/node_modules/bodypix/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/engine.js:387:21)
Jun 04 13:24:53 hostname node[2452]:     at kernelFunc (/usr/lib/node_modules/bodypix/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/engine.js:542:29)
Jun 04 13:24:53 hostname node[2452]:     at /usr/lib/node_modules/bodypix/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/engine.js:553:27
Jun 04 13:24:53 hostname node[2452]:     at Engine.scopedRun (/usr/lib/node_modules/bodypix/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/engine.js:398:23)
Jun 04 13:24:53 hostname node[2452]:     at Engine.runKernelFunc (/usr/lib/node_modules/bodypix/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/engine.js:551:14)
Jun 04 13:24:53 hostname node[2452]:     at Engine.runKernel (/usr/lib/node_modules/bodypix/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/engine.js:449:21)
Jun 04 13:24:53 hostname node[2452]:     at pad_ (/usr/lib/node_modules/bodypix/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:16988:19)
Jun 04 13:24:53 hostname systemd[1]: fake-background-bodypix.service: Main process exited, code=exited, status=1/FAILURE
Jun 04 13:24:53 hostname systemd[1]: fake-background-bodypix.service: Failed with result 'exit-code'.

lawa42 commented on 2021-05-06 06:36 (UTC)

Hi I've been using this for a while and now discovered that there is an aur. Great job thanks. However, I run into which can be solved by issuing

npm audit fix --force

However, I tried to do this manually or directly in the PKGBUILD but it fails due to a missing json file: /usr/lib/node_modules/package.json Any idea how to fix this?

ogasser commented on 2021-04-13 08:29 (UTC)

python-pip is mising in the dependencies.

aurifier commented on 2021-04-08 20:00 (UTC)

I think python-opencv should be in depends. I needed it to run.

Premik commented on 2021-03-17 09:49 (UTC)

The python-pyfakewebcam-git had outdated .SRCINFO so it was missing the provides field. Thanks @soraxas. I also fixed the split-package inner-dependencies.

soraxas commented on 2021-03-17 02:36 (UTC)

Hi, the python-pyfakewebcam dependency should be python-pyfakewebcam-git?

Premik commented on 2021-02-17 08:09 (UTC)

@CodingKoopa good stuff. Wish I knew earlier. I see you did some nice tricks around the tensorflow in your version. I couldn't get the CUDA version working myself...

CodingKoopa commented on 2021-02-16 04:16 (UTC)

Hi! I've also been working on an AUR package for this project, which bundles everything in /opt/ instead of along with the rest of the system as you've done. I didn't notice what you've done here until i was ready to submit my package, but I have still done so because the /opt/ difference seems significant enough.