Archives For camera

Has a webcam connected in your Linux PC or laptop? Here’s a graphical tool to configure the camera exposure, white balance, brightness, contrast, power line frequency, gamma, etc.

It’s cameractrls, a new open-source tool that provides Python CLI and GUI (GTK, TK) to set the Camera controls in Linux. It can set the V4L2 controls and it is extendable with the non standard controls.

Currently, it has a Logitech extension (Led mode, led frequency), Kiyo Pro extension (HDR, HDR mode, FoV, AF mode, Save), Systemd extension (Save and restore controls with Systemd path+service).

Cheese and Cameractrls

As the picture shows, it has the slider bars to adjust the brightness, contrast, saturation, sharpness, and hue, which also configurable via the default Cheese app.

Basic settings page

There are as well options to switch between Aperture Priority Mode and Manual Mode to adjust camera exposure, backlight compensation, toggle HDR. White Balance temperature is also configurable in both auto and manual mode.

Advanced settings page lets you select power line frequency, toggle focus, AF mode, and adjust Pan, Tilt, Zoom, FoV if your web camera support them.

Cameractrls Advanced

How to Install the Camera Control App in Ubuntu & Other Linux:

This is a Python app that should work on all recent Linux distributions. To install it, open terminal from start menu (Ubuntu user may just press Ctrl+Alt+T on keyboard) and run the command below one by one:

1. Firstly, run command to install git in case you don’t have it:

sudo apt install git

The command is only for Debian, Ubuntu, Linux Mint based systems. Fedora user replace apt with dnf.

2. Grab the source by running command:

git clone https://github.com/soyersoyer/cameractrls.git

After downloaded the tool, run command to verify if it works for you!

./cameractrls/cameractrlsgtk.py

3. If the app launches and works, you may then run command in the same terminal window (close the app to continue) to install the app shortcut icon.

  • First, create local bin folder if not exist, and move the app folder into that directory:
    mkdir -p ~/.local/bin/ && mv cameractrls/ ~/.local/bin/
  • Navigate to the local bin:
    cd ~/.local/bin/
  • Finally, install the app shortcut (this is a single command, just copy & paste into terminal and hit run):
    cd cameractrls
    desktop-file-install --dir="$HOME/.local/share/applications" \
    --set-icon="$PWD/images/icon_256.png" \
    --set-key=Exec --set-value="$PWD/cameractrlsgtk.py" \
    --set-key=Path --set-value="$PWD" \
    cameractrls.desktop
Finally, you can search for and open the app from start menu ('Activities' overview):

How to Remove this Camera Control App:

To remove it, first open terminal and run command to remove the shortcut icon file:
rm ~/.local/share/applications/cameractrls.desktop

And remove the source folder via command:

rm -rf ~/.local/bin/cameractrls

How to Install Guvcview 1.7.3 in Ubuntu 14.04

Last updated: June 12, 2014

install the latest guvcview 1.7.3 in Ubuntu 14.04

Guvcview is a video capture tool for cameras supported by the linux UVC driver, although it should also work with any v4l2 compatible device.

It provides:

  • Image: jpg, png, bmp
  • Video: mjpeg, flv1, wmv1, mpg2, mpg4, vp8, ogg theora
  • Sound: mp3, acc, avi and matroska

You can also use guvcview as a control window only, (from console: guvcview –control_only), this allows image control on other apps, like ekiga, cheese, mplayer, skype, etc.

Guvcview Ubuntu 14.04

While Ubuntu 14.04 has Guvcview 1.7.1 in its repositories, the latest has reached Guvcview 1.7.3 with following changes:

  • add silence frames to compensate audio drift (delay).
  • fix possible memory leak
  • add video and image capture through system signals: SIGUSR1 and SIGUSR2
  • add true no_display mode (no X required)
  • small bug fixes
  • add H264 decoding support.

Install Guvcview 1.7.3 in Ubuntu 14.04:

The official v1.7.3 packages from sf.net were built on Ubuntu 13.10 and they don’t work on Ubuntu 14.04 Trusty due to dependencies problem.

I’ve rebuilt it into PPA based on Ubuntu 14.04, just download and double click to install it via Ubuntu Software Center.

guvcview 1.7.3 32-bit guvcview 1.7.3 64-bit

Enjoy!