Export (0) Print
Expand All

Task Presets for Media Services Encoder

Updated: August 29, 2014

Media Services defines a set of encoding presets you can use when creating encoding jobs. You can either use one of the preset names described in this topic. Or, you can create your own XML-based presets (using UTF-8 or UTF-16 encoding) that are based on pre-defined presets. This topic links to topics that define XML-based presets.

For more information about how to create encoding jobs using REST or .NET APIs, see Encoding with Azure Media Encoder. Update your code to use preset names or custom XML strings that define your presets. For example:

// Add task 1 - Encode single MP4 into multibitrate MP4s.
ITask adpativeBitrateTask = job.Tasks.AddNew("MP4 to Adaptive Bitrate Task",
                encoder,
                "H264 Adaptive Bitrate MP4 Set 720p",
                TaskOptions.None);

If you are constructing your own XML in code, make sure to use appropriate escape characters for your language (PHP, Java, etc.).

ImportantImportant
Versions of Media Encoder before version 2.2.0.0 and older versions of preset names have been depreciated.

Media Services presets are divided into following groups:

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.

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.

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 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.

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 Series
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.

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.

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
    // Windows Azure Media Packager
    // Windows 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

Show:
© 2014 Microsoft