H264 单比特率 16x9 SD 音频 5.1H264 Single Bitrate 16x9 SD Audio 5.1

Media Encoder Standard 定义一组可在创建编码作业时使用的编码预设。Media Encoder Standard defines a set of encoding presets you can use when creating encoding jobs. 可以使用 preset name 指定编码媒体文件采用的格式。You can either use a preset name to specify into which format you would like to encode your media file. 也可以创建自己的 JSON 或基于 XML 的预设(使用 UTF-8 或 UTF-16 编码)。Or, you can create your own JSON or XML-based presets (using UTF-8 or UTF-16 encoding. 然后,将自定义预设传递到编码器。You would then pass the custom preset to the encoder. 有关此 Media Encoder Standard 编码器支持的所有预设名称的列表,请参阅 Media Encoder Standard 的任务预设For the list of all the preset names supported by this Media Encoder Standard encoder, see Task Presets for Media Encoder Standard.

本主题演示 XML 和 JSON 格式的 H264 Single Bitrate 16x9 SD Audio 5.1 预设。This topic shows the H264 Single Bitrate 16x9 SD Audio 5.1 preset in XML and JSON format.

此预设生成单个 MP4 文件,其比特率为 2200 kbps,并且带有 AAC 5.1 音频。This preset produces a single MP4 file with a bitrate of 2200 kbps, and AAC 5.1 audio. 若要深入了解此预设的配置文件、比特率、采样率等,请检查下面定义的 XML 或 JSON。For detailed information about profile, bitrate, sampling rate, etc. of this preset, examine the XML or JSON defined below. 有关每个元素的含义及其有效值的说明,请参阅 Media Encoder Standard 架构For explanations of what each element means, and the valid values for each element, see the Media Encoder Standard schema.

XMLXML

<?xml version="1.0" encoding="utf-16"?>  
<Preset xmlns:xsd="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" Version="1.0" xmlns="https://www.windowsazure.com/media/encoding/Preset/2014/03">  
  <Encoding>  
    <H264Video>  
      <KeyFrameInterval>00:00:02</KeyFrameInterval>  
      <SceneChangeDetection>true</SceneChangeDetection>  
      <H264Layers>  
        <H264Layer>  
          <Bitrate>2200</Bitrate>  
          <Width>848</Width>  
          <Height>480</Height>  
          <FrameRate>0/1</FrameRate>  
          <Profile>Auto</Profile>  
          <Level>auto</Level>  
          <BFrames>3</BFrames>  
          <ReferenceFrames>3</ReferenceFrames>  
          <Slices>0</Slices>  
          <AdaptiveBFrame>true</AdaptiveBFrame>  
          <EntropyMode>Cabac</EntropyMode>  
          <BufferWindow>00:00:05</BufferWindow>  
          <MaxBitrate>2200</MaxBitrate>  
        </H264Layer>  
      </H264Layers>  
      <Chapters />  
    </H264Video>  
    <AACAudio>  
      <Profile>AACLC</Profile>  
      <Channels>6</Channels>  
      <SamplingRate>48000</SamplingRate>  
      <Bitrate>384</Bitrate>  
    </AACAudio>  
  </Encoding>  
  <Outputs>  
    <Output FileName="{Basename}_{Width}x{Height}_{VideoBitrate}.mp4">  
      <MP4Format />  
    </Output>  
  </Outputs>  
</Preset>  

JSONJSON

{  
  "Version": 1.0,  
  "Codecs": [  
    {  
      "KeyFrameInterval": "00:00:02",  
      "SceneChangeDetection": true,  
      "H264Layers": [  
        {  
          "Profile": "Auto",  
          "Level": "auto",  
          "Bitrate": 2200,  
          "MaxBitrate": 2200,  
          "BufferWindow": "00:00:05",  
          "Width": 848,  
          "Height": 480,  
          "BFrames": 3,  
          "ReferenceFrames": 3,  
          "AdaptiveBFrame": true,  
          "Type": "H264Layer",  
          "FrameRate": "0/1"  
        }  
      ],  
      "Type": "H264Video"  
    },  
    {  
      "Profile": "AACLC",  
      "Channels": 6,  
      "SamplingRate": 48000,  
      "Bitrate": 384,  
      "Type": "AACAudio"  
    }  
  ],  
  "Outputs": [  
    {  
      "FileName": "{Basename}_{Width}x{Height}_{VideoBitrate}.mp4",  
      "Format": {  
        "Type": "MP4Format"  
      }  
    }  
  ]  
}