For recording tv with any working tv card, I recommend using mencoder. It can handle nicely tv, and can use ffmpeg encoders to compress image in real time (depending on the power of your CPU, choose your codec wisely)

Try that script :
#!/bin/sh
case $1 in
1 ) channel=53
chaine=bbc1 ;;
2 ) channel=60
chaine=bbc2 ;;
3 ) channel=55
chaine=itv ;;
4 ) channel=50
chaine=c4 ;;
* ) echo "unknown channel"
exit ;;
esac

echo "Presser "ENTREE" pour d�marrer l'enregistrement de $chaine..."
read

mencoder -tv on:Driver=v4l:input=0:norm=SECAM:channel=$channel:width=768:height=576 -vop pp=hb/vb/dr/al/lb -oac mp3lame -ovc lavc -lavcopts vcodec=mjpeg -o ${chaine}.avi

Notes :
If you have no sound : think to increase "IGain" value in aumix; this script uses libmp3lib0 to work (in PLF)
You can use frequence value with freq= instead of channel=
You can simply play TV with that command too :
mplayer -tv on:Driver=v4l:input=0:norm=SECAM:freq=$1:width=768:height=576 -vo sdl -ao sdl -vop pp=hb/vb/dr/al/lb
Read man mplayer for other options

Eric
Sorry, I left a message in French, which means "Press ENTER to start recording..."
It may be removed, of course.
Moreover these channels are not realistic : they correspond to UK TV, so norm=PAL should be used, and the channel numbers are not exact. But it was just an example... norm=SECAM is just for France (and some African countries).

Eric


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Reply via email to