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).
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
GTK GUI for the Camera controls
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
TKinter GUI for the Camera controls
If you like the old user interfaces.
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
cd cameractrls
git pull
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