https://github.com/longsleep/webcam-test-source
https://github.com/longsleep/webcam-test-source
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/longsleep/webcam-test-source
- Owner: longsleep
- Created: 2018-07-24T09:48:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-24T09:49:06.000Z (about 8 years ago)
- Last Synced: 2025-02-03T14:46:40.797Z (over 1 year ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Test web cam or muliple web cams
For testing, a Linux Kernel module is required which emulates video4linux
devices which then can be fed with data and used line a web cam by applications.
## Video4Linux emulator loopback
Download, build and install by following instructions from
https://github.com/umlaeute/v4l2loopback and then start a bunch of devices
```
sudo modprobe v4l2loopback devices=2
```
Examples: https://github.com/umlaeute/v4l2loopback/wiki
## GStreamer
With GStreamer it is very easy to feed data into the emulated devices.
### Send video test data
```
gst-launch-1.0 videotestsrc ! v4l2sink device=/dev/video2
```
### View data stream
Also with the help of GStreamer it is very easy to show whats going on with
a video4linux device.
```
gst-launch-1.0 v4l2src device=/dev/video2 ! xvimagesink
```
## Usage
This project contains a `./run.sh` file which can be used for simple testing.