Whiskey Kilo Linux  •  Exploring GNU/Linux and F/OSS
intrepid.jpg

Monday 6th February 2012

drupal member logo

drupal logo

ubuntu logo

gnome logo

opensource logo

Recording TV cards with mencoder

WinTV PVR 250In my main desktop machine there are two videocards: a Terratec Cinnergy 400 (SAA7134) and a Hauppauge PVR 250 (IVTV). Here are some commands i use for watching and recording.

For watching the saa7134 card:

mplayer -tv driver=v4l2:device=/dev/video1:outfmt=i420:freq=840: -vc rawi420 tv://

Watching the ivtv card is easy. First you select the right frequency with ivtv-tune -f 848 and then mplayer /dev/video0 to start watching. To record the stream to disk do

cat /dev/video0 > tv.mpg. This produces about 60MB per minute. If that's too much, try mencoder tv.mpg -of mpeg -oac lavc -ovc xvid -xvidencopts bitrate=600 -o tv2.mpg

to reduce the filesize to about 4,5MB a minute. A two pass approach will cost a bit more time, but the quality is better and the filesize drops to about 3,5MB a minute. That's 210MB per hour of full PAL resolution.

At the moment i record the saa7134 card with

mencoder -tv driver=v4l2:device=/dev/video1:outfmt=yuy2:width=384:height=288\ :fps=25:freq=840 -of mpeg -oac lavc -ovc xvid -xvidencopts bitrate=800:vhq=2 tv:// -o tv.mpg

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may link to images on this site using a special syntax

More information about formatting options

CAPTCHA
This question is used to make sure you are a human visitor and to prevent spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.