|
|
3 weeks ago | |
|---|---|---|
| .vscode | 8 months ago | |
| www | 3 weeks ago | |
| .gitignore | 10 months ago | |
| Makefile | 3 weeks ago | |
| README.md | 3 weeks ago | |
| configuration.cc | 3 weeks ago | |
| configuration.h | 3 weeks ago | |
| convert.cc | 3 weeks ago | |
| convert.h | 10 months ago | |
| debayer.cc | 10 months ago | |
| debayer.h | 10 months ago | |
| inmemoryfile.cc | 10 months ago | |
| inmemoryfile.h | 10 months ago | |
| inmemorytar.cc | 9 months ago | |
| inmemorytar.h | 10 months ago | |
| main.cc | 3 weeks ago | |
| miniwebcam.h | 10 months ago | |
| miniwebcam.service | 3 weeks ago | |
| video.cc | 10 months ago | |
| video.h | 10 months ago | |
| videodevice_dump.cc | 10 months ago | |
| videodevice_dump.h | 10 months ago | |
| videodevice_v4l2.cc | 3 weeks ago | |
| videodevice_v4l2.h | 3 weeks ago | |
| videoframe.cc | 3 weeks ago | |
| videoframe.h | 10 months ago | |
| webserver.cc | 2 months ago | |
README.md
MiniWebCam
this application will start a inbuild webserver serving an camera image from the following devices:
- V4L2 Devices
- Local Image File
- Local Script to Create Images
Configuration
The configuration is loaded in the following order.
- systemwide configuration file [/etc/miniwebcam.conf]
- program parameters
- user defined configurtion file defined in the program parameters
The program runs in the foreground by default. Use -D to detach and run as a
daemon, or -F to explicitly run in the foreground. Daemon mode redirects
standard input, output, and error to /dev/null; use -debug only when running
in the foreground if you need to see debug output.
The default system configuration file is /etc/miniwebcam.conf. make install
installs the executable and a systemd service unit. After installing, reload
systemd and enable/start the service with:
sudo systemctl daemon-reload
sudo systemctl enable --now miniwebcam.service
INFORMATION
here are some usefull commands, maybe it helps to set the resolution to a readonable value
media-ctl --set-v4l2 '"imx219 10-0010":0 [fmt:SRGGB10_1X10/1920x1080]' media-ctl --set-v4l2 '"ov5647 10-0036":0 [fmt:SRGGB10_1X10/1920x1080]' v4l2-ctl -d /dev/v4l-subdev0 --set-ctrl 0x009a0901=1 v4l2-ctl -d /dev/v4l-subdev0 --set-ctrl 0x00980912=1 v4l2-ctl -d /dev/v4l-subdev0 --set-ctrl 0x0098090c=1 ./miniwebcam -vdevsize 3280 2464 -vdevformat RG10
media-ctl -d /dev/media0 --set-v4l2 '"ov5647 10-0036":0[fmt:SGBRG10_1X10/1296x972]'