⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vcr.1

📁 这个软件的功能同我上次传的那个avifile.也是linux上的一个用于多媒体应用的源码。
💻 1
字号:
.TH VCR 1.SH NAMEVCR - a text-console video recorder.SH SYNOPSIS.TP\fBvcr\fR [\fBoptions\fR] filename.SH DESCRIPTION.I VCR is a program which enables you to record a program using a video grabbercard that's supported by the video4linux drivers. It doesn't require agraphical environment, and you can use all popupular windows codecs (likeDivX, Indeo Video 5, etc) because VCR is built around the avifile library.Now, you can finally record your favourite program from a remote place,because Murphy's law dictates that you remember to record it when you're asfar away from your home as possible....PPIn the current early implementation, you can get an overview of all commandline options by executing it with option '--help'.PPIf you want to exit vcr before the recording time is finished, type 'q' andpress enter. After a short while, VCR will exit gracefully..SH OPTIONSCommand-line options always override options specified in the config file.If you choose a different video codec, the codec's attributes in the configfile will be ignored..PP.TP.B --codec-attribute, -a <attribute>=<value>Sets a codec attribute. To get a list of attributes for your selected codec, give 'list=1' as argument. You can set more thanone attribute by using this option multiple times..brConfig-file directive: \fBattributes\fR.TP.B --audiobitrate, -b <rate>If an audiobitrate is specified, audio will be compressed to mp3 format. Validbitrates will be listed if you specify an illegal value (e.g. 1). For 44Khz,16 bits stereo recording, 128 kbps is an average quality. For mono, 96 is..brConfig-file directive: \fBaudiobitrate\fR.TP.B --codec, -c <codec>Sets the codec to be used for video compression. Currently, only the DivX ;-)codecs work well for encoding. The default codec is 'DivX ;-) low-motion'with no attributes set (the defaults depend on your installed codec). To geta list of available codecs, use 'list' as codecname..brConfig-file directive: \fBcodec\fR.TP.B --debug, -d [filename]Turn on debug info. If you don't specify a filename, debug info will be loggedto ~/.vcrdebug..TP.B --framerate, -F <rate>Sets the framerate of the captured video. The default value is 25. If youcapture in NTSC mode, you can set it to 29.97..brConfig-file directive: \fBframerate\fR.TP.B --config-file, -fWhich file to use as configuration file (default= ~/.vcrrc)See section \fBCONFIGFILE\fR for the syntax..TP.B --help, -hShows an overview of all command line options and quits..TP.B --keyframes, -k <keyframes>Number of frames between keyframes (default=15).brConfig-file directive: \fBkeyframes\fR.TP.B --audiomode, -m <mode>Sets audio recording mode. Can be either 'stereo' or 'mono'..brConfig-file directive: \fBaudiomode\fR.TP.B --codec-preset, -P <codec preset>Which codec preset to use. A codec preset is similar to a tuner preset; it'sconvenient when you want to define several qualities of recordings (archival,something you view just once, etc). A codec preset \fBrequires\fR at leasta \fBcodec\fR (this distincts codec presets from tuner presets in the configfile). Other supported configuration directives are:.br\fBattributes\fR, \fBquality\fR, \fBkeyframes\fR, \fBaudiobitrate\fR, \fBaudiomode\fR, \fBaudiofrequency\fR, \fBaudiosamplesize\fR,\fBframerate\fR, \fBresolution\fR, \fBsplitsize\fR, \fBwindow\fR..brIt's not possible (nor necessary) to set a default codec preset in the configfile. When no codec preset is given on the command line, the values from the\fBDefaults\fR section will be used..TP.B --preset, -p <tuner preset>Which tuner preset to use. Tuner presets are read from the configfile, and have the same syntax/setup as xawtv's presets (which isexplained in the \fBCONFIGFILE\fR section)..brConfig-file directive: \fBchannel\fR (sets default preset).TP.B --quality, -q <quality>Quality for codec (1..100, 100 being best, default = 95).brConfig-file directive: \fBquality\fR.TP.B --resolution, -r <resolution>Sets the size of the capture window. To get a list of possible values,supply an invalid number (e.g. 10). Default = 384x288..brConfig-file directive: \fBresolution\fR.TP.B --splitsize, -s <size>Split the output in files of <size> megabytes. Useful for recording longcaptures to files the size of a CD-ROM. Default = -1, unlimited size.Some filesystems have a 2GB filesize barrier..brConfig-file directive: \fBsplitsize\fR.TP.B --source, -s <source>Input source (use 'list'  to get a list of available sources). Defaultinput source is 'Television', if available on your hardware..brConfig-file directive: \fBsource\fR.TP.B --rectime, -t <time>Length of time this program will record (notation: <number>h/m/s,where number can have decimals, e.g. '1.5h' = 90 minutes)). If you omit h/m/s,then minutes are assumed..brUse -1 for unlimited recording time..TP.B --window, -w <x>,<y>,<width>,<height>Crops each video frame to a window of width x height pixels, starting atoffset (x,y). Offset is relative to the upper left corner (0,0). Withoutspecifying a window, the captured video size is the size of your chosen\fBresolution\fR..brConfig-file directive: \fBwindow\fR.SH CONFIGFILEVCR expects to find the default config file in ~/.vcrrc. With '-f', youcan supply a different config file..brThe syntax of VCR's config file is the same as xawtv's syntax. The fileis split into sections, which are denominated by a keyword in squarebrackets on a single line. Every line up to the next denominator belongsto this section..PPAll section names represent the name of a tuner preset, except for 3specific names: \fBdefaults\fR, \fBglobal\fR and \fBlaunch\fR..brOf these 3 special sections, VCR only uses \fBdefaults\fR..PPEach line in a section contains a keyword/value pair, unless the line beginswith a '#', which means it's ignored (you can use it to put comments on).Empty lines are also ignored..brA keyword/value pair is formatted like this:.TP\fBkeyword\fR = \fBvalue\fR.PPThese keywords are recognized in the defaults section:.TP.B attributesAttributes specific to the codec used for encoding. Syntax:.br\fBattribute1=value1,attribute2=value2\fR.TP.B audiofrequencySets audio frequency. Possible values are \fB44\fR, \fB22\fR and \fB11\fR.(kHz).TP.B audiomodeSame as \fB--audiomode\fR parameter..TP.B audiosamplesizeSets audio sample size. Can be \fB16\fR (default) or \fB8\fR..TP.B codecSame as \fB--codec\fR parameter.TP.B channelDefault tuner preset to record from (same as \fB--preset\fR).TP.B framerateSame as \fB--framerate\fR parameter..TP.B freqtabSets the frequency table for your region. If you omit this keyword, you willget a list of available frequency tables..TP.B init-sound [mixer:][device:]volumeSets up the sound recording device. The default \fBmixer\fR is /dev/mixer,the default mixer \fBdevice\fR is 'Line'. A sane volume level is likelyin the range of 70..100. Without the init-sound keyword, you will haveto initialize the sound-device yourself before starting vcr..TP.B keyframesSame as \fB--keyframes\fR parameter.TP.B normTV norm in your country (currently one of PAL,NTSC,SECAM,AUTO)..TP.B qualitySame as \fB--quality\fR parameter.TP.B rectimeSame as \fB--rectime\fR parameter..TP.B resolutionSame as \fB--resolution\fR parameter..brThe bigger the window, the faster your CPU must be..TP.B sound-deviceThe sound device to record from. Default: /dev/dsp.TP.B sourceSame as \fB--source\fR parameter.TP.B splitsizeSame as \fB--splitsize\fR parameter.TP.B vflipSet this to 1 if you want to flip the image vertically. This might benecessary on some systems. If you don't specify it, or set it to 0, noflipping will be performed..TP.B windowSame as \fB--window\fR parameter..br.PPAll other sections are considered tuner- or codec presets. You should supplythe name of the preset (between the square brackets) to vcr using the\fB--preset\fR (tuner) or \fB--codec-preset\fR (codec) parameter..brThe difference between tuner- and codecpresets is determined by the presenceof the keyword 'codec': If it's present, it's a codec preset, otherwise a tuner preset..PPVCR recognizes these 2 keywords in each tuner preset:.TP.B channelChannel (see xawtv manual).TP.B fineFine-tuning (see xawtv manual).SH EXAMPLE CONFIGAn example configuration file with 3 tuner presets:.IP.TSl l.[defaults]quality = 100keyframes = 15codec = DivX ;-) low-motionattributes = BitRate=1600,Crispness=100source = Televisionnorm = palverbose = 1[Nederland 1]channel = E11fine = -26[Nederland 2]channel = E6fine = +20[Nederland 3]channel = E7fine = +36.TE.SH BUGS.PPIf you find bugs, please send reports to bram@avontuur.org..PP.SH AUTHOR.I VCRhas been written by.B Bram Avontuur <bram@avontuur.org> <http://www.stack.nl/~brama/>.PPMuch code has been taken from avifile (\fBhttp://divx.euro.ru/\fR)..PPConfig file parsing code is taken from xawtv(\fBhttp://www.strusel007.de/linux/xawtv/\fR).PPPlease send comments, suggestions, complaints, bug fixes, coffee and portingexperiences to me, including the version number of VCR in your mail. 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -