Skip to content

chrishoage/cameractrls

 
 

Repository files navigation

cameractrls

Camera controls for Linux

It's a standalone Python CLI and GUI (GTK, TK) and camera Viewer (SDL) 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, BRIO FoV, relative Pan/Tilt), Kiyo Pro extension (HDR, HDR mode, FoV, AF mode, Save), Systemd extension (Save and restore controls with Systemd path+service).

Download on Flathub

cameractrls.py

The CLI.

Clone the repo

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

Run the cameractrls

cd cameractrls
./cameractrls.py
usage: ./cameractrls.py [--help] [-d DEVICE] [--list] [-c CONTROLS]

optional arguments:
  -h, --help         show this help message and exit
  -d DEVICE          use DEVICE, default /dev/video0
  -l, --list         list the controls and values
  -L, --list-devices list capture devices
  -c CONTROLS        set CONTROLS (eg.: hdr=on,fov=wide)

example:
  ./cameractrls.py -c brightness=128,kiyo_pro_hdr=on,kiyo_pro_fov=wide

cameractrlsgtk

GTK GUI for the Camera controls

cameractrls launcher

cameractrls crop screen cameractrls image screen cameractrls exposure screen cameractrls advanced screen cameractrls capture screen

GTK GUI install

Install the dependencies

sudo apt install libsdl2-2.0-0 libturbojpeg

Clone the repo

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

Add the desktop file to the launcher

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

Run from the launcher or from the shell

./cameractrlsgtk.py

cameractrlstk

TKinter GUI for the Camera controls

If you like the old user interfaces.

cameractrls launcher

cameractrls tk screen

TK GUI install

Install the dependencies

sudo apt install python3-tk libsdl2-2.0-0 libturbojpeg

Clone the repo

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

Add the desktop file to the launcher

cd cameractrls
desktop-file-install --dir="$HOME/.local/share/applications" \
--set-icon="$PWD/images/icon_256.png" \
--set-key=Exec --set-value="$PWD/cameractrlstk.py" \
--set-key=Path --set-value="$PWD" \
cameractrls.desktop

Run from the launcher or from the shell

./cameractrlstk.py

Updating the cameractrls

cd cameractrls
git pull

Deleting the cameractrls

Disable, stop and delete the systemd paths, services:

cd ~/.config/systemd/user
systemctl --user disable --now cameractrls-*
rm cameractrls-*

Remove the launcher shortcut

rm ~/.local/share/applications/cameractrls.desktop

Delete the cameractrls:

rm -rf cameractrls

About

Camera controls for Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%