Saturday, December 19, 2009

Schematics Of A Caravel

mplayer



Since I began studying the incredible media suite open source mplayer / mencoder with this article begins a section where I describe and record my progress. In this first work describing a script that allows you to record from a composite







mencoder tv: / / / 2-tv driver = v4l2: input = 1: norm = pal: width = 480: height = 360: = yuy2 outfmt: device = / dev/video0: adevice = / dev / dsp: audiorate = 32000: forceaudio: forcechan = 1: buffersize = 80 -Ovc lavc-lavcopts threads = 3: vcodec = mpeg4: vbitrate = 1200: keyint = 30-oac mp3lame-lameopts br = 128: cbr: mode = 3: vol = 8-ffourcc divx-endpos 120-o VHS.avi

tv: / / / sets the input capture card, the value of 2 returns the input compound, at least for my card saa7134

driver = v4l2: input = 1: norm = pal: width = 480: height = 360: = yuy2 outfmt: device = / dev/video0: adevice = / dev / dsp: audiorate = 32000: forceaudio: forcechan = 1: buffersize = 80

-tv this option allows you to manage different properties of the capture card driver = v4l2

allows you to choose the driver input, in our case v4l2

input Specify input, default: 0 (TV), 1 stands for??

norm = pal European TV standards, the alternatives are PAL, SECAM, NTSC

width = 480: height = 360 sets the window size

outfmt = \u0026lt;value> Specify ' output of the tuner using a preset supported by the V4L driver (YV12, RGB32, RGB24, RGB16, rgb15, UYVY, YUY2, i420)

device = / dev/video0 specific video device

adevice = / dev / dsp select the audio device, although according to the formula mplayer manpage / dev / xxx should be used with OSS in my experience it works very well

forceaudio Capture audio although it is not revealed no audio from v4l device (maybe this works fine for the 'option above).

Forcechan = 1 This option allows forcing stereo or mono recordings (respectively the values \u200b\u200b1 and 2)

buffersize = 80 maximum buffer size in megabytes (default = dynamic)

audiorate = 32000 sect audio capture bitrate of 32000

-Ovc lavc-lavcopts threads = 3: vcodec = mpeg4: vbitrate = 1200: = 30 keyint

- ovc lavc (-lavcopts) video encoding using libavcodec library

threads = 3 sect the maximum number of "threads" to use the default value is 1 (1-8) might have a slight negative effect on the motion valazione

vcodec = mpeg4 indicate the specific codec to use, the option The default is mpeg4, codec used here is different

asv1 (ASUS Video v1), asv2 (ASUS Video v2), dvvideo (Sony Digital Video), ffv1 (FFmpeg’s lossless video codec), ffvhuff (nonstandard 20% smaller HuffYUV using YV12), flv (Sorenson H.263 used in Flash Video ), h261 (H.261), h263 (H.263), h263p (H.263+), huffyuv (HuffYUV), libtheora (Theora) libx264 (x264 H.264/AVC MPEG-4 Part 10), libxvid (Xvid MPEG-4 Part 2 (ASP)), ljpeg (Lossless JPEG), mjpeg (Motion JPEG), mpeg1video (MPEG-1 video), mpeg2video (MPEG-2 video), mpeg4 (MPEG-4 (DivX 4/5)), msmpeg4 (DivX 3), msmpeg4v2 (MS MPEG4v2), roqvideo (ID Software RoQ Video), rv10 (an old RealVideo codec), snow (also see: vstrict) (FFmpeg’s experimental wavelet-based codec), svq1 (Apple Sorenson Video 1), wmv1 (Windows Media Video, version 1 (AKA WMV7)), wmv2 (Windows Media Video, version 2 (AKA WMV8))

vbitrate = 1200 sets the bitrate to 1200 kbit

keyint = 30 sect maximum interval between IDR-frames (default = 250). Larger values \u200b\u200bsave bits so that improve the quality of the cost of precision research

-oac mp3lame-lameopts br = 128: cbr: mode = 3: vol = 8

-oac mp3lame encoding to mp3 using the lame library

-lameopts option is to set the blades

-br=128:cbr nel modalità CBR indica il bitrate/s in kbps, mentre nella modalità VBR indica il valore minimo per frame i valori permessi sono <32-384> per cbr e >112 per VBR.

mode=3 setta la modalità audio come mono, (mode=<0−3>, 0 stereo, 1 joint-stereo, 2 dualchannel, 3 mono)

vol=8 audio input gain range, vol=<0−10>

-ffourcc divx puo essere utilizzata per sovrascrivere il video fourcc del file output

-endpos 120 end of the record after 120 seconds,

-o VHS.avi saves everything in the file -0 VHS.avi




Very

0 comments:

Post a Comment