This library wraps Video4Linux commands that allow you to change settings on your camera while you are using it, hopefully resulting in simpler and more user-friendly commands than what v4l2
offers out of the box.
This library contains the following aliases for changing your camera settings.
List the available video input devices.
cameras
Change the exposure. Requires an argument of either the absolute exposure...
exposure 512
...or auto
.
exposure auto
Change the white balance. Requires an argument of either the desired color temperature in Kelvin...
wb 5000
...or auto
.
wb auto
Make a folder for these types of scripts and aliases to exist, if you don't have one already.
mkdir -p ~/.bash
cd ~/.bash
Follow the instructions at the top-right of this repo to use your preferred method to clone this repo into that folder.
git clone --recursive git@github.com:kj4ezj/alias-v4l.git
Then, source v4l.sh
in your ~/bashrc
, ~/bash_aliases
, ~/bash_profile
, or similar.
source ~/.bash/alias-v4l/v4l.sh
Finally, restart your shell to use these aliases.
You must have Video4Linux installed to use these scripts.
On Debian-family Linuxes, inluding Ubuntu and Mint:
apt update
apt install -y v4l-utils