Azure Media Service Audio Only

依然范特西╮ 提交于 2019-12-08 02:58:08

问题


We have begun using the Azure Media Service (AMS) to encode, encrypt and host our videos (MP4) which is working well. However, in addition to videos we have MP3 audio files. Since we are already using the AMS it made sense to put them here as well however we are experiencing problems.

When we try to encode from the portal we receive an error asking us to try again later, when we encode from the Azure Media Services Explorer (AMSE) it completes the encoding but will not play from the Azure Media Player, it displays an error:

What is the best way of encoding and playing audio using AMS, we even tried encoding from AMSE using mp4 adding InsertBlackIfNoVideo from this article https://docs.microsoft.com/en-gb/azure/media-services/previous/media-services-advanced-encoding-with-mes#silent_audio with no luck.

Would it be best for audio to just use blob storage with the Audio tag?

UPDATE: Streaming works fine from blob storage but I have now tried encoding using AMSE with multiple presets including:

Adaptive Streaming Content Adaptive Multiple Bitrate MP4 AAC Audio AAC Good Quality Audio

All result in the same error shown above.

When trying to encode from the portal I receive the error:


回答1:


In my .NET app I was using audio encoding for mp3 files with Media Encoder Standard using Audio-only presets AAC Good Quality Audio and encoding worked fine (audio has been encoded and you can play it using Azure Media Player)

{
  "Version": 1.0,
  "Codecs": [
    {
      "Profile": "AACLC",
      "Channels": 2,
      "SamplingRate": 48000,
      "Bitrate": 192,
      "Type": "AACAudio"
    }
  ],
  "Outputs": [
    {
      "FileName": "{Basename}_AAC_{AudioBitrate}.mp4",
      "Format": {
        "Type": "MP4Format"
      }
    }
  ]
}

https://docs.microsoft.com/en-gb/azure/media-services/previous/media-services-advanced-encoding-with-mes#aac-good-quality-audio

As I remember Azure Media Encoder didn't worked for me too with audio encoding, but Media Encoder Standard works fine in that app



来源:https://stackoverflow.com/questions/50371802/azure-media-service-audio-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!