# HG changeset patch # User henry # Date 1035886150 0 # Node ID 26ddd166422ea663f6cc6574488f0f33c054fb43 # Parent 537af766336917226a56ba7f84847e9e7bbdc9c1 updated v4l section diff -r 537af7663369 -r 26ddd166422e DOCS/documentation.html --- a/DOCS/documentation.html Tue Oct 29 10:03:58 2002 +0000 +++ b/DOCS/documentation.html Tue Oct 29 10:09:10 2002 +0000 @@ -198,7 +198,8 @@
THIS CODE IS CURRENTLY NOT BEING WORKED ON! Do not expect it to work - without tweaking/experimenting!
- -- Hint+
- Are the colors messed up? Then your tuner cannot display - in YV12 colorspace. Try I420 (-vc rawi420
) or YUY2, UYVY, RGB32 - (-vo sdl
) colorspaces. - You can specify these with theoutfmt=YV12
option, see below. -
-vop
+pp=DEINT_TYPE
. Usually pp=lb
does a good
+job, but it can be matter of personal preference. See other
+deinterlacing algorithms in the manual and give it a try.crop
+option so that all the crap at the margins is cropped out. Again,
+don't forget to keep the resulting dimensions sane.
+outfmt
unless you know what you are
+doing or your card/driver really doesn't support the default (YV12
+colorspace) . In the older versions of MPlayer/MEncoder it was necessary
+to specify the output format. This issue should be fixed in the
+current releases and outfmt
isn't required anymore, and
+the default suits the most purposes. For example, if you are capturing
+into DivX using libavcodec and specify outfmt=RGB24
in
+order to increase the quality of the captured images, the captured
+image will be actually later converted back into YV12 so the only
+thing you achieve is a massive waste of CPU power.
+outfmt=i420
), you have to
+add an option -vc rawi420
due to a fourcc conflict with
+an Intel Indeo video codec.
+Dummy output, to AAlib :)
mplayer -tv on:driver=dummy:width=640:height=480 -vo aa
Input from standard V4L
- mplayer -tv on:driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv
mplayer -tv
+on:driver=v4l:width=640:height=480 -vo xv
mencoder -tv
+ on:driver=v4l:width=768:height=576 \
+ -ovc lavc -lavcopts
+ vcodec=mpeg4:vbitrate=900 \
-oac
+ mp3lame -lameopts cbr:br=64 \
-vop
+ pp=lb,crop=720:540:24:18 -o output.avi
Note:
- If you have a TV card with an external audio device and get only a black
- screen, although input works with xawtv or similar, then try to use the
- -noaudio
option. For the example above this would be:
- mplayer -tv on:noaudio:driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv
+ mencoder -tv on:driver=v4l:width=768:height=576 \
+ -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=350:vhq:vqmax=31:keyint=300 \
+ -oac mp3lame -lameopts cbr:br=48 \
+ -vop scale=384:288,pp=tn/lb,crop=720:540:24:18 -sws 1 -o output.avi
+
-tv
option and omit the software scaling but this
+ approach uses the maximum available information and is a little more
+ resistant to noise. The bt8x8 chips can do the pixel averaging only
+ in the horizontal direction due to a hardware limitation.
+
+