v4l-utils

v4l-utils is a series tools on Linux to manage your media devices (webcam, IR devices, etc.)

We are gonna need v4l2-ctl

Install it first :

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#Install
sudo apt-get install v4l-utils

#List devices
v4l2-ctl --list-devices

#Check your device
v4l2-ctl -d /dev/video2 --list-ctrls

#Modifiy frequency
# power_line_frequency=1 50Hz
# power_line_frequency=2 60Hz
v4l2-ctl -d /dev/video2 --set-ctrl=power_line_frequency=1