Home / YUVTools

YUVTools are a set of software utilities to play, convert and analyze YUV or RGB video data in their raw formats.

The user can play many different YUV/RGB formats, with full playing controls, as well as two layers of grids overlaid to indicate MB (macro block) and block boundaries in MPEG 1/2/4 and H.264. The user can also convert one YUV/RGB format to another, compare two YUV files and display their difference, and calculate the PSNR.

    YUVtools includes YUVPlayer, YUVConverter, YUVAnalyzer and YUVEditor, and other utilities.  

    The main features of YUVTools are:

  1. It accepts (play, convert, edit and analyze) the combination of following formats:
    • YUV in 4:4:4, 4:2:2 or 4:2:0 sample format,
    • RGB in 4:4:4 sampling format;
    • Mono-color image <New feature in V 3.0>
    • in different component order, like YUV, YVU, UYV,  RGB, BGR, etc.
    • in progressive (one single frame) or interlaced (two fields) format;
    • in planar (YYY...UUU...VVV...) or packed (YUV, YUV....) pixel format;
    • in predefined or arbitrary resolutions;
    • One example of the file format can be: YUV 4:2:0, interlaced, pixel packed, 352 x 288.
  2. Support FOURCC ( refer to: http://www.fourcc.org/). When one FOURCC is selected, other corresponding formats are set to match this FOURCC:
    • UYVY (YUV422, U-Y-V-Y, progressive, packed)
    • UYNV (same as UYVY )
    • Y422 (same as UYVY )
    • IUYV ( YUV422, U-Y-V-Y, interlaced, packed)
    • YUYV (YUV422, Y-U-Y-V, progressive, packed)
    • YUNV (same as YUYV)
    • V422 (same as YUYV)
    • YUY2 (same as YUYV)
    • YVYU (YUV422, Y-V-Y-U, progressive, packed)
    • IYU2 ( YUV444, U-Y-V, progressive, packed)
    • YV16 (YUV422, Y-U-V, progressive, planar)
    • YV12 (YUV420, Y-V-U, progressive, planar)
    • IYUV (YUV420, Y-U-V, progressive, planar)
    • I420 (same as IYUV)
  3. Since the raw video data is headless and with no format information saved in the file, a format guess function is provided when the video data is loaded to play, convert and analyze. For each format combination, an image preview (first frame), a format diagram (illustrating the data structure) and a raw data dump map will be displayed interactively, to help the users to try the combinations of above format, till right format is obtained. 
  4. YUV Player :
    • Select one or multiple files to play
      • When playing a video file, the user can start/stop, play/pause, reverse play, frame by frame forward/backward, or directly drag the file to a certain frame;
      • When playing a video file, the user can select display YUV all components, or select Y, U, and V components separately;
      • The user can open multiple player dialogs, and play different files for each dialog separately;
      • The user can select multiple video files in one player dialog and play those files one by one sequentially;
      • The user can set the play speed (frame per second) <New feature in V 3.0>
    • File manager to list file access history: <New feature in V 3.0>
      • Any opened or generated files will be logged. The history list include: File name and path, format, resolution, read/write and access time;
      • The user can directly click on any file to play back, or delete some of the files from the history list.
  5. YUV Converter:
    • Format convert : It can be used to convert any combination of above format to another;
      • It can convert a sequence of BMP files into a single YUV/RGB format, or vice versa;
      • The user can select to convert only some of the frames in the input file;
      • It can scale up/down if the input and output images have different resolution;
    • Join : Two YUV files can be joined into one file.
    • Crop : One certain area of all the frames can be cropped and saved into a new YUV file. <Improved in V 3.0: cropped area will be displayed as transparent, and the rest semi-transparent.>
    • Flip : The user can vertically flip all frames in original file and save it into a new YUV file.
    • Padding : The user can pad the image to make the image width and height to the multiples of certain numbers. <<New feature in V3.0>
    • Merge : If the user has 3 separate files for each color component (either in Y, U and V, or in R, G and B), and likes to merge them into one file, this is the module needed <<New feature in V 3.0> .
    • Separate : The user can split the 3 color components (either in Y, U and V, or in R, G and B) into separate files. Each file contains one color component <New feature in V 3.0>
  6. YUV Analyzer
    • PSNR : This tool can be used to calculate the PSNR of two input video files;
      • The PSNR can be calculated for specified frames only;
      • A PSNR report will be saved in files that can be directly opened by Microsoft Excel, either in csv (Comma delimited) or Tab delimited format <New feature in V 3.0> ;
    • Compare : Two video files can be compared frame by frame, and the difference (residual) will be displayed
      • The brightness of the difference image can be scaled up, in case the difference is very small;
      • The comparison can be applied to YUV all components, or Y, U, V components separately;
      • The difference residual can be played frame by frame (back and forth), or directly drag to certain frame
      • Compare difference, let user to choose display threshold [min, max], and display color <New feature in V 3.0>
      • Show difference only, overlay diff on top of file1, or file2 <New feature in V 3.0>
      • Show the diff value distribution histogram <New feature in V 3.0> ;
      • Show the diff position distribution (whole image or block boundary) in 3D <New feature in V 3.0>
      • Compare difference, let user to exam diff value of each block New feature in V3.0
    • Data Overlay: Other information can be overlaid on top of video display while it is playing.
      • For each macroblock, one dimensional (like block type) or two dimensional information (like motion vector) can be overlaid; <
      • Separate file needed to load the information.
    • Motion Estimation : This module allows you to check and verify whether any image blocks, or a group of blocks, are moved between two adjacent frames <<New feature in V 3.0>>.
      • For any frames (except the first frame), you can select certain area in the image (at 8x8 block level), and interactively move the selected blocks in any direction, up, down, left or right. The modified image can be compared with previous frame, the difference will be displayed, or overlaid on current frame, or on previous frame.
      • User can select which pixel to display based on the difference values.
      • User can click on one block (8x8) and exam the values of each pixel.
  7. YUV Editor :
    • You can select one block, and zoom in to check each pixel values, whether in RGB or in YUV, and at the same time, you can change the pixel values, in order to create special colors or patterns in block
    • Composition: You can put one image (top image) on top of another image (base image). The location and transparency of the top image can be specified <New feature in V 3.0>
  8. AVI Files
    • AVI to YUV conversion <New feature in V 3.0>
    • YUV to AVI conversion <New feature in V 3.0>
  9. Additional options :
    • Grid Display: Overlay two layers of grid, which can be used to show MB (Macro Block, 16x16 in MPEG2) and Block (8x8 in MPEG2), in two different colors;
    • User can select YUV to RGB conversion formula, using either ITU-R 601 or ITU-R 709;
    • User defined conversion formula is supported <<New feature in V 3.0> ;
  10. Support command line options which are useful for batch process or scripting:
    • YUV player <New feature in V 3.0>: 1) Support grey scale image playback from command line; 2) Specify playing frame rate ;
    • YUV format convert: Support converting multiple BMP files to YUV file from command line <New feature in V 3.0>
    • YUV image flip <New feature in V 3.0>
    • YUV image crop <New feature in V 3.0>
    • Join two YUV files <New feature in V 3.0>
    • YUV to AVI conversion <New feature in V 3.0>
    • AVI to YUV conversion <New feature in V 3.0>
    • PSNR calculation, and user can specify different report file formats which can be directly opened in Excel <New feature in V 3.0>
    • Choose different RGB to YUV color conversion formula <New feature in V 3.0>.
  If you like to get more detailed information, please download YUVtools Manual.
Copyright, www.sunrayimage.com, 2017