Skip to content

Commit

Permalink
Merge pull request #35 from dlazesz/master
Browse files Browse the repository at this point in the history
Add instructions on the installation of v4l2loopback correctly
  • Loading branch information
fangfufu authored May 27, 2020
2 parents 3f1ab7e + 6f129b8 commit f59f596
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Prerequisite

You need to have *docker* and *docker-compose* available.
You need to have *docker* and *docker-compose* available and the *correct version of v4l2loopback* installed.

## Configuration

Expand Down Expand Up @@ -31,3 +31,4 @@ You should create a copy of `docker-compose.yml` and change to meet your needs:
## Usage
- Run and initial build containers: ``docker-compose up`` (or ``docker-compose up -d``)
- Stop and remove containers: ``docker-compose down``
- Note: *Ctrl-C* is currently stops the containers instead of changing images
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,28 @@ OSError: [Errno 22] Invalid argument
when opening the webcam from Python, please install v4l2loopback from the [github](https://github.com/umlaeute/v4l2loopback) repo,
as you could have an old version from your package manager.

When using Ubuntu 18.04 (it may work for other versions too) to install v4l2loopback correclty follow [the instructions](https://github.com/jremmons/pyfakewebcam/issues/7#issuecomment-616617011):

1. remove apt package
- `sudo modprobe -r v4l2loopback`
- `sudo apt remove v4l2loopback-dkms`
2. install aux
- `sudo apt-get install linux-generic`
- `sudo apt install dkms`
3. install v4l2loopback from the repository
- `git clone https://github.com/umlaeute/v4l2loopback.git`
- `cd v4l2loopback`
- `make` # The other commands are not needed
4. instal mod
- `sudo cp -R . /usr/src/v4l2loopback-1.1`
- `sudo dkms add -m v4l2loopback -v 1.1`
- `sudo dkms build -m v4l2loopback -v 1.1`
- `sudo dkms install -m v4l2loopback -v 1.1`
5. reboot
- `sudo reboot`

Do not forget to thank to @pedrodiamel for the guide!

## Installing with Docker
Please refer to [DOCKER.md](DOCKER.md). The updated Docker related files were
added by [liske](https://github.com/liske).
Expand Down

0 comments on commit f59f596

Please sign in to comment.