http://wiki.tryphon.org/LinuxWiki/TVRecording.html
Something like that :
transcode -z -i /dev/video0 -p /dev/dsp -x v4l,v4l --import_v4l "0,France 2" -c 0-00:30:00 -y xvid -o record.xvid
You can use the vlc release provided by the DebianPackage:vlc in the Debian unstable.
server command line :
vlc -vvv v4l:/dev/video0:norm=secam:frequency=543250:size=320x240:channel=0:adev=/dev/dsp:audio=0 --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=3000,ab=256,vt=800000,keyint=80,deinterlace}:std{access=udp,mux=ts,url=192.168.0.2}' --ttl 1
To be able to change the tv channel, use several v4l: urls in the command line with the needed frequencies and select your channel in the vlc playlist.
You can use the vlc httpd interface to change the channel remotely.
client command line :
vlc -vvv udp://
Links
Stream from an acquisition card or a webcam Transcode