You can get the card's current video standard with
{code:none}
$ v4l2-ctl -S -d /dev/<device_file>
{code}
If you want to change it (e.g. you get NTSC but you want PAL), you can get a list of the supported video standards with:
{code:none}
$ v4l2-ctl --list-standards -d /dev/<device_file>
{code}
Find your preferred standard in the list and remember its index number. Then set the card to using that standard with:
{code:none}
$ v4l2-ctl -s <index> -d /dev/<device_file>
{code}
h6. Setting the input type
Most Hauppauge cards have composite video and supervideo inputs, but they can only fed from one of them at a time. To see the active input use:
{code:none}
$ v4l2-ctl -I -d /dev/<device_file>
{code}
You can get a list of available inputs with:
{code:none}
$ v4l2-ctl --list-inputs -d /dev/<device_file>
{code}
To set one of those inputs as active, you need the index number of the input (provided by the previous command):
{code:none}
$ v4l2-ctl -i <index> -d /dev/<device_file>
{code}
Note: Sometimes you may get several inputs for the same connector (e.g. "Composite1", "Composite2" and "Composite3"), but just one of them is fully operational. You have to guess the right one by trial and error.
h6. Additional tweaking
You may apply additional settings to your card with the v4l2-ctl tool. Just type "v4l2-ctl" in your shell and you will get a comprehensive list of available commands.
h6. Making settings permanent
The settings applied with this tool will disappear between reboots. You can, however, write a script file with the appropriate commands and set it to run when the system starts.
{anchor:udev}
h5. UDEV rules
Create the file {{/etc/udev/rules.d/galicaster.rules}} where the udev rules to be applied to the devices will be added.
These are some configuration examples:
{code:none}
KERNEL=="video[0-9]*", ATTR{name}=="Epiphan VGA2USB #V2U19350", GROUP="video", SYMLINK+="screen"
KERNEL=="video[0-9]*", ATTR{name}=="ivtv0 encoder MPG", GROUP="video", SYMLINK+="camera"
KERNEL=="video[0-9]*", ATTR{name}=="UVC Camera (046d:0821)", GROUP="video", SYMLINK+="webcam"
KERNEL=="video[0-9]*", ATTR{name}=="ivtv0 encoder MPG", GROUP="video", SYMLINK+="haucamera"
KERNEL=="video[0-9]*", ATTR{name}=="ivtv0 encoder YUV", GROUP="video", SYMLINK+="hauprevideo"
KERNEL=="video[0-9]*", ATTR{name}=="ivtv0 encoder PCM", GROUP="audio", SYMLINK+="haupreaudio"
{code}
Use the following command to find out the value of {{ATTR\{name\}}}:
{code:none}
$ udevadm info --attribute-walk --name=${device}
{code}
substituting {{"$\{device\}"}} for the device's mount point (e.g. {{/dev/video0}})
{anchor:autostart}
h5. Autostart
Add the file galicaster.desktop to the folder {{\~/.config/autostart/}}
{code:none}
[Desktop Entry]
Name=Galicaster Class
Version=1.0
Type=Application
Terminal=false
Exec=python "/home/galicaster/src/galicaster/classexec.py"
{code}
Warning: Some paths may need to be adjusted to the current environment.