diff --git a/LDP/howto/linuxdoc/VCR-HOWTO.sgml b/LDP/howto/linuxdoc/VCR-HOWTO.sgml index 146d34bf..013de701 100644 --- a/LDP/howto/linuxdoc/VCR-HOWTO.sgml +++ b/LDP/howto/linuxdoc/VCR-HOWTO.sgml @@ -15,13 +15,14 @@ Changelog: Brian Hayward, 0.03, 2001-03-10 +0.04, 2001-07-30 VCRHOWTO This is a guide to setting up your GNU/Linux workstation as a digital VCR using -the video4linux driver and a supported tuner card. +the video4linux driver and a supported tuner card. A section has been added for creating VCD's that can be +played in any DVD/VCD player as well. @@ -114,13 +115,15 @@ linuxpe (at) uol.com.br -- Working on Portuguese Translation. sam (at) daemoninc.com -- Tips for expanding this document. HeikoL77 (at) web.de -- Links to more information. Henry.Kingman (at) zdnet.com -- Links to more information on supported video cards. +aoe (at) mars.tuwien.ac.at -- Alexander provided the section on creating VCD's. Translations

-Unfortunately no translations of this document currently exist. Once they become available, I -will provide links to them here. A Portuguese translation is in the works, this will be completed by -either Carlos Fernando Scheidecker Antunes or Marcio Montenegro. +Marcio Montenegro was kind enough to translate this document to Portuguese. His translation is available at +. Feel free to translate this document to other +languages. If you send me a link, I will credit you and include it in this document. Please note that for +it to be included in the Linux Documentation Project, you will have to provide it in sgml format.

@@ -192,11 +195,11 @@ Make sure xawtv functions for your tuner card before proceeding. Sample .xawtv configuration file.

-Here is a sample ".xawtv" configureation file. This should be placed within the +Here is a sample ".xawtv" configuration file. This should be placed within the home directory for the user who will be doing the VCR recording. I suggest adding presets to your .xawtv file for all channels(0-NNN) (even non-existing ones) because you will use the "v4lctl" command to switch channels later. This command makes use -of 'preset number' rather than 'channel number', so it's conveniant to have preset +of 'preset number' rather than 'channel number', so it's convenient to have preset numbers be the same as actual channel numbers. The following configuration file was designed for US-cable, your mileage may vary. @@ -491,27 +494,26 @@ You will need avifile-0.5x and binaries-xxxxxx.zip. You should extract the bina # unzip /path/to/binaries-010122.zip You will need to be root for the make install step to work. -If you receive any errors, they were probably due to a missing dependancy during -the configure step. Resolve any dependancies and try again. This should work +If you receive any errors, they were probably due to a missing dependency during +the configure step. Resolve any dependencies and try again. This should work smoothly on any recent distribution that was installed with 'development' tools.

Installing the VCR frame-grabber program

-You can get the latest vcr program (vcr-1.05 at the time I wrote this) from +You can get the latest vcr program (vcr-1.07 at the time I wrote this) from .

-Compiling and installing vcr-1.05 +Compiling and installing vcr-1.07

You will need to be root for the make install step to work. -# tar xvfz vcr-1.05.tar.gz -# cd vcr-1.05 +# tar xvfz vcr-1.07.tar.gz +# cd vcr-1.07 # ./configure # make # make install -

Sample .vcrrc configuration file @@ -521,20 +523,27 @@ prefix on the ./configure line). You can now read the man page for vcr with: 'man -M/usr/local/man vcr'. This is where I got the initial .vcrrc file. I configured this one for my needs and added the same presets to this file as I did with the .xawtv file. If you think these files look -similar, it's because I believe vcr was originally based on the xawtv code base. -Here is the .vcrrc I use: +similar, it's because vcr was originally based on the xawtv code base. +Here is the .vcrrc I use: (note that the new 'audiobitrate' parameter means +record audio in mp3 format at the specified bitrate. mp3 audio is MUCH! smaller +than PCM audio that vcr records by default. 30 minutes = 113 megs for mp3 instead +of 240megs for PCM!). + [defaults] -quality = 100 +quality = 95 keyframes = 15 codec = DivX ;-) low-motion -attributes = BitRate=1600,Crispness=100 +attributes = BitRate=1600 source = Television norm = ntsc verbose = 1 freqtab = us-cable audiofrequency=44 +audiobitrate=64 +resolution=384 framerate = 29.97 +grabdevice=/dev/video0 [CH0 0] @@ -827,6 +836,79 @@ at -f /home/username/bin/recordshow6pm.sh 18:00

+Alternate Recorder - Creating VCD's for playback on DVD/VCD Players +

+Introduction to VCD Creation +

+I must thank Alexander Oelzant for creating this portion of the VCR-HOWTO. His original version +is located at: . +

+After recording shows on my computer for a while, I realized it was much nicer to watch +the shows on my full-sized television set than to watch them on my computer monitor. +There are two options for doing this: 1) Purchase a video card with TV-OUT and run a cable +to my television. or 2) Create a VCD and play it in my DVD Player. Since CD-R and CD-RW media +is really cheap I decided to go this route. +

+This section could theoretically be done in a different HOWTO because it uses a different +method for recording/converting than the other sections of the VCR-HOWTO use. This is primarily +because I haven't figured out how to create VCD compatible mpeg's using vcr. If your goal is to +create VCD's, use this section of the HOWTO. If you don't care about VCD's, completely ignore +this section of the howto because these procedures require MUCH MORE disk space than using vcr +to record for playing under linux. +

+ + +Required Hardware for VCD Creation and Playing +

+ +1)A linux supported CD writer. +2)A bttv compatible TV Tuner Card (WinTV is one good example) +3)A VCD player or DVD Player + +

+Required Software for VCD Creation +

+This is one method for creating VCD's under linux. If you have a better method, please let me know. +The following list of software contains the versions I found to work well for me under Red Hat 7.1. +

+ +1)NuppelVideo 0.52a (nuvrec must be setuid root) +2)exportvideo 7e-pre4 (must be this version or later) +3)mjpegtools 1.4.1 (installed rpm found on rpmfind.net) +4)toolame 02h +5)mplex 1.1 +6)vcdimager 0.6.2 (installed rpm found on rpmfind.net) +7)cdrdao 1.1.4 (rpm from redhat 7.1) + +

+Procedure for creating a VCD +

+ +1)nuvrec -t _NUM_m _filename_ +_NUM_m = size. E.g. 30m = 30 minutes. +2)nuvplay -e _filename_.nuv | toolame -b 224 -m s /dev/stdin _filename_.mp2 +3)exportvideo _filename_.nuv "|mpeg2enc -o _filename_.m1v"_ +4)mplex -f 1 -s 2324 -p 1 -o _filename_.mpg _filename_.m1v _filename_.mp2_ +5)vcdimager -l "Movie Title" -c _filename_.cue -b _filename_.bin _filename_.mpg_ +6)cdrdao write --device _your_device_ _filename_.cue_ +7)Eject the cd-r, stick it in the vcd player, press play and enjoy._ +8)File Sizes From each step for 30 minutes of data._ + +Bytes Filename Created from step? Can Delete after Step? +===================================================================== +1391756119 finefilm.nuv 1) nuvrec 2) toolame and 3) mpeg2enc +50401280 finefilm.mp2 2) toolame 4) mplex +259097824 finefilm.m1v 3) mpeg2enc 4) mplex +313793452 finefilm.mpg 4) mplex 5) vcdimager +120 finefilm.cue 5) vcdimager 6) cdrdao +318808896 finefilm.bin 5) vcdimager 6) cdrdao +--------------------------------------------------------------------- +Total approx 2.3g for 30 minutes of sample data. +If you delete previous files after the appropriate steps, max used space +for 30 minutes of data was 1.7gb. + + Further Information

VCRHOWTO!information resources @@ -841,7 +923,7 @@ We need a wrapper program that provides us with the ability to do the following Archive recorded shows to CDR/CDRW/DVDRAM Play Recorded shows (From hard disk or prompt for the media!) Set record times for recording shows - use tvguide.com as a source for showtimes. A program -that accesses tvguide.com for showtimes is: +that accesses tvguide.com for showtimes is: Be fully configurable to used preferred recorder/player. See as a possible place to start. @@ -861,6 +943,7 @@ that accesses tvguide.com for showtimes is: Cable Descramblers: and . Figure out how to implement -Encode audio as mp3 instead of PCM. This is reported to shrink 1hr of video from 420mb to -about 140mb! remenyi (at) ace-net.com.au suggested -Unfortunately this is a windows program, if anyone can provide instructions on how to do this under -linux, I will include it. Check out the - build your own digital satellite receiver. Check out the . @@ -916,7 +995,7 @@ you must have the tuner card send output to the 'line-in' on your sound card. You must also use the mixer to enable the line-in on the sound card (if you hear sound while recording the show, it is probably enabled). I used to have my tuner card sound sent to my stereo receiver instead of the sound card, which was why I -didn't get sound. Finally, it may be that the sound was recored properly, but your +didn't get sound. Finally, it may be that the sound was record properly, but your sound device is in use by another program (esd, licq, xmms, etc). Q: Why is my video very jumpy? @@ -924,14 +1003,14 @@ sound device is in use by another program (esd, licq, xmms, etc). A: This may be due to a slow CPU. I currently haven't determined the exact requirements for recording with this method, I'm hoping user feedback will help me figure out what CPU is indeed required. I have a Duron 700 that seems to work -fine, but I've heard that people with a 200-300mhz processor are unable to get +fine, but I've heard that people with a 200-500mhz processor are unable to get smooth video. Q: Why is the audio/video out of sync?

A: This may be due to an incorrect FPS setting for your video type. For NTSC you will want to use 29.97. For PAL you will want to use 25. I still don't -get perfect audio/video syncronization - but I can live with it. Hopefully this +get perfect audio/video synchronization - but I can live with it. Hopefully this will improve over time.