yuvscaler - UPscales or DOWNscales a YUV4MPEG2 stream to a specified format
yuvscaler [-I input_keyword] [-M mode_keyword] [-O output_keyword] [-n p|s|n] [-v 0-2] [-h]
yuvscaler is a general (UP or DOWN) scaling utility that is provided to allow conversion between different video formats. It reads in a YUV4MPEG2 format stream from stdin (such as that produced by lav2yuv) and outputs such stream to stdout (e.g. to be consumed by mpeg2enc). The most common use of yuvscaler is to generate input suitable for MPEG encoding to VCD or SVCD formats using mpeg2enc(1). yuvscaler will automatically take into account PAL/SECAM and NTSC format, as well as widescreen (16:9) format and interlacing. Use of yuvscaler was designed to be straightforward.
VCD encoding: lav2yuv my-file.avi | yuvscaler -O VCD | mpeg2enc -f 1 -o vcd.%d.m1v SVCD encoding: lav2yuv my-file.qt | yuvscaler -O SVCD | mpeg2enc -f 4 -o svcd.%d.m2v Encoding anamorphic 16:9 as letterboxed VCD: lav2yuv my-ana16-9.eli | yuvscaler -M WIDE2VCD | mpeg2enc -f 1 -o letterbox_vcd.%d.m1v Encoding anamorphic 16:9 as letterboxed SVCD: lav2yuv my-ana16-9.eli | yuvscaler -M WIDE2STD -O SVCD | mpeg2enc -f 4 -o letterbox_svcd.%d.m2v Encoding anamorphic 16:9 as letterboxed DVD: lav2yuv my-ana16-9.eli | yuvscaler -M WIDE2STD -O DVD | mpeg2enc -f 8 -o letterbox_dvd.%d.m2v
-I input_keyword Specifies input processing options. Input options may be combined by using multiple -I flags. Possible input_keywords are: USE_WidthxHeight+WidthOffset+HeightOffset to select a useful area of the input frame (all multiple of 2, Height and HeightOffset multiple of 4 if interlaced), the rest of the image being discarded ACTIVE_WidthxHeight+WidthOffset+HeightOffset to select an active area of the input frame (all multiple of 2, Height and HeightOffset multiple of 4 if interlaced), the rest of the image being made black -M mode_keyword Sets the scaling mode options. Scaling mode options can be combined by giving several -M flags. Possible are: BICUBIC - to use the (Mitchell-Netravalli) high-quality bicubic upsacling and/or downscaling algorithm RESAMPLE - to use a classical resampling algorithm -only for downscaling- that goes much faster than bicubic. For coherence reason, yuvscaler will use RESAMPLE if only downscaling is necessary, BICUBIC if not. WIDE2STD - convert widescreen anamorphic (16:9) input video into letterboxed (4:3), generating necessary black lines. Note that for MPEG applications if your player can properly decode anamorphic video you may wish to leave the video unscaled and simply specify the approprate format during MPEG encoding (see mpeg2enc(1)). RATIO_WidthIn_WidthOut_HeightIn_HeightOut to specified scaling ratios of WidthIn/WidthOut for width and HeightIN/HeightOut for height to be applied to the useful area. The output frames that result from scaling can have a different format than the output format specified using -O options(s). In this case, yuvscaler automatically generate necessary black lines and columns and/or skips necessary lines and columns to center the scaled image in the output frame. WIDE2VCD to scale anamorphic widescreen (16:9) frames into letterboxed VCD format (equivalent to -M WIDE2STD -O VCD). FASTVCD to transcode full sized frames to VCD (equivalent to -M RATIO_2_1_2_1 -O VCD, see below). FAST_WIDE2VCD 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). NO_HEADER to suppress stream header generation on output MMX to use MMX functions for BICUBIC scaling (experimental feature!!) -O output_keyword Sets the output frame format options. Output format options can be combined by giving several -O flags. By default, output frames size will be the same as input frame sizes, as well as output frames interlacing if coherent with output keyword specification which prevails, top_first if not. MONOCHROME to generate monochrome frames on output. Chrominance information for the scaled pixels is set neutral (white). MPEG encoding of black and white video will be both inefficient and show annonying chrominance artifacts unless this is done. VCD to generate VCD compliant frames on output (taking care of PAL and NTSC standards). Non-interlaced output. SVCD to generate SVCD compliant frames on output (taking care of PAL and NTSC standards). Top-field-first interlaced frames. DVD to generate DVD compliant frames on output (taking care of PAL and NTSC standards). Top-field-first interlaced frames. SIZE_WidthxHeight to generate frames of size WidthxHeight on output (multiple of 4) If VCD, SVCD or DVD keywords are not used, output interlacing is taken of the same type as input. By default, output frames size will be the same as input frame size. -n p|s|n (usually not necessary) if norm could not be determined from data flux, specifies the OUTPUT norm for VCD/SVCD (p=pal,s=secam,n=ntsc). -v 0|1|2 Specifies the degree of verbosity: 0=quiet, 1=normal, 2=verbose/debug -h Prints a summary of command line syntax. Note: The most useful downscaling ratios are handled using dedicated optimised scaling routines. They are: RATIO_WidthIn_WidthOut_2_1 => Full-sized frame to VCD downscaling RATIO_3_2_1_1 => Full-sized frame to SVCD downscaling RATIO_1_1_4_3 => WIDE2STD downscaling mode RATIO_WidthIn_WidthOut_1_1 => downscaling only concerns width, not height RATIO_1_1_HeightIn_HeightOut => downscaling only concerns height, not width RATIO_2_1_2_1 => FASTVCD, slightly width distorted (real ratio 45 to 22) but faster full-sized frame to VCD downscaling (-M RATIO_2_1_2_1 -O VCD) RATIO_WidthIn_WidthOut_8_3 => specific to WIDE2VCD downscaling (-M WIDE2STD -O VCD) RATIO_2_1_8_3 => specific to (slighly distorted) FAST_WIDE2VCD downscaling (-M WIDE2STD -M RATIO_2_1_2_1 -O VCD) RATIO_1_1_1_1 => copy useful input part of possible several files into output frames
This man page was written by Xavier Biquard et al. If you have questions, remarks, problems or you just want to contact the developers, the main mailing list for the MJPEG-tools is: email@example.com For more info, see our website at http://mjpeg.sourceforge.net/
More Linux Commands
XSetIconSizes(3) - allocate icon size structure and set or r
The XAllocIconSize function allocates and returns a pointer to a XIconSize structure. Note that all fields in the XIconSize structure are initially set to zero.
autoopts-config(1) script to get information about installed
autoopts-config is a tool that is used by configure to determine the compile and linker flags that should be used to compile and link programs that use autoopts
XGrabDevice(3) - grab/release the specified extension device
XGrabDevice.3 - The XGrabDevice request actively grabs control of the device and generates DeviceFocusIn and DeviceFocusOut events. Further device events are re
XML::XPath::Number(3pm) - Simple numeric values. (Man Page)
XML::XPath::Number.3pm - This class holds simple numeric values. It doesnt support -0, +/- Infinity, or NaN, as the XPath spec says it should, but Im not hurtin
mvhline_set(3ncurses) - create curses borders or lines using
The border_set and wborder_set functions draw a border around the edges of the current or specified window. These functions do not change the cursor position, a
zforce(1) - force a '.gz' extension on all gzip files.......
zforce forces a .gz extension on all gzip files so that gzip will not compress them twice. This can be useful for files with names truncated after a file transf
SDL_MixAudio(3) - Mix audio data (Library - Linux man page)
This function takes two audio buffers of len bytes each of the playing audio format and mixes them, performing addition, volume adjustment, and overflow clippin
Tcl_SetBooleanObj(3) - store/retrieve boolean value in a Tcl
These procedures are used to pass boolean values to and from Tcl as Tcl_Objs. When storing a boolean value into a Tcl_Obj, any non-zero integer value in boolVal
XtVaOpenApplication(3) - initialize, open, or close a displa
The XtOpenApplication function calls XtToolkitInitialize followed by XtCreateApplicationContext, then calls XtOpenDisplay with display_string NULL and applicati
git-mailinfo(1) - Extracts patch and authorship from a singl
Reads a single e-mail message from the standard input, and writes the commit log message in <msg> file, and the patches in <patch> file. The author name, e-mail
mousedrv(4) - Xorg mouse input driver - Linux manual page...
mouse is an Xorg input driver for mice. The driver supports most available mouse types and interfaces, though the level of support for types of mice depends on
bstring(3) - byte string operations - Linux manual page.....
The byte string functions perform operations on strings (byte arrays) that are not necessarily null-terminated. See the individual man pages for descriptions of