Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #A hack to "fix" the HDPVR color saturation issue in MythTV
- #Run this as a "Recording Started" event.
- #Sleep a bit to let recording get started.
- sleep 2;
- #is kernel < 3.4? This is supposedly fixed in kernel >= 3.4
- fixed_ver=3.4
- kern_ver=$(uname -r | cut -f 1-2 -d .)
- if [ $(expr $kern_ver \< $fixed_ver) -ne 1 ];
- then
- exit 0
- fi
- color_fix() {
- device=$1
- /usr/bin/v4l2-ctl --device=$device --set-ctrl brightness=0x80 --set-ctrl contrast=0x40 --set-ctrl hue=0xf --set-ctrl saturation=0x40 --set-ctrl sharpness=0x80 || exit $?
- }
- for device in /dev/hdpvr*; do
- color_fix $device;
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement