Video quality score

Updated at:

The Video Quality Score operator evaluates visual attributes of sampled video frames, such as sharpness, noise, color saturation, and exposure. It calculates an average score from all sampled frames to determine the final Video Quality Score. This topic explains how to configure this operator.

Prerequisites

  • To use the workflow feature, you must first purchase the unstructured data feature for your instance.

  • You have created a workflow. For details, see Create a workflow.

Permissions

In a Basic project, project administrators, developers, analysts, and custom project roles with the Dataset-Usage permission can use any dataset in the project as an input or output for operators.

Supported file formats

The Video Quality Score operator supports the following file formats: MP4, AVI, MKV, MOV, WebM, FLV, TS, WMV, 3GP, and MPEG.

Steps

  1. In the top navigation bar of the Dataphin homepage, choose Development > Data Development.

  2. In the top navigation bar of the Develop page, select your Project.

  3. In the left-side navigation pane, choose Data Processing > Workflow. In the Workflow list on the left, click a workflow to open its canvas. From the operator library on the left, drag the Video Quality Score operator onto the canvas. In the Video Quality Score panel that appears on the right, configure the following parameters.

    Parameter

    Description

    Step name

    The name can contain any characters and be up to 256 characters long.

    Input settings

    Dataset

    Select the dataset to process. You can only select a hybrid dataset. After you select a dataset, you must also select its version. By default, the first version in ascending order is selected.

    If this operator is downstream from another, the selected dataset is typically the output of the upstream operator.

    Input field

    Select a field from the input dataset that contains the storage URL of the video file to process. You can only select fields for which the Is URL parameter is set to Yes.

    Filter condition (Optional)

    Enter a filter condition, which is appended to the WHERE clause of the SQL query. You can use system variables, such as the business date ${bizdate}.

    Operator settings

    Processing model

    Select the model used to run the current operator. You can select a built-in system model (CLIP-IQA) or a large multimodal model. If you select a large multimodal model, you must choose an Enabled model of the Vision (Images and Videos) type on the Intelligent Application Management > Model Configuration page.

    Note

    Output settings

    Dataset

    You can select either the Source Dataset or Other Datasets. If the source dataset's metadata table lacks a primary key, Other Datasets is selected by default.

    • When you select Other Datasets, you must specify a hybrid dataset or a table dataset and its version as the output dataset. By default, the first version in ascending order is selected. You can also select other versions of the source dataset.

    • If you select the Source Dataset, the operator writes the generated metadata to the source dataset's metadata table for that same version.

    Load policy

    If the metadata table of the selected output dataset contains a primary key, 'update on primary key conflict' is selected by default. If a primary key does not exist, 'append data' is selected by default.

    • Append data: Directly appends new data to the destination table. An error is reported if a primary key or constraint conflict occurs.

    • Update on primary key conflict: If a primary key or constraint conflict occurs, the system deletes the existing row with the same primary key and inserts the new row.

    • Overwrite: Deletes all existing data from the destination table before writing the new data.

    Note

    When the output dataset is set to Source Dataset, only the update on primary key conflict load policy is supported.

    Field mapping

    The Video Quality Score operator has one fixed output field:

    visual_quality_score: The video quality score, ranging from 0 to 1. A higher score indicates better quality.

    By default, the operator's output fields are mapped to fields with the same names in the output dataset. You can also manually select destination fields for custom mapping. In addition, you can map passthrough fields from the source dataset to the destination dataset. You can manage field mappings in the following ways:

    • Add output field: Click to add a new, empty field mapping row. This feature is available only when the output dataset is set to Other Datasets.

    • Batch mapping: After you click this option, you can select batch manual mapping, map by name, or map by position. This feature is supported only when the output dataset is set to Other Datasets.

    • Delete mapping: Click the Delete icon to remove the corresponding field mapping row. You cannot delete the mapping for the operator's fixed output field.

  4. After you complete the configuration, click Save in the top menu bar of the canvas.

    After configuring an individual operator, you can continue to build a complete workflow by adding upstream or downstream operators.