Adjusting C920 Brightness and Zoom in Portsdown?

Discussion about this major DATV Project. See https://wiki.batc.org.uk/The_Portsdown_Transmitter
Post Reply
G1INU
Posts: 60
Joined: Thu May 30, 2024 1:03 pm

Adjusting C920 Brightness and Zoom in Portsdown?

Post by G1INU » Wed Jun 12, 2024 8:44 pm

Hi All,

I need to adjust the input from a C920 Webcam as the brightness and zoom are way off?

Could one of you guys who is far far more understanding of linux than i will ever be help

I am running Portsdown 4 on a pi4 with a 7in touch screen and i have a C920 USB webcam attached. When it boots up I find the brightness and zoom on the webcam need adjusting. If I go into the terminal and ssh into pi4 I can set brightness and zoom with the appropriate commands. Namely v4l2-ctl -d /dev/video0 --set-ctrl=brightness=80 and likewise with zoom_absolute.

I have found that if i set the zoom and brightness by entering the respective lines in the /etc/rc.local file, only the zoom_absolute command is staying as I set it. I am guessing there must be a brightness setting in Portsdown that sets brightness back to default.

So my question is; Is there another file that will run at the end of the boot process where I can enter the brightness and zoom commands? Alternatively how do I run a .sh file containing the appropriate commands at the end of the boot process?
Regards
Mark - G1INU

Post Reply

Return to “The Portsdown Digital ATV System”