After a bit more detective work and trial&error, I've managed to get the command-line channel changing sorted (using VLC and v4l2 instead of ivtv-tune) - also worked out how to use the composite input (from VCR) for better picture quality when recording from VHS tapes:
To set input for Hauppauge PVR-150: /dev/video0
Code:
Tuner 1: v4l2-ctl --set-input=0
S-Video 1: v4l2-ctl --set-input=1
Composite 1: v4l2-ctl --set-input=2
S-Video 2: v4l2-ctl --set-input=3
Composite 2: v4l2-ctl --set-input=4
If using the Tuner input, here's how to set the Channel/Frequency:
Code:
Frequency: 11380 (711.250000 MHz) (BBC 1) => v4l2-ctl -f 711.250
Frequency: 10484 (655.250000 MHz) (BBC 2) => v4l2-ctl -f 655.250
Frequency: 10100 (631.250000 MHz) (ITV 1) => v4l2-ctl -f 631.250
Frequency: 10868 (679.250000 MHz) (CHA 4) => v4l2-ctl -f 679.250
This is for UK PAL of course - you will need to use the relevant frequencies for your area.
The command-line for recording the stream:
Code:
vlc pvr:// :pvr-device="/dev/video0" :pvr-radio-device="/dev/radio0" :pvr-norm=0 :pvr-frequency=-1 :pvr-bitrate=-1 --sout '#duplicate{dst=std{access=file,mux=ts,dst="/home/steve/Desktop/raid-partition/DVCR/filename.mpg"}}'
Obviously, you will need to set the path according to your own system setup.
So, the full sequence, if you wanted to record, say, BBC1, would be:
Code:
v4l2-ctl --set-input=0
v4l2-ctl -f 711.250
vlc pvr:// :pvr-device="/dev/video0" :pvr-radio-device="/dev/radio0" :pvr-norm=0 :pvr-frequency=-1 :pvr-bitrate=-1 --sout '#duplicate{dst=std{access=file,mux=ts,dst="/home/steve/Desktop/raid-partition/DVCR/filename.mpg"}}'
The next step is to work out how to enable VLC to view whilst recording, then to work out setting timed recordings
Bookmarks