Video To Audio

Updated at:

The Video to Audio operator extracts audio tracks from video files in an input dataset. This topic explains how to configure it.

Prerequisites

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

  • You have created a workflow. For more information, see Create a workflow.

Permissions

In a Basic project, project administrators, developers, analysts, and custom roles with the Dataset - Use permission can use any dataset within the project as the operator's input and output.

Supported file formats

The Video to Audio operator supports the following file formats: mp4, mov, and m4v.

Procedure

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

  2. In the top navigation bar of the Development page, choose Project.

  3. In the left-side navigation pane, go to Data Processing > Workflow. From the Workflow list, click your target workflow to open its canvas. Drag the Video to Audio operator from the operator library on the left to the canvas. In the Video to Audio panel that appears on the right, configure the parameters.

    Parameter

    Description

    Step name

    Enter a name for the operator. The name can contain any characters and be up to 256 characters long.

    Input configuration

    Dataset

    Select the dataset to process. You can select only a mixed dataset. After you select a dataset, you must also select its Version. By default, the earliest version is used.

    If this operator is downstream from another operator, this field typically uses the output dataset from the upstream operator.

    Input field

    Specifies the storage URL of the video files to be processed. You must select a source field from the input dataset where the Is URL parameter is set to Yes.

    Filter condition (optional)

    Use SQL syntax to enter a filter condition. Omit the WHERE keyword. System global variables, such as ${bizdate}, are supported.

    Output configuration

    Dataset

    You can select a source dataset or other dataset. If the metadata table of the source dataset does not have a primary key, the output dataset defaults to other dataset.

    • When you select other dataset, you must also specify a mixed dataset and its Version as the output dataset. By default, the earliest version is used. You can also select a different version of the source dataset to use as the output.

    • When you select source dataset, the operator writes the output metadata to that dataset's metadata table.

    Audio file directory

    Enter a subdirectory where the audio files will be stored. This path is relative to the storage directory of the selected output dataset.

    Loading policy

    If the metadata table of the selected output dataset has a primary key, the default policy is update on primary key conflict. If no primary key exists, the default policy is append data.

    • append data: Appends new data directly to the target table. An error occurs if this causes a primary key or constraint conflict.

    • update on primary key conflict: If a primary key or constraint conflict occurs, the operator deletes the existing row before inserting the new one.

    • overwrite: Deletes all existing data in the target table before writing the new data.

    Note

    When you select source dataset as the output dataset, the only supported loading policy is update on primary key conflict.

    Field mapping

    The Video to Audio operator always generates the following output field:

    audio_file_url: The storage URL of the extracted audio file.

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

    • Add Output Field: Click to add a new, empty row for field mapping. This feature is available only when other dataset is selected as the output dataset.

    • Batch Mapping: Perform batch mapping by manual selection, name, or row. This feature is available only when other dataset is selected as the output dataset.

    • Delete Mapping: Click the Delete icon to remove the field mapping for a specific row. The mapping for the default audio_file_url output field cannot be deleted.

  4. After configuring the operator, click Save in the canvas's top menu bar.

    After configuring an individual operator, you can continue to build the workflow by connecting it to upstream or downstream operators.