diff --git a/profiles/latest/mediaservices/mgmt/media/models.go b/profiles/latest/mediaservices/mgmt/media/models.go index ee1dbf099ab7..280f46b1b5f4 100644 --- a/profiles/latest/mediaservices/mgmt/media/models.go +++ b/profiles/latest/mediaservices/mgmt/media/models.go @@ -120,14 +120,15 @@ const ( type EncoderNamedPreset = original.EncoderNamedPreset const ( - AACGoodQualityAudio EncoderNamedPreset = original.AACGoodQualityAudio - AdaptiveStreaming EncoderNamedPreset = original.AdaptiveStreaming - H264MultipleBitrate1080p EncoderNamedPreset = original.H264MultipleBitrate1080p - H264MultipleBitrate720p EncoderNamedPreset = original.H264MultipleBitrate720p - H264MultipleBitrateSD EncoderNamedPreset = original.H264MultipleBitrateSD - H264SingleBitrate1080p EncoderNamedPreset = original.H264SingleBitrate1080p - H264SingleBitrate720p EncoderNamedPreset = original.H264SingleBitrate720p - H264SingleBitrateSD EncoderNamedPreset = original.H264SingleBitrateSD + AACGoodQualityAudio EncoderNamedPreset = original.AACGoodQualityAudio + AdaptiveStreaming EncoderNamedPreset = original.AdaptiveStreaming + ContentAwareEncodingExperimental EncoderNamedPreset = original.ContentAwareEncodingExperimental + H264MultipleBitrate1080p EncoderNamedPreset = original.H264MultipleBitrate1080p + H264MultipleBitrate720p EncoderNamedPreset = original.H264MultipleBitrate720p + H264MultipleBitrateSD EncoderNamedPreset = original.H264MultipleBitrateSD + H264SingleBitrate1080p EncoderNamedPreset = original.H264SingleBitrate1080p + H264SingleBitrate720p EncoderNamedPreset = original.H264SingleBitrate720p + H264SingleBitrateSD EncoderNamedPreset = original.H264SingleBitrateSD ) type EncryptionScheme = original.EncryptionScheme diff --git a/profiles/preview/mediaservices/mgmt/media/models.go b/profiles/preview/mediaservices/mgmt/media/models.go index f5f77af79538..df3aa3e06735 100644 --- a/profiles/preview/mediaservices/mgmt/media/models.go +++ b/profiles/preview/mediaservices/mgmt/media/models.go @@ -120,14 +120,15 @@ const ( type EncoderNamedPreset = original.EncoderNamedPreset const ( - AACGoodQualityAudio EncoderNamedPreset = original.AACGoodQualityAudio - AdaptiveStreaming EncoderNamedPreset = original.AdaptiveStreaming - H264MultipleBitrate1080p EncoderNamedPreset = original.H264MultipleBitrate1080p - H264MultipleBitrate720p EncoderNamedPreset = original.H264MultipleBitrate720p - H264MultipleBitrateSD EncoderNamedPreset = original.H264MultipleBitrateSD - H264SingleBitrate1080p EncoderNamedPreset = original.H264SingleBitrate1080p - H264SingleBitrate720p EncoderNamedPreset = original.H264SingleBitrate720p - H264SingleBitrateSD EncoderNamedPreset = original.H264SingleBitrateSD + AACGoodQualityAudio EncoderNamedPreset = original.AACGoodQualityAudio + AdaptiveStreaming EncoderNamedPreset = original.AdaptiveStreaming + ContentAwareEncodingExperimental EncoderNamedPreset = original.ContentAwareEncodingExperimental + H264MultipleBitrate1080p EncoderNamedPreset = original.H264MultipleBitrate1080p + H264MultipleBitrate720p EncoderNamedPreset = original.H264MultipleBitrate720p + H264MultipleBitrateSD EncoderNamedPreset = original.H264MultipleBitrateSD + H264SingleBitrate1080p EncoderNamedPreset = original.H264SingleBitrate1080p + H264SingleBitrate720p EncoderNamedPreset = original.H264SingleBitrate720p + H264SingleBitrateSD EncoderNamedPreset = original.H264SingleBitrateSD ) type EncryptionScheme = original.EncryptionScheme diff --git a/services/mediaservices/mgmt/2018-07-01/media/models.go b/services/mediaservices/mgmt/2018-07-01/media/models.go index 789d3c8218b8..b534cf310ec8 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/models.go +++ b/services/mediaservices/mgmt/2018-07-01/media/models.go @@ -243,6 +243,11 @@ const ( // will remain 720p at best, and will start at rates lower than 3 Mbps. The output will have video and // audio in separate MP4 files, which is optimal for adaptive streaming. AdaptiveStreaming EncoderNamedPreset = "AdaptiveStreaming" + // ContentAwareEncodingExperimental Exposes an experimental preset for content-aware encoding. Given any + // input content, the service attempts to automatically determine the optimal number of layers, appropriate + // bitrate and resolution settings for delivery by adaptive streaming. The underlying algorithms will + // continue to evolve over time. The output will contain MP4 files with video and audio interleaved. + ContentAwareEncodingExperimental EncoderNamedPreset = "ContentAwareEncodingExperimental" // H264MultipleBitrate1080p Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, // and stereo AAC audio. Resolution starts at 1080p and goes down to 360p. H264MultipleBitrate1080p EncoderNamedPreset = "H264MultipleBitrate1080p" @@ -265,7 +270,7 @@ const ( // PossibleEncoderNamedPresetValues returns an array of possible values for the EncoderNamedPreset const type. func PossibleEncoderNamedPresetValues() []EncoderNamedPreset { - return []EncoderNamedPreset{AACGoodQualityAudio, AdaptiveStreaming, H264MultipleBitrate1080p, H264MultipleBitrate720p, H264MultipleBitrateSD, H264SingleBitrate1080p, H264SingleBitrate720p, H264SingleBitrateSD} + return []EncoderNamedPreset{AACGoodQualityAudio, AdaptiveStreaming, ContentAwareEncodingExperimental, H264MultipleBitrate1080p, H264MultipleBitrate720p, H264MultipleBitrateSD, H264SingleBitrate1080p, H264SingleBitrate720p, H264SingleBitrateSD} } // EncryptionScheme enumerates the values for encryption scheme. @@ -2073,7 +2078,7 @@ type BasicAudioAnalyzerPreset interface { // including speech transcription. Currently, the preset supports processing of content with a single audio // track. type AudioAnalyzerPreset struct { - // AudioLanguage - The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If you know the language of your content, it is recommended that you specify it. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. This language detection feature currently supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and Portuguese. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'." + // AudioLanguage - The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG' and 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If you know the language of your content, it is recommended that you specify it. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. This language detection feature currently supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and Portuguese. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'." AudioLanguage *string `json:"audioLanguage,omitempty"` // OdataType - Possible values include: 'OdataTypePreset', 'OdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeMicrosoftMediaVideoAnalyzerPreset' OdataType OdataTypeBasicPreset `json:"@odata.type,omitempty"` @@ -2238,7 +2243,7 @@ func (ao AudioOverlay) AsBasicOverlay() (BasicOverlay, bool) { // BuiltInStandardEncoderPreset describes a built-in preset for encoding the input video with the Standard // Encoder. type BuiltInStandardEncoderPreset struct { - // PresetName - The built-in preset to be used for encoding videos. Possible values include: 'H264SingleBitrateSD', 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD' + // PresetName - The built-in preset to be used for encoding videos. Possible values include: 'H264SingleBitrateSD', 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD' PresetName EncoderNamedPreset `json:"presetName,omitempty"` // OdataType - Possible values include: 'OdataTypePreset', 'OdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeMicrosoftMediaVideoAnalyzerPreset' OdataType OdataTypeBasicPreset `json:"@odata.type,omitempty"` @@ -4703,9 +4708,9 @@ func (f Format) AsBasicFormat() (BasicFormat, bool) { // H264Layer describes the settings to be used when encoding the input video into a desired output bitrate // layer with the H.264 video codec. type H264Layer struct { - // Profile - Which profile of the H.264 standard should be used when encoding this layer. Default is Auto. Possible values include: 'H264VideoProfileAuto', 'H264VideoProfileBaseline', 'H264VideoProfileMain', 'H264VideoProfileHigh', 'H264VideoProfileHigh422', 'H264VideoProfileHigh444' + // Profile - We currently support Baseline, Main, High, High422, High444. Default is Auto. Possible values include: 'H264VideoProfileAuto', 'H264VideoProfileBaseline', 'H264VideoProfileMain', 'H264VideoProfileHigh', 'H264VideoProfileHigh422', 'H264VideoProfileHigh444' Profile H264VideoProfile `json:"profile,omitempty"` - // Level - Which level of the H.264 standard should be used when encoding this layer. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer. + // Level - We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer. Level *string `json:"level,omitempty"` // BufferWindow - The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S). BufferWindow *string `json:"bufferWindow,omitempty"` @@ -10703,7 +10708,7 @@ func (vVar Video) AsBasicCodec() (BasicCodec, bool) { type VideoAnalyzerPreset struct { // InsightsToExtract - The type of insights to be extracted. If not set then based on the content the type will selected. If the content is audio only then only audio insights are extracted and if it is video only. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights' InsightsToExtract InsightsType `json:"insightsToExtract,omitempty"` - // AudioLanguage - The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If you know the language of your content, it is recommended that you specify it. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. This language detection feature currently supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and Portuguese. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'." + // AudioLanguage - The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG' and 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If you know the language of your content, it is recommended that you specify it. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. This language detection feature currently supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and Portuguese. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'." AudioLanguage *string `json:"audioLanguage,omitempty"` // OdataType - Possible values include: 'OdataTypePreset', 'OdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeMicrosoftMediaVideoAnalyzerPreset' OdataType OdataTypeBasicPreset `json:"@odata.type,omitempty"`