The Hauppauge WinTV-PVR 350 allows to watch and record TV and FM radio.
It can be controlled by ivtv.
Install ivtv:
# emerge ivtv
# emerge ivtv-ptune
Configure the ivtv module:
# nano -w /etc/modules.d/ivtv
It should contain:
alias char-major-81 videodev
alias char-major-81-0 ivtv
# alias char-major-61 lirc_i2c
options ivtv ivtv-debug=0 tuner=5
options tuner pal=1
options msp3400 once=1 simple=1 debug=0
add below ivtv msp3400 saa7115 saa7127 tuner
# add above ivtv lirc_dev lirc_i2c
Test it:
# modules-update
# rmmod ivtv
# modprobe ivtv
If you have a problem, check it with:
# dmesg -c
and loop back to the modules-update test.
Once this works, add the line ivtv
in /etc/modules.autoload.d/kernel-2.6.
The ivtv interface allows to see the PVR 350 as follows:
/dev/video0 streams MPEG data from the card
(tuner, A/V input, ...) to the PC,
/dev/video16 sends an MPEG stream from the PC to the A/V output,
/dev/video24 streams PCM stereo data from the card to the PC,
/dev/video32 streams YUV video data from the card to the PC,
/dev/video48 will send an YUV video stream from the PC to the A/V output,
Configure the video out:
# VIDEO_OUT='/dev/video16'
# ivtvctl -d $VIDEO_OUT -c aspect=2 > /dev/null # aspect ratio 4:3
# ivtvctl -d $VIDEO_OUT -c audio=0 > /dev/null # 40 kHz, stereo
# ivtvctl -d $VIDEO_OUT -c framerate=1 > /dev/null # PAL
# ivtvctl -d $VIDEO_OUT --set-standard=0x0000ff > /dev/null # PAL
# ivtvctl -d $VIDEO_OUT --set-format=width=720,height=576 > /dev/null # PAL
# ivtvctl -d $VIDEO_OUT --set-output=0 > /dev/null# S-Video + Composite
Test the video out:
# cat test.mpg > /dev/video16 &
Test the video in:
# dd if=/dev/video0 of=/dev/video16 bs=64k &
# ivtvctl -d /dev/video0 --set-input=0
Connect a video source (e.g. VCR) to the video in connector
and check the video out on a screen.
Test the tuner:
# VIDEO_IN='/dev/video0'
# ivtvctl -d $VIDEO_IN -c aspect=2 > /dev/null # aspect ratio 4:3
# ivtvctl -d $VIDEO_IN -c audio=0 > /dev/null # 40 kHz, stereo
# ivtvctl -d $VIDEO_IN -c framerate=1 > /dev/null # PAL
# ivtvctl -d $VIDEO_IN --set-standard=0x0000ff > /dev/null # PAL
# ivtvctl -d $VIDEO_IN --set-format=width=720,height=576 > /dev/null # PAL
# ivtvctl -d $VIDEO_IN --set-input=4 > /dev/null # select tuner
# ivtvctl -d $VIDEO_IN --set-audio-input=4 > /dev/null # select tuner
# ptune.pl -L # list frequency mappings
# ptune.pl -f pal-europe --list-channels # list available channels
# ptune.pl -f pal-europe -c 22 # tune to chosen channel
You can edit ~/.ivtvrc to set the defaults.