How to encode audio with Windows Azure Media Services

Posted on

When you creating encoding job in Windows Azure Media Services you can select encoder and corresponding configuration (preset). Windows azure Media Services supports named presets as well as presets in form of xml files.

To see list of name presets for Windows Azure Media Encoder follow this link: http://msdn.microsoft.com/en-us/library/windowsazure/jj129582.aspx

 

To see list of supported encoders, codecs and file formats follow this link:

http://msdn.microsoft.com/en-us/library/windowsazure/hh973634.aspx

 

Configuration which you need to use to encode audio with Windows Azure Media Encoder is following

<?xml version="1.0" encoding="utf-16"?>
<!--Created with Expression Encoder version 4.0.4276.0-->
<Preset
  Version="4.0">
  <Job />
  <MediaFile
    WindowsMediaProfileLanguage="ja-JP"
    VideoResizeMode="Letterbox">
    <OutputFormat>
      <MP4OutputFormat
        StreamCompatibility="Standard">
        <AudioProfile>
          <AacAudioProfile
            Level="AacLC"
            Codec="AAC"
            Channels="2"
            BitsPerSample="16"
            SamplesPerSecond="44100">
            <Bitrate>
              <ConstantBitrate
                Bitrate="256"
                IsTwoPass="False"
                BufferWindow="00:00:00" />
            </Bitrate>
          </AacAudioProfile>
        </AudioProfile>
      </MP4OutputFormat>
    </OutputFormat>
  </MediaFile>
</Preset>

General process of creating job can be found  here.
There are also different sets of scenario test using various presets and encoders  hosted in https://github.com/WindowsAzure/azure-sdk-for-media-services/tree/dev/test

Tags: ,