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

📄 yuvscaler.1

📁 Motion JPEG编解码器源代码
💻 1
字号:
.TH "yuvscaler" "1" "26 Septembre 2001" "MJPEG Linux Square" "MJPEG tools manual".SH NAMEyuvscaler \- UPscales or DOWNscales a YUV4MPEG2 stream to a specified format.SH SYNOPSIS.B yuvscaler .RB [ -I.IR input_keyword ].RB [ -M .IR mode_keyword ].RB [ -O.IR output_keyword ].RB [ -n\ p | s | n ].RB [ -v\ 0 - 2 ].RB [ -h ].SH DESCRIPTION\fByuvscaler\fP is a general (UP or DOWN) scaling utility that is provided toallow conversion between different video formats. It reads in aYUV4MPEG2 format stream from stdin (such as that producedby \fBlav2yuv\fP) and outputs such stream to stdout (e.g. to beconsumed by \fBmpeg2enc\fP).The most common use of yuvscaler is to generate input suitablefor MPEG encoding to VCD or SVCD formats using \fBmpeg2enc\fP(1).\fByuvscaler\fP will automatically take into account PAL/SECAM andNTSC format, as well as widescreen (16:9) format and interlacing. Useof yuvscaler was designed to be straightforward..SH EXAMPLES\fBVCD encoding:\fP.brlav2yuv my-file.avi | yuvscaler -O VCD | mpeg2enc -f 1 -o vcd.%d.m1v\fBSVCD encoding:\fP.brlav2yuv my-file.qt | yuvscaler -O SVCD | mpeg2enc -f 4 -o svcd.%d.m2v\fBEncoding anamorphic 16:9 as letterboxed VCD:\fP.brlav2yuv my-ana16-9.eli | yuvscaler -M WIDE2VCD | mpeg2enc -f 1 -o letterbox_vcd.%d.m1v\fBEncoding anamorphic 16:9 as letterboxed SVCD:\fP.brlav2yuv my-ana16-9.eli | yuvscaler -M WIDE2STD -O SVCD | mpeg2enc -f 4 -o letterbox_svcd.%d.m2v\fBEncoding anamorphic 16:9 as letterboxed DVD:\fP.brlav2yuv my-ana16-9.eli | yuvscaler -M WIDE2STD -O DVD | mpeg2enc -f 8 -o letterbox_dvd.%d.m2v.SH OPTIONS.TP .B -I \fIinput_keyword\fP.IPSpecifies input processing options.  Input options may be combined by usingmultiple \fB-I\fP flags. Possible \fIinput_keyword\fPs are:.IP\fBUSE_WidthxHeight+WidthOffset+HeightOffset\fP to select a useful area ofthe input frame (all multiple of 2, Height and HeightOffset multiple of 4 if interlaced), the restof the image being discarded.IP\fBACTIVE_WidthxHeight+WidthOffset+HeightOffset\fP to select an active areaof the input frame (all multiple of 2, Height and HeightOffset multiple of 4 if interlaced), the restof the image being made black.TP .B -M \fImode_keyword\fP.IPSets the scaling mode options.  Scaling mode options can be combined by giving several\fB-M\fP flags.Possible  are:.IP\fBBICUBIC\fP - to use the (Mitchell-Netravalli) high-quality bicubic upsaclingand/or downscaling algorithm.IP\fBRESAMPLE\fP - to use a classical resampling algorithm -only fordownscaling- that goes much faster than bicubic. For coherence reason,\fByuvscaler\fP will use RESAMPLE if only downscaling is necessary,BICUBIC if not..IP\fBWIDE2STD\fP - convert widescreen anamorphic (16:9) input videointo letterboxed (4:3), generating necessary black lines.  Note thatfor MPEG applications if your \fIplayer\fP can properly decodeanamorphic video you may wish to leave the video unscaled and simplyspecify the approprate format during MPEG encoding (see \fBmpeg2enc\fP(1))..IP\fBRATIO_WidthIn_WidthOut_HeightIn_HeightOut\fP to specifiedscaling ratios of WidthIn/WidthOut for width andHeightIN/HeightOut for height to be applied to the useful area. Theoutput frames that result from scaling can have a different formatthan the output format specified using \fB-O\fP options(s).  In thiscase, \fByuvscaler\fP automatically generate necessary black lines andcolumns and/or skips necessary lines and columns to center the scaledimage in the output frame..IP\fBWIDE2VCD\fP to scale anamorphic widescreen (16:9) frames into letterboxed VCD format (equivalent to -M WIDE2STD -O VCD).  .IP\fBFASTVCD\fP to transcode full sized frames to VCD (equivalent to -M RATIO_2_1_2_1 -O VCD, see below)..IP\fBFAST_WIDE2VCD\fP to transcode full-sized anamorphic (16:9) frames to letter-boxed VCD (equivalent to -M WIDE2STD -M RATIO_2_1_2_1 -O VCD, see below)..IP\fBNO_HEADER\fP to suppress stream header generation on output.IP\fBMMX\fP to use MMX functions for BICUBIC scaling (experimental feature!!).IP.TP .B -O \fIoutput_keyword\fP.IPSets the output frame format options.  Output formatoptions can be combined by giving several \fB-O\fP flags.By default, output frames size will be the same as input frame sizes, aswell as output frames interlacing if coherent with output keywordspecification which prevails, top_first if not. .IP\fBMONOCHROME\fP to generate monochrome frames on output.  Chrominanceinformation for the scaled pixels is set neutral (white).  MPEGencoding of black and white video will be both inefficient \fIand\fPshow annonying chrominance artifacts unless this is done..IP\fBVCD\fP to generate VCD compliant frames on output (taking care ofPAL and NTSC standards). Non-interlaced output..IP\fBSVCD\fP to generate SVCD compliant frames on output (taking care ofPAL and NTSC standards). Top-field-first interlaced frames..IP\fBDVD\fP to generate DVD compliant frames on output (taking care ofPAL and NTSC standards). Top-field-first interlaced frames..IP\fBSIZE_WidthxHeight\fP to generate frames of size WidthxHeight onoutput (multiple of 4).IPIf VCD, SVCD or DVD keywords are not used, output interlacing is taken of thesame type as input. By default, output frames size will be the same as inputframe size..IP.TP .B -n p|s|n(usually not necessary) if norm could not be determined from data flux, specifies the OUTPUT normfor VCD/SVCD (p=pal,s=secam,n=ntsc)..TP.B -v 0|1|2Specifies the degree of verbosity: 0=quiet, 1=normal, 2=verbose/debug.TP.B -hPrints a summary of command line syntax..PP\fBNote:\fP The most useful downscaling ratios are handled using dedicated optimisedscaling routines. They are:.IPRATIO_WidthIn_WidthOut_2_1 => Full-sized frame to VCD downscaling.IPRATIO_3_2_1_1 => Full-sized frame to SVCD downscaling.IPRATIO_1_1_4_3 => WIDE2STD downscaling mode.IPRATIO_WidthIn_WidthOut_1_1 => downscaling only concerns width, not height.IPRATIO_1_1_HeightIn_HeightOut => downscaling only concerns height, not width.IPRATIO_2_1_2_1 => FASTVCD, slightly width distorted (real ratio 45 to 22) but fasterfull-sized frame to VCD downscaling (-M RATIO_2_1_2_1 -O VCD).IPRATIO_WidthIn_WidthOut_8_3 => specific to WIDE2VCD downscaling (-M WIDE2STD -O VCD).IPRATIO_2_1_8_3 => specific to (slighly distorted) FAST_WIDE2VCD downscaling (-M WIDE2STD -M RATIO_2_1_2_1 -O VCD).IPRATIO_1_1_1_1 => copy useful input part of possible several files into output frames.SH AUTHORThis man page was written by Xavier Biquard et al..brIf you have questions, remarks, problems or you just want to contactthe developers, the main mailing list for the MJPEG\-tools is:  \fImjpeg\-users@lists.sourceforge.net\fP.TPFor more info, see our website at.I http://mjpeg.sourceforge.net/.SH SEE ALSO.BR mjpegtools (1),.BR lavpipe (1),.BR lav2yuv (1).BR mpeg2enc (1)

⌨️ 快捷键说明

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