Help Center/ Media Processing Center/ User Guide/ Media Processing/ Creating an Audio Transcoding Task
Updated on 2022-03-17 GMT+08:00

Creating an Audio Transcoding Task

You can select an audio transcoding template and create an audio transcoding task to transcode audio files stored in OBS buckets. The fee for audio transcoding is different from that for video transcoding. For details, see Pricing Details.

Prerequisites

  • An input audio file has been uploaded to an OBS bucket. MPC is used in the same region as the OBS bucket. If the audio file has not been uploaded, upload it by referring to Uploading Media Files.
  • MPC has been authorized to access the buckets that store the input file and output file. If MPC has not been authorized, authorize MPC by referring to Authorizing Access to Cloud Resources.
  • If you want to receive the task status updates, configure the event notifications function. For details, see Configuring Event Notifications.

Restrictions

The supported audio codecs: AAC, AC3, EAC3, HE-AAC, MP2, MP3, PCM (s161e, s16be, s241e, s24be, DVD), and WMA

If the encoding format of the input file is not one of the preceding formats, transcoding will fail.

Creating an Audio Transcoding Template

MPC has six built-in one-in one-out audio transcoding templates. If the presets do not meet your requirements, you can perform the following steps to customize a one-in one-out audio transcoding template.

  1. Log in to the MPC console.
  2. In the navigation pane, choose Global Settings > Custom Templates.
  3. Click Create Custom Template.
  4. Set the basic information, template name, and output format.

    • The template name can be up to 128 characters long. Only letters, underscores (_), and digits are allowed.
    • Select MP3 or ADTS as the output format.

  5. Set audio parameters. See Table 1.

    Table 1 Audio parameters

    Parameter

    Description

    Audio Codec

    Audio codec.

    Possible values include AAC and HEAAC1. The default value is AAC.

    Audio Channel

    Possible values include Stereo, Mono, and 5.1 Channel. The default is Stereo.

    Sampling Rate

    Choose one from Auto, 22050, 32000, 44100, 48000, and 96000. The default value is Auto. The unit is Hz.

    Auto indicates adaptive sampling.

    Bitrate

    Bitrate of an output audio.

    The value is 0 or an integer ranging from 8 to 1,000.

    Unit: kbit/s

  6. Click OK.

Creating an Audio Transcoding Task

  1. Log in to the MPC console.
  2. In the navigation pane, choose Media Processing > Transcoding.
  3. Click Create Task.
  4. Set basic parameters, including the buckets and paths for storing an input file and output file.

  5. Select a transcoding template that best fits your needs.

    • If you select One-in One-out Templates, select MP3 or ADTS for Output Format.
    • If you select Custom Templates, create an audio transcoding template by referring to Creating an Audio Transcoding Template.

  6. Click OK. The transcoding task starts running.
  7. View the task status in the task list. You can view details about transcoding tasks of the past 60 days.