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:
Detailed definition of the command options: ![]() ![]() Command Script Examples
You can run YUVTools.exe directly from command line windows, like: ![]() or combine multiple runs of the program into a batch script file. Following are the examples of some batch files: play_rgb444.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 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 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’.
|