/alias-v4l

Wraps Video4Linux to simplify controlling camera settings

Primary LanguageShellMIT LicenseMIT

alias-v4l

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.

Index

  1. Aliases
    1. cameras
    2. exposure
    3. wb
  2. Installation
    1. Prerequisites

Aliases

This library contains the following aliases for changing your camera settings.

cameras

List the available video input devices.

cameras

exposure

Change the exposure. Requires an argument of either the absolute exposure...

exposure 512

...or auto.

exposure auto

wb

Change the white balance. Requires an argument of either the desired color temperature in Kelvin...

wb 5000

...or auto.

wb auto

Installation

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.

Prerequisites

You must have Video4Linux installed to use these scripts.

On Debian-family Linuxes, inluding Ubuntu and Mint:

apt update
apt install -y v4l-utils