Home / YUVTools / Command line

Command Line Options:

YUVTools can be used in command line mode, which is useful for batch process. Not all the functions are supported in command mode, since some of them need interactive operations, for example, YUV editor function requires the user to select editing blocks on the image.

Here is the list of the functions that are supported in command line mode:

  • YUV player
  • YUV format convert
  • YUV image flip
  • YUV image crop
  • Join two YUV files
  • YUV to AVI conversion
  • AVI to YUV conversion
  • PSNR Calculation
Detailed definition of the command options:

              (Click here to display a full resolution image)

To display above dialog from YUVTools program, you can select "Help" from the top menu, then select "About Command Line...", or simple click on the icon from the toolbar .


Command Script Examples

You can run YUVTools.exe directly from command line windows, like:

              (Click here to display a full resolution image)

or combine multiple runs of the program into a batch script file.

Following are the examples of some batch files:

play_rgb444.bat
play_yuv422.bat
convert_yuv420.bat
convert_yuv444.bat
command_line.bat

A new feature was added in V3.0 to help convert multiple BMP files to a YUV file. You have to put all BMP files in one folder. All bmp files must have the same base name, followed by continuous numbers, starting with 00, like:

tulips00.bmp
tulips01.bmp
tulips02.bmp
.........
tulips16.bmp

Then you can use following command in the same folder to convert all above 17 BMP files into one YUV file:

         YUVTools.exe  -a convert -s bmp -n tulips%02d.bmp -N tulips.yuv -S yuv420 -O yuv -F progressive -P planar

Please pay attention to the BMP file name in the command line, "tulips%02d.bmp".  The same convention "%02d" is used as printf() function in C/C++ language. If your file names contain no additional leading '0', like:

tulips0.bmp
tulips1.bmp
tulips2.bmp
.........
tulips16.bmp

You can use command:

         YUVTools.exe  -a convert -s bmp -n tulips%d.bmp -N tulips.yuv -S yuv420 -O yuv -F progressive -P planar

For both cases, BMP file name sequence MUST start will number 0, like 'tulips0.bmp'.

 
Copyright, www.sunrayimage.com, 2009