How Do I Determine the Video Stream Format Standard When I Perform CSC on a Model Using AIPP?

Symptom

The video stream format standard failed to be determined when CSC is performed on a model using AIPP.

Cause Analysis

AIPP requires that the video stream format be BT.709 Wide, BT.709 Narrow, BT.601 Narrow, or BT.601 Wide. However, the video stream format is usually unknown, and therefore the CSC template cannot be determined.

Solution

The third-party tool ffprobe is used as an example.

  1. Click here to download the tool and related documents.
  2. Obtain the video information with the ffprobe -show_frames filename option.

    This parameter displays information about each frame and subtitle contained in the input multimedia stream. The information for each single frame is printed within a dedicated section with name "FRAME" or "SUBTITLE".

  3. Determine the video standard based on the result:
    • color_range: tv or pc
    • color_space: bt709 or bt601

    tv indicates "limited", that is, narrow range. pc indicates "full", that is, wide range.

    For example, color_range=tv and color_space=bt709 indicate that the video stream format standard is narrow range, BT.709.

    If the command is different from the example, refer to the official description of the tool.