Eksportér (0) Udskriv
Udvid alt
EN
Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.
5 ud af 6 klassificerede dette som nyttigt - Bedøm dette emne

Media Services Encoder System Presets

Updated: April 8, 2014

This topic contains a list of task preset encoding strings for Azure Media Encoder version 2.2.0.0. You can use these strings when you are building Windows Azure Media Services applications and you create encoding tasks for media content. The preset string values enable you to submit encoding jobs to the Media Encoder using various media content formats.

The topic describes the following encoding standards:

Audio Coding Standard

VC-1 Coding Standard

H.264 Coding Standard

For more information on how to use task preset strings with Media Services, see Process Assets with the Media Services SDK for .NET. For information about encoding audio with Dolby Digital Plus, see Encoding your media with Dolby Digital Plus.

WarningWarning
Dolby Digital Plus encoding is not currently supported in China. Please contact us at Media Services User Voice Forum for more information.

ImportantImportant
Update your code to use preset names discussed in this topic and also to use the Azure Media Encoder version 2.2.0.0. Older versions of preset names and Azure Media Encoder have been depreciated.

Terminology

Task Preset Strings for Azure Media Encoder

Use the preset string values in this section (shown in bold) to configure encoding tasks that you pass to Media Encoder from a Media Services application.

Audio Coding Standard

WMA High Quality Audio
Produces a Windows Media file 44.1 kHz 16 bits/sample stereo audio encoded using WMA.

Use this preset name to produce an audio-only file for music services. The output file extension is *.wma.

AAC Good Quality Audio
Produces an MP4 file containing 44.1 kHz 16 bits/sample stereo audio CBR encoded at 192 kbps using AAC.

Use this preset name to produce an audio-only file for music services. The output file extension is *.mp4.

VC-1 Coding Standard

VC1 Broadband 1080p
Produces a single Windows Media file with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 128 kbps using WMA Pro

  • 1080p video VBR encoded at 6750 kbps using VC-1 Advanced Profile

Use this preset name to produce a downloadable file for 1080p (16:9 aspect ratio) content for delivery over broadband connections. The output file extension is *.wmv. If the source frame size is not 1920x1080, the video will be scaled horizontally to the width of the profile target (e.g. 1920, 1280, 852 or 640 pixels), and its height will be scaled to match the aspect ratio of the source.

VC1 Broadband 720p
Produces a single Windows Media file with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 128 kbps using WMA Pro

  • 720p video VBR encoded at 4500 kbps using VC-1 Advanced Profile

Use this preset name to produce a downloadable file for 720p (16:9 aspect ratio) content for delivery over broadband connections. The output file extension is *.wmv. If the source frame size is not 1280x720, the video will be scaled horizontally to the width of the profile target of 1280 pixels, and its height will be scaled to match the aspect ratio of the source.

VC1 Broadband SD 16x9
Produces a single Windows Media file with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 128 kbps using WMA Pro

  • SD video VBR encoded at 2200 kbps using VC-1 Advanced Profile

Use this preset name to produce a downloadable file for SD (16:9 aspect ratio) content for delivery over broadband connections. The output file extension is *.wmv. If the source frame size is not 852x480, the video will be scaled horizontally to the width of the profile target of 852 pixels, and its height will be scaled to match the aspect ratio of the source.

VC1 Broadband SD 4x3
Produces a single Windows Media file with:

  1. 44.1 kHz 16 bits/sample stereo audio CBR encoded at 128 kbps using WMA Pro

  2. SD video VBR encoded at 1800 kbps using VC-1 Advanced Profile

Use this preset name to produce a downloadable file for SD (4:3 aspect ratio) content for delivery over broadband connections. The output file extension is *.wmv. If the source frame size is not 640x480, the video will be scaled horizontally to the width of the profile target of 640 pixels, and its height will be scaled to match the aspect ratio of the source.

VC1 Smooth Streaming 1080p
Produces a Smooth Streaming asset with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 128 kbps using WMA Pro

  • 1080p video VBR encoded at 8 bitrates ranging from 6000 kbps to 400 kbps using VC-1 Advanced Profile, and two second GOPs

Use this preset name to produce an asset from 1080p (16:9 aspect ratio) content for delivery via IIS Smooth Streaming. If the source frame size is not 1920x1080, will stretch the video at the highest bitrate horizontally to 1920 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled respectively.

VC1 Smooth Streaming 720p
Produces a Smooth Streaming asset with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 128 kbps using WMA Pro

  • 720p video VBR encoded at 6 bitrates ranging from 3400 kbps to 400 kbps using VC-1 Advanced Profile, and two second GOPs

Use this preset name to produce an asset from 720p (16:9 aspect ratio) content for delivery via IIS Smooth Streaming. If the source frame size is not 1280x720, will stretch the video at the highest bitrate horizontally to 1280 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled respectively.

VC1 Smooth Streaming SD 16x9
Produces a Smooth Streaming asset with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 64 kbps using WMA Pro

  • SD video VBR encoded at 5 bitrates ranging from 1900 kbps to 400 kbps using VC-1 Advanced Profile, and two second GOPs

Use this preset name to produce an asset from SD (16:9 aspect ratio) content for delivery via IIS Smooth Streaming. If the source frame size is not 852x480, will stretch the video at the highest bitrate horizontally to 852 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled respectively.

VC1 Smooth Streaming SD 4x3
Produces a Smooth Streaming asset with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 64 kbps using WMA Pro

  • SD video VBR encoded at 5 bitrates ranging from 1600 kbps to 400 kbps using VC-1 Advanced Profile, and two second GOPs

Use this preset name to produce an asset from SD (4:3 aspect ratio) content for delivery via IIS Smooth Streaming. If the source frame size is not 640x480, will stretch the video at the highest bitrate horizontally to 640 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled respectively.

VC1 Smooth Streaming 1080p Xbox Live ADK
Produces a Smooth Streaming asset with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 128 kbps using WMA Pro

  • 1080p video VBR encoded at 10 bitrates ranging from 9000 kbps to 350 kbps using VC-1 Advanced Profile, and two second GOPs

Use this preset name to produce an asset from 1080p (16:9 aspect ratio) content for delivery via IIS Smooth Streaming to Xbox Live Applications. If the source frame size is not 1920x1080, will stretch the video at the highest bitrate horizontally to 1920 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled respectively.

VC1 Smooth Streaming 720p Xbox Live ADK
Produces a Smooth Streaming asset with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 128 kbps using WMA Pro

  • 720p video VBR encoded at 8 bitrates ranging from 4500 kbps to 350 kbps using VC-1 Advanced Profile, and two second GOPs

Use this preset name to produce an asset from 720p (16:9 aspect ratio) content for delivery via IIS Smooth Streaming to Xbox Live Applications. If the source frame size is not 1280x720, will stretch the video at the highest bitrate horizontally to 1280 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled respectively.

H.264 Coding Standard

H264 Broadband 1080p
Produces a single MP4 file with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 128 kbps using AAC

  • 1080p video CBR encoded at 6750 kbps using H.264 High Profile

Use this preset name to produce a downloadable file for 1080p (16:9 aspect ratio) content for delivery over broadband connections. The output file extension is *.mp4. If the source frame size is not 1920x1080, the video will be scaled horizontally to the width of the profile target of 1920 pixels, and its height will be scaled to match the aspect ratio of the source.

noteNote
This encoding is set to H.264 High Profile. Some devices with displays that do not support 1080p will not be able to decode H.264 High Profile content.

H264 Broadband 720p
Produces a single MP4 file with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 128 kbps using AAC

  • 720p video CBR encoded at 4500 kbps using H.264 Main Profile

Use this preset name to produce a downloadable file for 720p (16:9 aspect ratio) content for delivery over broadband connections. The output file extension is *. mp4. If the source frame size is not 1280x720, the video will be scaled horizontally to the width of the profile target of 1280 pixels, and its height will be scaled to match the aspect ratio of the source.

H264 Broadband SD 16x9
Produces a single MP4 file with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 128 kbps using AAC

  • SD video VBR encoded at 2200 kbps using H.264 Main Profile

Use this preset name to produce a downloadable file for SD (16:9 aspect ratio) content for delivery over broadband connections. The output file extension is *. mp4. If the source frame size is not 852x480, the video will be scaled horizontally to the width of the profile target of 852 pixels, and its height will be scaled to match the aspect ratio of the source.

H264 Broadband SD 4x3
Produces a single MP4 file with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 128 kbps using AAC

  • SD video VBR encoded at 1800 kbps using H.264 Main Profile

Use this preset name to produce a downloadable file for SD (4:3 aspect ratio) content for delivery over broadband connections. The output file extension is *. mp4. If the source frame size is not 640x480, the video will be scaled horizontally to the width of the profile target of 640 pixels, and its height will be scaled to match the aspect ratio of the source.

H264 Smooth Streaming 1080p
Produces a Smooth Streaming asset with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 128 kbps using AAC

  • 1080p video CBR encoded at 8 bitrates ranging from 6000 kbps to 400 kbps using H.264 High Profile, and two second GOPs

Use this preset name to produce an asset from 1080p (16:9 aspect ratio) content for delivery via IIS Smooth Streaming. If the source frame size is not 1920x1080, will stretch the video at the highest bitrate horizontally to 1920 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled to one of 75%, 50% or 25% of the highest bitrate video.

noteNote
This encoding is set to H.264 High Profile. Some devices with displays that do not support 1080p will not be able to decode H.264 High Profile content.

H264 Smooth Streaming 720p
Produces a Smooth Streaming asset with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 96 kbps using AAC

  • 720p video CBR encoded at 6 bitrates ranging from 3400 kbps to 400 kbps using H.264 Main Profile, and two second GOPs

Use this preset name to produce an asset from 720p (16:9 aspect ratio) content for delivery via IIS Smooth Streaming. If the source frame size is not 1280x720, will stretch the video at the highest bitrate horizontally to 1280 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled to one of 75%, 50% or 25% of the highest bitrate video.

H264 Smooth Streaming 720p for 3G or 4G
Produces a Smooth Streaming asset with:

  1. 44.1 kHz 16 bits/sample stereo audio CBR encoded at 56 kbps using AAC

  2. 720p video CBR encoded at 8 bitrates ranging from 3400 kbps to 150 kbps using H.264 Main Profile, and two second GOPs.

Same as H264 Smooth Streaming 720p, with audio lowered to 56 kbps, and two additional lower bitrate video layers added at 250 kbps and 150 kbps. These lowest bitrate encodes should help when streaming over 3G or 4G connections to mobile devices

H264 Smooth Streaming SD 16x9
Produces a Smooth Streaming asset with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 96 kbps using AAC

  • SD video CBR encoded at 5 bitrates ranging from 1900 kbps to 400 kbps using H.264 Main Profile, and two second GOPs

Use this preset name to produce an asset from SD (16:9 aspect ratio) content for delivery via IIS Smooth Streaming. If the source frame size is not 852x480, will stretch the video at the highest bitrate horizontally to 852 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled to one of 75%, 50% or 25% of the highest bitrate video.

H264 Smooth Streaming SD 4x3
Produces a Smooth Streaming asset with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 96 kbps using AAC

  • SD video CBR encoded at 5 bitrates ranging from 1600 kbps to 400 kbps using H.264 Main Profile, and two second GOPs

Use this preset name to produce an asset from SD (4:3 aspect ratio) content for delivery via IIS Smooth Streaming. If the source frame size is not 640x480, will stretch the video at the highest bitrate horizontally to 640 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled to one of 75%, 50% or 25% of the highest bitrate video.

H264 Adaptive Bitrate MP4 Set 1080p
Produces an asset with multiple GOP-aligned MP4 files:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 128 kbps using AAC

  • 1080p video CBR encoded at 8 bitrates ranging from 6000 kbps to 400 kbps using H.264 High Profile, and two second GOPs

Use this preset name to produce an asset from 1080p (16:9 aspect ratio) content for delivery via one of many adaptive streaming technologies after suitable packaging. If the source frame size is not 1920x1080, will stretch the video at the highest bitrate horizontally to 1920 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled to one of 75%, 50% or 25% of the highest bitrate video.

noteNote
This encoding is set to H.264 High Profile. Some devices with displays that do not support 1080p will not be able to decode H.264 High Profile content.

H264 Adaptive Bitrate MP4 Set 720p
Produces an asset with multiple GOP-aligned MP4 files:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 96 kbps using AAC

  • 720p video CBR encoded at 6 bitrates ranging from 3400 kbps to 400 kbps using H.264 Main Profile, and two second GOPs

Use this preset name to produce an asset from 720p (16:9 aspect ratio) content for delivery via one of many adaptive streaming technologies after suitable packaging. If the source frame size is not 1280x720, will stretch the video at the highest bitrate horizontally to 1280 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled to one of 75%, 50% or 25% of the highest bitrate video.

H264 Adaptive Bitrate MP4 Set SD 16x9
Produces an asset with multiple GOP-aligned MP4 files:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 96 kbps using AAC

  • SD video CBR encoded at 5 bitrates ranging from 1900 kbps to 400 kbps using H.264 Main Profile, and two second GOPs

Use this preset name to produce an asset from SD (16:9 aspect ratio) content for delivery via one of many adaptive streaming technologies after suitable packaging. If the source frame size is not 852x480, will stretch the video at the highest bitrate horizontally to 852 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled to one of 75%, 50% or 25% of the highest bitrate video.

H264 Adaptive Bitrate MP4 Set SD 4x3
Produces an asset with multiple GOP-aligned MP4 files:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 96 kbps using AAC

  • SD video CBR encoded at 5 bitrates ranging from 1600 kbps to 400 kbps using H.264 Main Profile, and two second GOPs

Use this preset name to produce an asset from SD (4:3 aspect ratio) content for delivery via one of many adaptive streaming technologies after suitable packaging. If the source frame size is not 640x480, will stretch the video at the highest bitrate horizontally to 640 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled to one of 75%, 50% or 25% of the highest bitrate video.

H264 Adaptive Bitrate MP4 Set 1080p for iOS Cellular Only
Produces an asset with multiple GOP-aligned MP4 files:

  1. 44.1 kHz 16 bits/sample stereo audio CBR encoded at 56 kbps using AAC

  2. 1080p video CBR encoded at 8 bitrates ranging from 6000 kbps to 400 kbps using H.264 High Profile, and two second GOPs

Use this preset to produce an asset from 1080p (16:9 aspect ratio) content for delivery via one of many adaptive streaming technologies after suitable packaging. If source frame size is not 1920x1080, will stretch the video at the highest bitrate horizontally to 1920 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled to one of 75%, 50% or 25% of the highest bitrate video.

Audio is encoded at a low bitrate of 56 kbps, in order to satisfy App Store requirements for HLS. For more information, see Resolving App Store Approval Issues for HTTP Live Streaming.

H264 Adaptive Bitrate MP4 Set 720p for iOS Cellular Only
Produces an asset with multiple GOP-aligned MP4 files:

  1. 44.1 kHz 16 bits/sample stereo audio CBR encoded at 56 kbps using AAC

  2. 720p video CBR encoded at 6 bitrates ranging from 3400 kbps to 400 kbps using H.264 Main Profile, and two second GOPs

Use this preset to produce an asset from 720p (16:9 aspect ratio) content for delivery via one of many adaptive streaming technologies after suitable packaging. If source frame size is not 1280x720, will stretch the video at the highest bitrate horizontally to 1280 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled to one of 75%, 50% or 25% of the highest bitrate video.

Audio is encoded at a low bitrate of 56 kbps, in order to satisfy App Store requirements for HLS. For more information, see Resolving App Store Approval Issues for HTTP Live Streaming.

H264 Adaptive Bitrate MP4 Set SD 16x9 for iOS Cellular Only
Produces an asset with multiple GOP-aligned MP4 files:

  1. 44.1 kHz 16 bits/sample stereo audio CBR encoded at 56 kbps using AAC

  2. SD video CBR encoded at 5 bitrates ranging from 1900 kbps to 400 kbps using H.264 Main Profile, and two second GOPs

Use this preset to produce an asset from SD (16:9 aspect ratio) content for delivery via one of many adaptive streaming technologies after suitable packaging. If source frame size is not 852x480, will stretch the video at the highest bitrate horizontally to 852 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled to one of 75%, 50% or 25% of the highest bitrate video.

Audio is encoded at a low bitrate of 56 kbps, in order to satisfy App Store requirements for HLS. For more information, see Resolving App Store Approval Issues for HTTP Live Streaming.

H264 Adaptive Bitrate MP4 Set SD 4x3 for iOS Cellular Only
Produces an asset with multiple GOP-aligned MP4 files:

  1. 44.1 kHz 16 bits/sample stereo audio CBR encoded at 56 kbps using AAC

  2. SD video CBR encoded at 5 bitrates ranging from 1600 kbps to 400 kbps using H.264 Main Profile, and two second GOPs

Use this preset to produce an asset from SD (4:3 aspect ratio) content for delivery via one of many adaptive streaming technologies after suitable packaging. If source frame size is not 640x480, will stretch the video at the highest bitrate horizontally to 640 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled to one of 75%, 50% or 25% of the highest bitrate video.

Audio is encoded at a low bitrate of 56 kbps, in order to satisfy App Store requirements for HLS. For more information, see Resolving App Store Approval Issues for HTTP Live Streaming.

H264 Smooth Streaming 720p Xbox Live ADK
Produces a Smooth Streaming asset with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 96 kbps using AAC

  • 720p video CBR encoded at 8 bitrates ranging from 4500 kbps to 350 kbps using H.264 High Profile, and two second GOPs

Use this preset name to produce an asset from 720p (16:9 aspect ratio) content for delivery via IIS Smooth Streaming to Xbox Live Applications. If the source frame size is not 1280x720, will stretch the video at the highest bitrate horizontally to 1280 pixels, and the height will increase/decrease correspondingly. Videos at lower bitrates will be down-scaled respectively.

H264 Smooth Streaming Windows Phone 7
Produces a Smooth Streaming asset with:

  • 44.1 kHz 16 bits/sample stereo audio CBR encoded at 64 kbps using HE-AAC Level 1

  • SD video CBR encoded at 5 bitrates ranging from 1000 kbps to 200 kbps using H.264 Main Profile, and two second GOPs

Use this preset name to produce an asset from SD (16:9 aspect ratio) content for delivery via IIS Smooth Streaming to Windows Phone 7 Series devices. If the source frame size is not 640x360, will stretch the video at all bitrates horizontally to 640 pixels, and the height will increase/decrease correspondingly.

noteNote
Windows Phone 7 doesn’t support frame rates greater than 30fps. Also the Azure Media Services encoder doesn’t do frame rate conversion. So if the source content has a frame rate faster than 30fps, then the job output asset would as well. So it wouldn’t be supported on Windows Phone 7 devices.

WarningWarning
Windows Phone 8 and newer can use the general Smooth Streaming presets.

Thumbnail

Thumbnails
Produces a series of JPEG thumbnails 5 seconds apart, 300 pixels wide. The height is determined by the source frame size.

Use this preset name to generate a series of thumbnails for use in Xbox Live Applications. For information about providing a custom configuration file, see Task Preset for Thumbnail Generation.

Sample

The following method uses LINQ to Entities to find the latest version of the media processor based on the specified name.


private static IMediaProcessor GetLatestMediaProcessor(string mediaProcessorName)
{
    // The possible strings that can be passed into the 
    // method for the mediaProcessor parameter:
    //   Azure Media Encoder
    //   Azure Media Packager
    //   Azure Media Encryptor
    //   Storage Decryption

    var processor = _context.MediaProcessors.Where(p => p.Name == mediaProcessorName).
        ToList().OrderBy(p => new Version(p.Version)).LastOrDefault();

    if (processor == null)
        throw new ArgumentException(string.Format("Unknown media processor", mediaProcessorName));

    return processor;
}

The following code calls the GetLatestMediaProcessor method.

IMediaProcessor processor = GetLatestMediaProcessor("Azure Media Encoder");

See Also


Build Date:

2014-04-10
Syntes du, dette var nyttigt?
(1500 tegn tilbage)
Tak for din feedback

Fællesskabsindhold

Tilføj
Vis:
© 2014 Microsoft. Alle rettigheder forbeholdes.