📄 yuvdenoise.1
字号:
.TH "yuvdenoise" "1" "24th May 2002" "MJPEG Linux Square" "MJPEG tools manual".SH NAMEyuvdenoise \- Motion-Compensating-YUV4MPEG-frame-denoiser.SH SYNOPSIS.B yuvdenoise.RI [ options ].RI "</dev/stdin >/dev/stdout".SH DESCRIPTION\fByuvdenoise\fP can be used to remove noise from movie imagesin an YUV4MPEG2 stream. This is useful to reduce the bitrate needed to encode your captured movies for VCD and SVCD creation..SH OPTIONS\fByuvdenoise\fP accepts the following options:.TP 4.BI \-X " Disable SIMD optimisations"Disable the use of MMX/SSE enhancements if they would ordinarily be used. Thisis useful for testing to compare the C code against the SIMD code for timingand accuracy. .TP 4.BI \-t " [0..255] Denoiser threshold"Accept any image-error up to +/- threshold for a singlepixel to be accepted as valid for the image. If theabsolute error is greater than this, exchange the pixelwith the corresponding pixel of the reference image.(default=5).TP 4.BI \-l " [1..255] frames for a time-lowpassed pixel"Average 'n' frames for a time-lowpassed pixel. Valuesbelow 2 will lead to a good response to the referenceframe, while larger values will cut out more noise (andas a drawback will lead to noticable artifacts on highmotion scenes.) Values above 8 are allowed but ratheruseless. (default=3).TP 4.BI \-r " [8..24] search radius"Limit the search radius to that value. Usually it willnot make sense to go higher than 16, especially for VCD sizes.(default=8).TP 4.BI \-b " <x>,<y>,<w>,<h> Border Setting"If you already know parts of the image are and remain black overthe complete sequence of images you may use something like this:yuvdenoise -b 16,16,704,560This will set all the pixels in the image outside that search windowto pure black. The area outside the search window will not gointo the motion compensation algorithm which may give a moderatespeed gain in processing the movie. Sometimes it may be useful to have relative coordinates like this:yuvdenoise -b 16,16,-16,-16Provided there is a PAL-frame with 720x576 pixels, both options willturn the same area into black..TP 4.BI \-L " [0..255] luminance contrast"Set luminance (Y Contrast) in percent. (default=100) The default value of100 skips performing luminance contrast adjustment entirely..TP 4.BI \-C " [0..255] chrominance contrast"Set chrominance (Cr/Cb Contrast) in percent. AKA "Saturation" (default=100)The default value of 100 skips performing chrominance contract adjustmententirely..TP 4.BI \-S " [0..255] sharpness in percent"Set sharpness in percent. WARNING: do not set too highas this will gain bit-noise. (default=0) A sharpness value of 0 will skipperforming the sharpening pass (and speed up denoising about 20%)..TP 4.BI \-F " deinterlacing"Force deinterlacing. Default is to perform interlaced denoising..TP 4.BI \-f " fast mode"Fast mode. Use only Pass II (bitnoise-reduction) forlow to very low noise material. (default off).TP 4.BI \-p " [0..255] Pass II threshold"Pass II threshold (same as -t). WARNING: If set to values greater than 8 you *will* see artifacts...(default=4).TP 4.BI \-s " num"Number of beginning frames to skip. The first num frames are writtento stdout unfiltered. This is useful for resuming an interruptedjob without having to duplicate work..SH HOW IT WORKSYuvdenoise works by temporal lowpass filtering. To avoidmotion-blur it transforms the previous image with amotion-compensation as close as possible to the present frame. Thismotion-compensation is performed on 4x4 pixel blocks. The result isweighted and a block of the transformed previous frame is (dependingon a matching coefficient) either taken in full, blended with thepresent image-block or discarded if the match is to bad.This procedure implies that the motion-compensation is very exact. Ifa video-encoder misses a transformed block it's not that bad, it onlyencodes a difference block there. If the denoiser fails to find a goodmatching block the only solution is to exchange the found block withthe original frame block. Therefor a great amount of time is spent tofind good matches. This is the main reason why the denoiser does notrun at full framerate at CIF resolution as you might have wished..SH TYPICAL USAGE AND TIPSAs it is self-adapting to the noise-situation found in the stream younormally just can go without any options set:lav2yuv my-video.avi | yuvdenoise | mpeg2enc -t 1 -o my-video.m1vHowever, to obtain the best possible result, you should take note ofthe following: 1. Grab at the maximum possible resolution (PAL 768x576pixels). Do this even if you just want to create a 352x288 pixelmovie as downscaling reduces noise (and at no cost toimage-quality and/or sharpness in that case).2. First denoise, then scale! There are some rare situations where thedenoiser itself may introduce artifacts (blocks, etc...). Theperceptibilty of these artifacts is reduced by this processing order.3. If your movie contains black borders use the -b option to turn theminto pure black. This helps the encoder use fewer bits to encode the data.4. You can greatly improve the recorded quality if you use correctcables. Only use HF-in (the antenna-cable ...) if you really can'tconnect your VCR/Camcorder by other means (Composite, S-Video orSCART-RGB).5. If your movie is B&W only, then try the -B switch.Having said all that, I normally use a command-line like this one:lav2yuv movie.avi | yuvdenoise -b 8,64,-8,-64 | yuvscaler -OSIZE_352x288 | mpeg2enc -f 1 -o movie.m1vHave a lot of fun! ;-).SH AUTHORThis man page was written by Stefan Fendt <stefan@lionfish.ping.de>..SH FURTHER INFOSIf you have questions, remarks, problems or you just want to contactthe developers, the main mailing list for the MJPEG\-tools is:.BR \fImjpeg\-users@lists.sourceforge.net\fPFor more info, see our website at.BR \fIhttp://mjpeg.sourceforge.net/\fP.SH SEE ALSO.BR mjpegtools (1),.BR mpeg2enc (1).BR lavrec (1).BR lav2yuv (1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -