Mini WebCam Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Steffen Pohle d897822e9e
removing the imagefloat thing... and trying to solve the filter in integer only
2 weeks ago
.vscode fixed buffer overflow on read. 8 months ago
www removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
.gitignore make install - updated 3 weeks ago
Makefile minor changes 2 weeks ago
README.md minor changes 2 weeks ago
configuration.cc removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
configuration.h removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
convert.cc removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
convert.h removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
debayer.cc removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
debayer.h removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
inmemoryfile.cc adding files 10 months ago
inmemoryfile.h adding files 10 months ago
inmemorytar.cc double free error 9 months ago
inmemorytar.h adding files 10 months ago
main.cc removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
miniwebcam.h removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
miniwebcam.service make install - updated 3 weeks ago
video.cc working on webpage 10 months ago
video.h removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
videodevice_dump.cc removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
videodevice_dump.h removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
videodevice_v4l2.cc removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
videodevice_v4l2.h removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
videoframe.cc removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
videoframe.h removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks ago
webserver.cc removing the imagefloat thing... and trying to solve the filter in integer only 2 weeks 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

When auto_brightness is set to a camera control ID, auto_brightness_target sets the desired normalized image brightness (0.0 to 1.0). The controller averages five images between adjustments to accommodate delayed camera responses, and uses bounded PI feedback to reduce oscillation.

The configuration is loaded in the following order.

  • systemwide configuration file [/etc/miniwebcam/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 configuration file is /etc/miniwebcam/miniwebcam.conf. make install installs the executable and a systemd system unit named miniwebcam.service. The system service runs as the unprivileged minicamuser account (not as root) and has access to devices in the video group. make install creates the system account if it does not exist and creates the configuration directory with root-owned files readable by the service account. If the configuration is absent, an existing /etc/miniwebcam.conf is moved into the new directory; otherwise it is initialized with empty JSON defaults. If the SSL key and certificate are absent, installation generates a self-signed certificate and stores both in /etc/miniwebcam/; existing configuration and certificates are preserved. The generated certificate is self-signed, so HTTPS clients will not trust it by default. Run installation as root, for example sudo make install. After installing, enable/start the service with:

sudo systemctl daemon-reload
sudo systemctl enable --now miniwebcam.service

make uninstall stops and disables the service, removes the installed executable, unit, configuration, and SSL key/certificate, and removes minicamuser if make install created that account. An account that existed before installation is retained.

INFORMATION

here are some usefull commands, maybe it helps to set the resolution to a readonable value

media-ctl -p 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]'