Help Center/ Video On Demand/ Troubleshooting/ Failed to Trancode a Media File
Updated on 2022-10-24 GMT+08:00

Failed to Trancode a Media File

Symptom

When you use a transcoding template to transcode an uploaded file, the transcoding fails. You can view the transcoding failure message on the VOD console and perform further check based on the failure cause:

Check Whether Your Account Is in Arrears

  1. Log in to Billing Center.
  2. On the Overview page, view the available credit.

    If your account is in arrears, click Top Up to top up your account, or buy a traffic package.

  3. On the Resource Packages page, check whether the transcoding package has balance.

    If your account is in arrears but the transcoding package has not been used up, the transcoding template may not match your purchased transcoding package. In this case, the fee needs to be deducted from your account balance. You are advised to write off the arrears and then use the transcoding template that has the same specifications as the purchased package for transcoding.

  4. Log in to the VOD console again. In the navigation pane, choose Audio and Video Management, select the media file, and transcode it again.

Check the Input File

  1. Download the VLC player to your local PC and install it.
  2. Play the input file using the VLC player.
    • If the file fails to be played, the file is damaged or encrypted. If such a file is uploaded to VOD, the transcoding will fail.
    • If the playback is successful, go to the next step.
  3. On the menu bar of the VLC player, choose Tools > Codec Information to view the codec of the input file. See Figure 1.
    Figure 1 Viewing codec information
  4. Check whether VOD supports the formats of the input file.
    VOD supports the following formats:
    • File formats: MP4, TS, MOV, FLV, MPG, MXF, WMV, ADTS, AVI, MKV, and MPEG
    • Video codecs: H.264, H.265, MPEG-2, MPEG-4, MJPEG, WMV1/2/3, and Prores 422
    • Audio codecs: AAC, AC3, EAC3, HE-AAC, MP2, MP3, PCM (s161e, s16be, s241e, s24be, DVD), and WMA

Check the Transcoding Template

If the input file is an audio file but a video transcoding template is used, the transcoding will fail. Select an audio transcoding template and transcode the file again. For details about how to configure a transcoding template, see Transcoding Settings.

The preset transcoding template of VOD is not applicable to audio files. You are advised to use a custom audio transcoding template.

Check Whether the OBS Bucket Is Encrypted

If the source file is hosted from an OBS bucket to VOD and the output file is stored in a tenant bucket, the transcoded file storage may fail because default encryption has been enabled for the OBS bucket. Log in to the OBS console, choose Overview > Basic Configurations, and disable default encryption.

Figure 2 Disabling default encryption

If the problem persists, you are advised to submit a service ticket to reach technical support.