azure.mgmt.media.models module

class azure.mgmt.media.models.Provider(*, provider_name: str, **kwargs)[source]

Bases: msrest.serialization.Model

A resource provider.

All required parameters must be populated in order to send to Azure.

Parameters

provider_name (str) – Required. The provider name.

class azure.mgmt.media.models.OperationDisplay(*, provider: str = None, resource: str = None, operation: str = None, description: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

Operation details.

Parameters
  • provider (str) – The service provider.

  • resource (str) – Resource on which the operation is performed.

  • operation (str) – The operation type.

  • description (str) – The operation description.

class azure.mgmt.media.models.Operation(*, name: str, display=None, **kwargs)[source]

Bases: msrest.serialization.Model

An operation.

All required parameters must be populated in order to send to Azure.

Parameters
  • name (str) – Required. The operation name.

  • display (OperationDisplay) – The operation display name.

class azure.mgmt.media.models.Location(*, name: str, **kwargs)[source]

Bases: msrest.serialization.Model

Location.

All required parameters must be populated in order to send to Azure.

Parameters

name (str) – Required.

class azure.mgmt.media.models.EntityNameAvailabilityCheckOutput(*, name_available: bool, reason: str = None, message: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The response from the check name availability request.

All required parameters must be populated in order to send to Azure.

Parameters
  • name_available (bool) – Required. Specifies if the name is available.

  • reason (str) – Specifies the reason if the name is not available.

  • message (str) – Specifies the detailed reason if the name is not available.

class azure.mgmt.media.models.StorageAccount(*, type, id: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The storage account details.

All required parameters must be populated in order to send to Azure.

Parameters
  • id (str) – The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts.

  • type (str or StorageAccountType) – Required. The type of the storage account. Possible values include: ‘Primary’, ‘Secondary’

class azure.mgmt.media.models.SyncStorageKeysInput(*, id: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The input to the sync storage keys request.

Parameters

id (str) – The ID of the storage account resource.

class azure.mgmt.media.models.MediaService(*, tags=None, location: str = None, storage_accounts=None, **kwargs)[source]

Bases: azure.mgmt.media.models.tracked_resource_py3.TrackedResource

A Media Services account.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – Fully qualified resource ID for the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • media_service_id (str) – The Media Services account ID.

Parameters
  • tags (dict[str, str]) – Resource tags.

  • location (str) – The Azure Region of the resource.

  • storage_accounts (list[StorageAccount]) – The storage accounts for this resource.

class azure.mgmt.media.models.SubscriptionMediaService(*, tags=None, location: str = None, storage_accounts=None, **kwargs)[source]

Bases: azure.mgmt.media.models.tracked_resource_py3.TrackedResource

A Media Services account.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – Fully qualified resource ID for the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • media_service_id (str) – The Media Services account ID.

Parameters
  • tags (dict[str, str]) – Resource tags.

  • location (str) – The Azure Region of the resource.

  • storage_accounts (list[StorageAccount]) – The storage accounts for this resource.

class azure.mgmt.media.models.ODataError(*, code: str = None, message: str = None, target: str = None, details=None, **kwargs)[source]

Bases: msrest.serialization.Model

Information about an error.

Parameters
  • code (str) – A language-independent error name.

  • message (str) – The error message.

  • target (str) – The target of the error (for example, the name of the property in error).

  • details (list[ODataError]) – The error details.

class azure.mgmt.media.models.ApiError(*, error=None, **kwargs)[source]

Bases: msrest.serialization.Model

The API error.

Parameters

error (ODataError) – The error properties.

exception azure.mgmt.media.models.ApiErrorException(deserialize, response, *args)[source]

Bases: msrest.exceptions.HttpOperationError

Server responsed with exception of type: ‘ApiError’.

Parameters
  • deserialize – A deserializer

  • response – Server response to be deserialized.

class azure.mgmt.media.models.CheckNameAvailabilityInput(*, name: str = None, type: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The input to the check name availability request.

Parameters
  • name (str) – The account name.

  • type (str) – The account type. For a Media Services account, this should be ‘MediaServices’.

class azure.mgmt.media.models.ProxyResource(**kwargs)[source]

Bases: azure.mgmt.media.models.resource_py3.Resource

The resource model definition for a ARM proxy resource.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – Fully qualified resource ID for the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

class azure.mgmt.media.models.Resource(**kwargs)[source]

Bases: msrest.serialization.Model

The core properties of ARM resources.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – Fully qualified resource ID for the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

class azure.mgmt.media.models.TrackedResource(*, tags=None, location: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.resource_py3.Resource

The resource model definition for a ARM tracked resource.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – Fully qualified resource ID for the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

Parameters
  • tags (dict[str, str]) – Resource tags.

  • location (str) – The Azure Region of the resource.

class azure.mgmt.media.models.AssetContainerSas(*, asset_container_sas_urls=None, **kwargs)[source]

Bases: msrest.serialization.Model

The Asset Storage container SAS URLs.

Parameters

asset_container_sas_urls (list[str]) – The list of Asset container SAS URLs.

class azure.mgmt.media.models.AssetStorageEncryptionKey(*, storage_encryption_key: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The Asset Storage encryption key.

Parameters

storage_encryption_key (str) – The Asset storage encryption key.

class azure.mgmt.media.models.Asset(*, alternate_id: str = None, description: str = None, container: str = None, storage_account_name: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.proxy_resource_py3.ProxyResource

An Asset.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – Fully qualified resource ID for the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • asset_id (str) – The Asset ID.

  • created (datetime) – The creation date of the Asset.

  • last_modified (datetime) – The last modified date of the Asset.

  • storage_encryption_format (str or AssetStorageEncryptionFormat) – The Asset encryption format. One of None or MediaStorageEncryption. Possible values include: ‘None’, ‘MediaStorageClientEncryption’

Parameters
  • alternate_id (str) – The alternate ID of the Asset.

  • description (str) – The Asset description.

  • container (str) – The name of the asset blob container.

  • storage_account_name (str) – The name of the storage account.

class azure.mgmt.media.models.ListContainerSasInput(*, permissions=None, expiry_time=None, **kwargs)[source]

Bases: msrest.serialization.Model

The parameters to the list SAS requet.

Parameters
  • permissions (str or AssetContainerPermission) – The permissions to set on the SAS URL. Possible values include: ‘Read’, ‘ReadWrite’, ‘ReadWriteDelete’

  • expiry_time (datetime) – The SAS URL expiration time. This must be less than 24 hours from the current time.

class azure.mgmt.media.models.ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction(*, best_effort: bool, configuration_data: int, **kwargs)[source]

Bases: msrest.serialization.Model

Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules.

All required parameters must be populated in order to send to Azure.

Parameters
  • best_effort (bool) – Required. Indicates whether this restriction is enforced on a Best Effort basis.

  • configuration_data (int) – Required. Configures the restriction control bits. Must be between 0 and 3 inclusive.

class azure.mgmt.media.models.ContentKeyPolicyPlayReadyContentKeyLocation(**kwargs)[source]

Bases: msrest.serialization.Model

Base class for content key ID location. A derived class must be used to represent the location.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier

All required parameters must be populated in order to send to Azure.

Parameters

odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader(**kwargs)[source]

Bases: azure.mgmt.media.models.content_key_policy_play_ready_content_key_location_py3.ContentKeyPolicyPlayReadyContentKeyLocation

Specifies that the content key ID is in the PlayReady header.

All required parameters must be populated in order to send to Azure.

Parameters

odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier(*, key_id: str, **kwargs)[source]

Bases: azure.mgmt.media.models.content_key_policy_play_ready_content_key_location_py3.ContentKeyPolicyPlayReadyContentKeyLocation

Specifies that the content key ID is specified in the PlayReady configuration.

All required parameters must be populated in order to send to Azure.

Parameters
  • odatatype (str) – Required. Constant filled by server.

  • key_id (str) – Required. The content key ID.

class azure.mgmt.media.models.ContentKeyPolicyPlayReadyPlayRight(*, digital_video_only_content_restriction: bool, image_constraint_for_analog_component_video_restriction: bool, image_constraint_for_analog_computer_monitor_restriction: bool, allow_passing_video_content_to_unknown_output, first_play_expiration=None, scms_restriction: int = None, agc_and_color_stripe_restriction: int = None, explicit_analog_television_output_restriction=None, uncompressed_digital_video_opl: int = None, compressed_digital_video_opl: int = None, analog_video_opl: int = None, compressed_digital_audio_opl: int = None, uncompressed_digital_audio_opl: int = None, **kwargs)[source]

Bases: msrest.serialization.Model

Configures the Play Right in the PlayReady license.

All required parameters must be populated in order to send to Azure.

Parameters
  • first_play_expiration (timedelta) – The amount of time that the license is valid after the license is first used to play content.

  • scms_restriction (int) – Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive.

  • agc_and_color_stripe_restriction (int) – Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive.

  • explicit_analog_television_output_restriction (ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction) – Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3 inclusive.

  • digital_video_only_content_restriction (bool) – Required. Enables the Image Constraint For Analog Component Video Restriction in the license.

  • image_constraint_for_analog_component_video_restriction (bool) – Required. Enables the Image Constraint For Analog Component Video Restriction in the license.

  • image_constraint_for_analog_computer_monitor_restriction (bool) – Required. Enables the Image Constraint For Analog Component Video Restriction in the license.

  • allow_passing_video_content_to_unknown_output (str or ContentKeyPolicyPlayReadyUnknownOutputPassingOption) – Required. Configures Unknown output handling settings of the license. Possible values include: ‘Unknown’, ‘NotAllowed’, ‘Allowed’, ‘AllowedWithVideoConstriction’

  • uncompressed_digital_video_opl (int) – Specifies the output protection level for uncompressed digital video.

  • compressed_digital_video_opl (int) – Specifies the output protection level for compressed digital video.

  • analog_video_opl (int) – Specifies the output protection level for compressed digital audio.

  • compressed_digital_audio_opl (int) – Specifies the output protection level for compressed digital audio.

  • uncompressed_digital_audio_opl (int) – Specifies the output protection level for uncompressed digital audio.

class azure.mgmt.media.models.ContentKeyPolicyTokenClaim(*, claim_type: str = None, claim_value: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

Represents a token claim.

Parameters
  • claim_type (str) – Token claim type.

  • claim_value (str) – Token claim value.

class azure.mgmt.media.models.ContentKeyPolicyPlayReadyLicense(*, allow_test_devices: bool, license_type, content_key_location, content_type, begin_date=None, expiration_date=None, relative_begin_date=None, relative_expiration_date=None, grace_period=None, play_right=None, **kwargs)[source]

Bases: msrest.serialization.Model

The PlayReady license.

All required parameters must be populated in order to send to Azure.

Parameters
  • allow_test_devices (bool) – Required. A flag indicating whether test devices can use the license.

  • begin_date (datetime) – The begin date of license

  • expiration_date (datetime) – The expiration date of license.

  • relative_begin_date (timedelta) – The relative begin date of license.

  • relative_expiration_date (timedelta) – The relative expiration date of license.

  • grace_period (timedelta) – The grace period of license.

  • play_right (ContentKeyPolicyPlayReadyPlayRight) – The license PlayRight

  • license_type (str or ContentKeyPolicyPlayReadyLicenseType) – Required. The license type. Possible values include: ‘Unknown’, ‘NonPersistent’, ‘Persistent’

  • content_key_location (ContentKeyPolicyPlayReadyContentKeyLocation) – Required. The content key location.

  • content_type (str or ContentKeyPolicyPlayReadyContentType) – Required. The PlayReady content type. Possible values include: ‘Unknown’, ‘Unspecified’, ‘UltraVioletDownload’, ‘UltraVioletStreaming’

class azure.mgmt.media.models.ContentKeyPolicyRestriction(**kwargs)[source]

Bases: msrest.serialization.Model

Base class for Content Key Policy restrictions. A derived class must be used to create a restriction.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: ContentKeyPolicyOpenRestriction, ContentKeyPolicyUnknownRestriction, ContentKeyPolicyTokenRestriction

All required parameters must be populated in order to send to Azure.

Parameters

odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.ContentKeyPolicyOpenRestriction(**kwargs)[source]

Bases: azure.mgmt.media.models.content_key_policy_restriction_py3.ContentKeyPolicyRestriction

Represents an open restriction. License or key will be delivered on every request.

All required parameters must be populated in order to send to Azure.

Parameters

odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.ContentKeyPolicyUnknownRestriction(**kwargs)[source]

Bases: azure.mgmt.media.models.content_key_policy_restriction_py3.ContentKeyPolicyRestriction

Represents a ContentKeyPolicyRestriction that is unavailable in the current API version.

All required parameters must be populated in order to send to Azure.

Parameters

odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.ContentKeyPolicyConfiguration(**kwargs)[source]

Bases: msrest.serialization.Model

Base class for Content Key Policy configuration. A derived class must be used to create a configuration.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: ContentKeyPolicyClearKeyConfiguration, ContentKeyPolicyUnknownConfiguration, ContentKeyPolicyWidevineConfiguration, ContentKeyPolicyPlayReadyConfiguration, ContentKeyPolicyFairPlayConfiguration

All required parameters must be populated in order to send to Azure.

Parameters

odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.ContentKeyPolicyRestrictionTokenKey(**kwargs)[source]

Bases: msrest.serialization.Model

Base class for Content Key Policy key for token validation. A derived class must be used to create a token key.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: ContentKeyPolicySymmetricTokenKey, ContentKeyPolicyRsaTokenKey, ContentKeyPolicyX509CertificateTokenKey

All required parameters must be populated in order to send to Azure.

Parameters

odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.ContentKeyPolicySymmetricTokenKey(*, key_value: bytearray, **kwargs)[source]

Bases: azure.mgmt.media.models.content_key_policy_restriction_token_key_py3.ContentKeyPolicyRestrictionTokenKey

Specifies a symmetric key for token validation.

All required parameters must be populated in order to send to Azure.

Parameters
  • odatatype (str) – Required. Constant filled by server.

  • key_value (bytearray) – Required. The key value of the key

class azure.mgmt.media.models.ContentKeyPolicyRsaTokenKey(*, exponent: bytearray, modulus: bytearray, **kwargs)[source]

Bases: azure.mgmt.media.models.content_key_policy_restriction_token_key_py3.ContentKeyPolicyRestrictionTokenKey

Specifies a RSA key for token validation.

All required parameters must be populated in order to send to Azure.

Parameters
  • odatatype (str) – Required. Constant filled by server.

  • exponent (bytearray) – Required. The RSA Parameter exponent

  • modulus (bytearray) – Required. The RSA Parameter modulus

class azure.mgmt.media.models.ContentKeyPolicyX509CertificateTokenKey(*, raw_body: bytearray, **kwargs)[source]

Bases: azure.mgmt.media.models.content_key_policy_restriction_token_key_py3.ContentKeyPolicyRestrictionTokenKey

Specifies a certificate for token validation.

All required parameters must be populated in order to send to Azure.

Parameters
  • odatatype (str) – Required. Constant filled by server.

  • raw_body (bytearray) – Required. The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)

class azure.mgmt.media.models.ContentKeyPolicyTokenRestriction(*, issuer: str, audience: str, primary_verification_key, restriction_token_type, alternate_verification_keys=None, required_claims=None, open_id_connect_discovery_document: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.content_key_policy_restriction_py3.ContentKeyPolicyRestriction

Represents a token restriction. Provided token must match these requirements for successful license or key delivery.

All required parameters must be populated in order to send to Azure.

Parameters
  • odatatype (str) – Required. Constant filled by server.

  • issuer (str) – Required. The token issuer.

  • audience (str) – Required. The audience for the token.

  • primary_verification_key (ContentKeyPolicyRestrictionTokenKey) – Required. The primary verification key.

  • alternate_verification_keys (list[ContentKeyPolicyRestrictionTokenKey]) – A list of alternative verification keys.

  • required_claims (list[ContentKeyPolicyTokenClaim]) – A list of required token claims.

  • restriction_token_type (str or ContentKeyPolicyRestrictionTokenType) – Required. The type of token. Possible values include: ‘Unknown’, ‘Swt’, ‘Jwt’

  • open_id_connect_discovery_document (str) – The OpenID connect discovery document.

class azure.mgmt.media.models.ContentKeyPolicyClearKeyConfiguration(**kwargs)[source]

Bases: azure.mgmt.media.models.content_key_policy_configuration_py3.ContentKeyPolicyConfiguration

Represents a configuration for non-DRM keys.

All required parameters must be populated in order to send to Azure.

Parameters

odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.ContentKeyPolicyUnknownConfiguration(**kwargs)[source]

Bases: azure.mgmt.media.models.content_key_policy_configuration_py3.ContentKeyPolicyConfiguration

Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version.

All required parameters must be populated in order to send to Azure.

Parameters

odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.ContentKeyPolicyWidevineConfiguration(*, widevine_template: str, **kwargs)[source]

Bases: azure.mgmt.media.models.content_key_policy_configuration_py3.ContentKeyPolicyConfiguration

Specifies a configuration for Widevine licenses.

All required parameters must be populated in order to send to Azure.

Parameters
  • odatatype (str) – Required. Constant filled by server.

  • widevine_template (str) – Required. The Widevine template.

class azure.mgmt.media.models.ContentKeyPolicyPlayReadyConfiguration(*, licenses, response_custom_data: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.content_key_policy_configuration_py3.ContentKeyPolicyConfiguration

Specifies a configuration for PlayReady licenses.

All required parameters must be populated in order to send to Azure.

Parameters
  • odatatype (str) – Required. Constant filled by server.

  • licenses (list[ContentKeyPolicyPlayReadyLicense]) – Required. The PlayReady licenses.

  • response_custom_data (str) – The custom response data.

class azure.mgmt.media.models.ContentKeyPolicyFairPlayConfiguration(*, ask: bytearray, fair_play_pfx_password: str, fair_play_pfx: str, rental_and_lease_key_type, rental_duration: int, **kwargs)[source]

Bases: azure.mgmt.media.models.content_key_policy_configuration_py3.ContentKeyPolicyConfiguration

Specifies a configuration for FairPlay licenses.

All required parameters must be populated in order to send to Azure.

Parameters
  • odatatype (str) – Required. Constant filled by server.

  • ask (bytearray) – Required. The key that must be used as FairPlay ASk.

  • fair_play_pfx_password (str) – Required. The password encrypting FairPlay certificate in PKCS 12 (pfx) format.

  • fair_play_pfx (str) – Required. The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).

  • rental_and_lease_key_type (str or ContentKeyPolicyFairPlayRentalAndLeaseKeyType) – Required. The rental and lease key type. Possible values include: ‘Unknown’, ‘Undefined’, ‘PersistentUnlimited’, ‘PersistentLimited’

  • rental_duration (long) – Required. The rental duration. Must be greater than or equal to 0.

class azure.mgmt.media.models.ContentKeyPolicyOption(*, configuration, restriction, name: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

Represents a policy option.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables

policy_option_id (str) – The legacy Policy Option ID.

Parameters
class azure.mgmt.media.models.ContentKeyPolicyProperties(*, options, description: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The properties of the Content Key Policy.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • policy_id (str) – The legacy Policy ID.

  • created (datetime) – The creation date of the Policy

  • last_modified (datetime) – The last modified date of the Policy

Parameters
  • description (str) – A description for the Policy.

  • options (list[ContentKeyPolicyOption]) – Required. The Key Policy options.

class azure.mgmt.media.models.ContentKeyPolicy(*, options, description: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.proxy_resource_py3.ProxyResource

A Content Key Policy resource.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • id (str) – Fully qualified resource ID for the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • policy_id (str) – The legacy Policy ID.

  • created (datetime) – The creation date of the Policy

  • last_modified (datetime) – The last modified date of the Policy

Parameters
  • description (str) – A description for the Policy.

  • options (list[ContentKeyPolicyOption]) – Required. The Key Policy options.

class azure.mgmt.media.models.Preset(**kwargs)[source]

Bases: msrest.serialization.Model

Base type for all Presets, which define the recipe or instructions on how the input media files should be processed.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: AudioAnalyzerPreset, BuiltInStandardEncoderPreset, StandardEncoderPreset

All required parameters must be populated in order to send to Azure.

Parameters

odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.Codec(*, label: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

Describes the basic properties of all codecs.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: Audio, CopyVideo, Video, CopyAudio

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – An optional label for the codec. The label can be used to control muxing behavior.

  • odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.Audio(*, label: str = None, channels: int = None, sampling_rate: int = None, bitrate: int = None, **kwargs)[source]

Bases: azure.mgmt.media.models.codec_py3.Codec

Defines the common properties for all audio codecs.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: AacAudio

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – An optional label for the codec. The label can be used to control muxing behavior.

  • odatatype (str) – Required. Constant filled by server.

  • channels (int) – The number of channels in the audio.

  • sampling_rate (int) – The sampling rate to use for encoding in hertz.

  • bitrate (int) – The bitrate, in bits per second, of the output encoded audio.

class azure.mgmt.media.models.AacAudio(*, label: str = None, channels: int = None, sampling_rate: int = None, bitrate: int = None, profile=None, **kwargs)[source]

Bases: azure.mgmt.media.models.audio_py3.Audio

Describes Advanced Audio Codec (AAC) audio encoding settings.

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – An optional label for the codec. The label can be used to control muxing behavior.

  • odatatype (str) – Required. Constant filled by server.

  • channels (int) – The number of channels in the audio.

  • sampling_rate (int) – The sampling rate to use for encoding in hertz.

  • bitrate (int) – The bitrate, in bits per second, of the output encoded audio.

  • profile (str or AacAudioProfile) – The encoding profile to be used when encoding audio with AAC. Possible values include: ‘AacLc’, ‘HeAacV1’, ‘HeAacV2’

class azure.mgmt.media.models.AudioAnalyzerPreset(*, audio_language: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.preset_py3.Preset

The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: VideoAnalyzerPreset

All required parameters must be populated in order to send to Azure.

Parameters
  • odatatype (str) – Required. Constant filled by server.

  • audio_language (str) – 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, ‘en-US’, ‘en-GB’, ‘es-ES’, ‘es-MX’, ‘fr-FR’, ‘it-IT’, ‘ja-JP’, ‘pt-BR’, ‘zh-CN’.

class azure.mgmt.media.models.Overlay(*, input_label: str = None, start=None, end=None, fade_in_duration=None, fade_out_duration=None, audio_gain_level: float = None, **kwargs)[source]

Bases: msrest.serialization.Model

Base type for all overlays - image, audio or video.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: AudioOverlay, VideoOverlay

All required parameters must be populated in order to send to Azure.

Parameters
  • input_label (str) – The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG or PNG formats, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats.

  • start (timedelta) – The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds in to the input video. If not specified the overlay starts from the beginning of the input video.

  • end (timedelta) – The position in the input video at which the overlay ends. The value should be in ISO 8601 duration format. For example, PT30S to end the overlay at 30 seconds in to the input video. If not specified the overlay will be applied until the end of the input video if inputLoop is true. Else, if inputLoop is false, then overlay will last as long as the duration of the overlay media.

  • fade_in_duration (timedelta) – The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S).

  • fade_out_duration (timedelta) – The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S).

  • audio_gain_level (float) – The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0.

  • odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.AudioOverlay(*, input_label: str = None, start=None, end=None, fade_in_duration=None, fade_out_duration=None, audio_gain_level: float = None, **kwargs)[source]

Bases: azure.mgmt.media.models.overlay_py3.Overlay

Describes the properties of an audio overlay.

All required parameters must be populated in order to send to Azure.

Parameters
  • input_label (str) – The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG or PNG formats, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats.

  • start (timedelta) – The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds in to the input video. If not specified the overlay starts from the beginning of the input video.

  • end (timedelta) – The position in the input video at which the overlay ends. The value should be in ISO 8601 duration format. For example, PT30S to end the overlay at 30 seconds in to the input video. If not specified the overlay will be applied until the end of the input video if inputLoop is true. Else, if inputLoop is false, then overlay will last as long as the duration of the overlay media.

  • fade_in_duration (timedelta) – The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S).

  • fade_out_duration (timedelta) – The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S).

  • audio_gain_level (float) – The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0.

  • odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.CopyVideo(*, label: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.codec_py3.Codec

A codec flag, which tells the encoder to copy the input video bitstream without re-encoding.

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – An optional label for the codec. The label can be used to control muxing behavior.

  • odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.Video(*, label: str = None, key_frame_interval=None, stretch_mode=None, **kwargs)[source]

Bases: azure.mgmt.media.models.codec_py3.Codec

Describes the basic properties for encoding the input video.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: Image, H264Video

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – An optional label for the codec. The label can be used to control muxing behavior.

  • odatatype (str) – Required. Constant filled by server.

  • key_frame_interval (timedelta) – The distance between two key frames, thereby defining a group of pictures (GOP). The value should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The default is 2 seconds (PT2S).

  • stretch_mode (str or StretchMode) – The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize. Possible values include: ‘None’, ‘AutoSize’, ‘AutoFit’

class azure.mgmt.media.models.Image(*, label: str = None, key_frame_interval=None, stretch_mode=None, start: str = None, step: str = None, range: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.video_py3.Video

Describes the basic properties for generating thumbnails from the input video.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: JpgImage, PngImage

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – An optional label for the codec. The label can be used to control muxing behavior.

  • odatatype (str) – Required. Constant filled by server.

  • key_frame_interval (timedelta) – The distance between two key frames, thereby defining a group of pictures (GOP). The value should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The default is 2 seconds (PT2S).

  • stretch_mode (str or StretchMode) – The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize. Possible values include: ‘None’, ‘AutoSize’, ‘AutoFit’

  • start (str) – The position in the input video from where to start generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), or a relative value (For example, 1%). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video.

  • step (str) – The intervals at which thumbnails are generated. The value can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 seconds), or a frame count (For example, 30 for every 30 frames), or a relative value (For example, 1%).

  • range (str) – The position in the input video at which to stop generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 to stop at the 300th frame), or a relative value (For example, 100%).

class azure.mgmt.media.models.Format(*, filename_pattern: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

Base class for output.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: ImageFormat, MultiBitrateFormat

All required parameters must be populated in order to send to Azure.

Parameters
  • filename_pattern (str) – The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - The base name of the input video {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename.

  • odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.ImageFormat(*, filename_pattern: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.format_py3.Format

Describes the properties for an output image file.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: JpgFormat, PngFormat

All required parameters must be populated in order to send to Azure.

Parameters
  • filename_pattern (str) – The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - The base name of the input video {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename.

  • odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.JpgFormat(*, filename_pattern: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.image_format_py3.ImageFormat

Describes the settings for producing JPEG thumbnails.

All required parameters must be populated in order to send to Azure.

Parameters
  • filename_pattern (str) – The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - The base name of the input video {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename.

  • odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.PngFormat(*, filename_pattern: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.image_format_py3.ImageFormat

Describes the settings for producing PNG thumbnails.

All required parameters must be populated in order to send to Azure.

Parameters
  • filename_pattern (str) – The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - The base name of the input video {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename.

  • odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.CopyAudio(*, label: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.codec_py3.Codec

A codec flag, which tells the encoder to copy the input audio bitstream.

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – An optional label for the codec. The label can be used to control muxing behavior.

  • odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.Deinterlace(*, parity=None, mode=None, **kwargs)[source]

Bases: msrest.serialization.Model

Describes the de-interlacing settings.

Parameters
  • parity (str or DeinterlaceParity) – The field parity for de-interlacing, defaults to Auto. Possible values include: ‘Auto’, ‘TopFieldFirst’, ‘BottomFieldFirst’

  • mode (str or DeinterlaceMode) – The deinterlacing mode. Defaults to AutoPixelAdaptive. Possible values include: ‘Off’, ‘AutoPixelAdaptive’

class azure.mgmt.media.models.Rectangle(*, left: str = None, top: str = None, width: str = None, height: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

Describes the properties of a rectangular window applied to the input media before processing it.

Parameters
  • left (str) – The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).

  • top (str) – The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).

  • width (str) – The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).

  • height (str) – The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).

class azure.mgmt.media.models.Filters(*, deinterlace=None, rotation=None, crop=None, overlays=None, **kwargs)[source]

Bases: msrest.serialization.Model

Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding.

Parameters
  • deinterlace (Deinterlace) – The de-interlacing settings.

  • rotation (str or Rotation) – The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto. Possible values include: ‘Auto’, ‘None’, ‘Rotate0’, ‘Rotate90’, ‘Rotate180’, ‘Rotate270’

  • crop (Rectangle) – The parameters for the rectangular window with which to crop the input video.

  • overlays (list[Overlay]) – The properties of overlays to be applied to the input video. These could be audio, image or video overlays.

class azure.mgmt.media.models.Layer(*, width: str = None, height: str = None, label: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: VideoLayer, JpgLayer, PngLayer

All required parameters must be populated in order to send to Azure.

Parameters
  • width (str) – The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input.

  • height (str) – The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input.

  • label (str) – The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.

  • odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.VideoLayer(*, width: str = None, height: str = None, label: str = None, bitrate: int = None, max_bitrate: int = None, b_frames: int = None, frame_rate: str = None, slices: int = None, adaptive_bframe: bool = None, **kwargs)[source]

Bases: azure.mgmt.media.models.layer_py3.Layer

Describes the settings to be used when encoding the input video into a desired output bitrate layer.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: H264Layer

All required parameters must be populated in order to send to Azure.

Parameters
  • width (str) – The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input.

  • height (str) – The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input.

  • label (str) – The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.

  • odatatype (str) – Required. Constant filled by server.

  • bitrate (int) – The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field.

  • max_bitrate (int) – The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate.

  • b_frames (int) – The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level.

  • frame_rate (str) – The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video.

  • slices (int) – The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame.

  • adaptive_bframe (bool) – Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use.

class azure.mgmt.media.models.H264Layer(*, width: str = None, height: str = None, label: str = None, bitrate: int = None, max_bitrate: int = None, b_frames: int = None, frame_rate: str = None, slices: int = None, adaptive_bframe: bool = None, profile=None, level: str = None, buffer_window=None, reference_frames: int = None, entropy_mode=None, **kwargs)[source]

Bases: azure.mgmt.media.models.video_layer_py3.VideoLayer

Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec.

All required parameters must be populated in order to send to Azure.

Parameters
  • width (str) – The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input.

  • height (str) – The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input.

  • label (str) – The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.

  • odatatype (str) – Required. Constant filled by server.

  • bitrate (int) – The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field.

  • max_bitrate (int) – The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate.

  • b_frames (int) – The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level.

  • frame_rate (str) – The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video.

  • slices (int) – The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame.

  • adaptive_bframe (bool) – Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use.

  • profile (str or H264VideoProfile) – Which profile of the H.264 standard should be used when encoding this layer. Default is Auto. Possible values include: ‘Auto’, ‘Baseline’, ‘Main’, ‘High’, ‘High422’, ‘High444’

  • level (str) – 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.

  • buffer_window (timedelta) – 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).

  • reference_frames (int) – The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting.

  • entropy_mode (str or EntropyMode) – The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level. Possible values include: ‘Cabac’, ‘Cavlc’

class azure.mgmt.media.models.H264Video(*, label: str = None, key_frame_interval=None, stretch_mode=None, scene_change_detection: bool = None, complexity=None, layers=None, **kwargs)[source]

Bases: azure.mgmt.media.models.video_py3.Video

Describes all the properties for encoding a video with the H.264 codec.

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – An optional label for the codec. The label can be used to control muxing behavior.

  • odatatype (str) – Required. Constant filled by server.

  • key_frame_interval (timedelta) – The distance between two key frames, thereby defining a group of pictures (GOP). The value should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The default is 2 seconds (PT2S).

  • stretch_mode (str or StretchMode) – The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize. Possible values include: ‘None’, ‘AutoSize’, ‘AutoFit’

  • scene_change_detection (bool) – Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video.

  • complexity (str or H264Complexity) – Tells the encoder how to choose its encoding settings. The default value is Balanced. Possible values include: ‘Speed’, ‘Balanced’, ‘Quality’

  • layers (list[H264Layer]) – The collection of output H.264 layers to be produced by the encoder.

class azure.mgmt.media.models.JpgLayer(*, width: str = None, height: str = None, label: str = None, quality: int = None, **kwargs)[source]

Bases: azure.mgmt.media.models.layer_py3.Layer

Describes the settings to produce a JPEG image from the input video.

All required parameters must be populated in order to send to Azure.

Parameters
  • width (str) – The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input.

  • height (str) – The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input.

  • label (str) – The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.

  • odatatype (str) – Required. Constant filled by server.

  • quality (int) – The compression quality of the JPEG output. Range is from 0-100 and the default is 70.

class azure.mgmt.media.models.JpgImage(*, label: str = None, key_frame_interval=None, stretch_mode=None, start: str = None, step: str = None, range: str = None, layers=None, **kwargs)[source]

Bases: azure.mgmt.media.models.image_py3.Image

Describes the properties for producing a series of JPEG images from the input video.

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – An optional label for the codec. The label can be used to control muxing behavior.

  • odatatype (str) – Required. Constant filled by server.

  • key_frame_interval (timedelta) – The distance between two key frames, thereby defining a group of pictures (GOP). The value should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The default is 2 seconds (PT2S).

  • stretch_mode (str or StretchMode) – The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize. Possible values include: ‘None’, ‘AutoSize’, ‘AutoFit’

  • start (str) – The position in the input video from where to start generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), or a relative value (For example, 1%). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video.

  • step (str) – The intervals at which thumbnails are generated. The value can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 seconds), or a frame count (For example, 30 for every 30 frames), or a relative value (For example, 1%).

  • range (str) – The position in the input video at which to stop generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 to stop at the 300th frame), or a relative value (For example, 100%).

  • layers (list[JpgLayer]) – A collection of output JPEG image layers to be produced by the encoder.

class azure.mgmt.media.models.OutputFile(*, labels=None, **kwargs)[source]

Bases: msrest.serialization.Model

Represents an output file produced.

Parameters

labels (list[str]) – The list of labels that describe how the encoder should multiplex video and audio into an output file. For example, if the encoder is producing two video layers with labels v1 and v2, and one audio layer with label a1, then an array like ‘[v1, a1]’ tells the encoder to produce an output file with the video track represented by v1 and the audio track represented by a1.

class azure.mgmt.media.models.MultiBitrateFormat(*, filename_pattern: str = None, output_files=None, **kwargs)[source]

Bases: azure.mgmt.media.models.format_py3.Format

Describes the properties for producing a collection of GOP aligned multi-bitrate files. The default behavior is to produce one output file for each video layer which is muxed together with all the audios. The exact output files produced can be controlled by specifying the outputFiles collection.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: Mp4Format, TransportStreamFormat

All required parameters must be populated in order to send to Azure.

Parameters
  • filename_pattern (str) – The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - The base name of the input video {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename.

  • odatatype (str) – Required. Constant filled by server.

  • output_files (list[OutputFile]) – The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together .

class azure.mgmt.media.models.Mp4Format(*, filename_pattern: str = None, output_files=None, **kwargs)[source]

Bases: azure.mgmt.media.models.multi_bitrate_format_py3.MultiBitrateFormat

Describes the properties for an output ISO MP4 file.

All required parameters must be populated in order to send to Azure.

Parameters
  • filename_pattern (str) – The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - The base name of the input video {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename.

  • odatatype (str) – Required. Constant filled by server.

  • output_files (list[OutputFile]) – The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together .

class azure.mgmt.media.models.PngLayer(*, width: str = None, height: str = None, label: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.layer_py3.Layer

Describes the settings to produce a PNG image from the input video.

All required parameters must be populated in order to send to Azure.

Parameters
  • width (str) – The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input.

  • height (str) – The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input.

  • label (str) – The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.

  • odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.PngImage(*, label: str = None, key_frame_interval=None, stretch_mode=None, start: str = None, step: str = None, range: str = None, layers=None, **kwargs)[source]

Bases: azure.mgmt.media.models.image_py3.Image

Describes the properties for producing a series of PNG images from the input video.

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – An optional label for the codec. The label can be used to control muxing behavior.

  • odatatype (str) – Required. Constant filled by server.

  • key_frame_interval (timedelta) – The distance between two key frames, thereby defining a group of pictures (GOP). The value should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The default is 2 seconds (PT2S).

  • stretch_mode (str or StretchMode) – The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize. Possible values include: ‘None’, ‘AutoSize’, ‘AutoFit’

  • start (str) – The position in the input video from where to start generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), or a relative value (For example, 1%). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video.

  • step (str) – The intervals at which thumbnails are generated. The value can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 seconds), or a frame count (For example, 30 for every 30 frames), or a relative value (For example, 1%).

  • range (str) – The position in the input video at which to stop generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 to stop at the 300th frame), or a relative value (For example, 100%).

  • layers (list[PngLayer]) – A collection of output PNG image layers to be produced by the encoder.

class azure.mgmt.media.models.BuiltInStandardEncoderPreset(*, preset_name, **kwargs)[source]

Bases: azure.mgmt.media.models.preset_py3.Preset

Describes a built-in preset for encoding the input video with the Standard Encoder.

All required parameters must be populated in order to send to Azure.

Parameters
  • odatatype (str) – Required. Constant filled by server.

  • preset_name (str or EncoderNamedPreset) – Required. The built-in preset to be used for encoding videos. Possible values include: ‘AdaptiveStreaming’, ‘AACGoodQualityAudio’, ‘H264MultipleBitrate1080p’, ‘H264MultipleBitrate720p’, ‘H264MultipleBitrateSD’

class azure.mgmt.media.models.StandardEncoderPreset(*, filters=None, codecs=None, formats=None, **kwargs)[source]

Bases: azure.mgmt.media.models.preset_py3.Preset

Describes all the settings to be used when encoding the input video with the Standard Encoder.

All required parameters must be populated in order to send to Azure.

Parameters
  • odatatype (str) – Required. Constant filled by server.

  • filters (Filters) – One or more filtering operations that are applied to the input media before encoding.

  • codecs (list[Codec]) – The list of codecs to be used when encoding the input video.

  • formats (list[Format]) – The list of outputs to be produced by the encoder.

class azure.mgmt.media.models.VideoAnalyzerPreset(*, audio_language: str = None, audio_insights_only: bool = None, **kwargs)[source]

Bases: azure.mgmt.media.models.audio_analyzer_preset_py3.AudioAnalyzerPreset

A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file.

All required parameters must be populated in order to send to Azure.

Parameters
  • odatatype (str) – Required. Constant filled by server.

  • audio_language (str) – 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, ‘en-US’, ‘en-GB’, ‘es-ES’, ‘es-MX’, ‘fr-FR’, ‘it-IT’, ‘ja-JP’, ‘pt-BR’, ‘zh-CN’.

  • audio_insights_only (bool) – Whether to only extract audio insights when processing a video file.

class azure.mgmt.media.models.TransportStreamFormat(*, filename_pattern: str = None, output_files=None, **kwargs)[source]

Bases: azure.mgmt.media.models.multi_bitrate_format_py3.MultiBitrateFormat

Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s).

All required parameters must be populated in order to send to Azure.

Parameters
  • filename_pattern (str) – The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - The base name of the input video {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename.

  • odatatype (str) – Required. Constant filled by server.

  • output_files (list[OutputFile]) – The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together .

class azure.mgmt.media.models.VideoOverlay(*, input_label: str = None, start=None, end=None, fade_in_duration=None, fade_out_duration=None, audio_gain_level: float = None, position=None, opacity: float = None, crop_rectangle=None, **kwargs)[source]

Bases: azure.mgmt.media.models.overlay_py3.Overlay

Describes the properties of a video overlay.

All required parameters must be populated in order to send to Azure.

Parameters
  • input_label (str) – The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG or PNG formats, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats.

  • start (timedelta) – The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds in to the input video. If not specified the overlay starts from the beginning of the input video.

  • end (timedelta) – The position in the input video at which the overlay ends. The value should be in ISO 8601 duration format. For example, PT30S to end the overlay at 30 seconds in to the input video. If not specified the overlay will be applied until the end of the input video if inputLoop is true. Else, if inputLoop is false, then overlay will last as long as the duration of the overlay media.

  • fade_in_duration (timedelta) – The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S).

  • fade_out_duration (timedelta) – The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S).

  • audio_gain_level (float) – The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0.

  • odatatype (str) – Required. Constant filled by server.

  • position (Rectangle) – The location in the input video where the overlay is applied.

  • opacity (float) – The opacity of the overlay. This is a value in the range [0 - 1.0]. Default is 1.0 which mean the overlay is opaque.

  • crop_rectangle (Rectangle) – An optional rectangular window used to crop the overlay image or video.

class azure.mgmt.media.models.TransformOutput(*, preset, on_error=None, relative_priority=None, **kwargs)[source]

Bases: msrest.serialization.Model

Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output.

All required parameters must be populated in order to send to Azure.

Parameters
  • on_error (str or OnErrorType) – A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The default is stop. Possible values include: ‘StopProcessingJob’, ‘ContinueJob’

  • relative_priority (str or Priority) – Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal. Possible values include: ‘Low’, ‘Normal’, ‘High’

  • preset (Preset) – Required. Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output.

class azure.mgmt.media.models.Transform(*, outputs, description: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.proxy_resource_py3.ProxyResource

A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • id (str) – Fully qualified resource ID for the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • created (datetime) – The UTC date and time when the Transform was created, in ‘YYYY-MM-DDThh:mm:ssZ’ format.

  • last_modified (datetime) – The UTC date and time when the Transform was last updated, in ‘YYYY-MM-DDThh:mm:ssZ’ format.

Parameters
  • description (str) – An optional verbose description of the Transform.

  • outputs (list[TransformOutput]) – Required. An array of one or more TransformOutputs that the Transform should generate.

class azure.mgmt.media.models.JobInput(*, label: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

Base class for inputs to a Job.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: JobInputClip, JobInputs

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – A label that is assigned to a JobInput, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label ‘xyz’ and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label ‘xyz’.

  • odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.JobInputClip(*, label: str = None, files=None, **kwargs)[source]

Bases: azure.mgmt.media.models.job_input_py3.JobInput

Represents input files for a Job.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: JobInputAsset, JobInputHttp

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – A label that is assigned to a JobInput, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label ‘xyz’ and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label ‘xyz’.

  • odatatype (str) – Required. Constant filled by server.

  • files (list[str]) – List of files. Required for JobInputHttp.

class azure.mgmt.media.models.JobInputs(*, label: str = None, inputs=None, **kwargs)[source]

Bases: azure.mgmt.media.models.job_input_py3.JobInput

Describes a list of of inputs to a Job.

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – A label that is assigned to a JobInput, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label ‘xyz’ and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label ‘xyz’.

  • odatatype (str) – Required. Constant filled by server.

  • inputs (list[JobInput]) – List of inputs to a Job.

class azure.mgmt.media.models.JobInputAsset(*, asset_name: str, label: str = None, files=None, **kwargs)[source]

Bases: azure.mgmt.media.models.job_input_clip_py3.JobInputClip

Represents an Asset for input into a Job.

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – A label that is assigned to a JobInput, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label ‘xyz’ and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label ‘xyz’.

  • odatatype (str) – Required. Constant filled by server.

  • files (list[str]) – List of files. Required for JobInputHttp.

  • asset_name (str) – Required. The name of the input Asset.

class azure.mgmt.media.models.JobInputHttp(*, label: str = None, files=None, base_uri: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.job_input_clip_py3.JobInputClip

Represents HTTPS job input.

All required parameters must be populated in order to send to Azure.

Parameters
  • label (str) – A label that is assigned to a JobInput, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label ‘xyz’ and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label ‘xyz’.

  • odatatype (str) – Required. Constant filled by server.

  • files (list[str]) – List of files. Required for JobInputHttp.

  • base_uri (str) – Base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris.

class azure.mgmt.media.models.JobErrorDetail(**kwargs)[source]

Bases: msrest.serialization.Model

Details of JobOutput errors.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • code (str) – Code describing the error detail.

  • message (str) – A human-readable representation of the error.

class azure.mgmt.media.models.JobError(**kwargs)[source]

Bases: msrest.serialization.Model

Details of JobOutput errors.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • code (str or JobErrorCode) – Error code describing the error. Possible values include: ‘ServiceError’, ‘ServiceTransientError’, ‘DownloadNotAccessible’, ‘DownloadTransientError’, ‘UploadNotAccessible’, ‘UploadTransientError’, ‘ConfigurationUnsupported’, ‘ContentMalformed’, ‘ContentUnsupported’

  • message (str) – A human-readable language-dependent representation of the error.

  • category (str or JobErrorCategory) – Helps with categorization of errors. Possible values include: ‘Service’, ‘Download’, ‘Upload’, ‘Configuration’, ‘Content’

  • retry (str or JobRetry) – Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. Possible values include: ‘DoNotRetry’, ‘MayRetry’

  • details (list[JobErrorDetail]) – An array of details about specific errors that led to this reported error.

class azure.mgmt.media.models.JobOutput(**kwargs)[source]

Bases: msrest.serialization.Model

Describes all the properties of a JobOutput.

You probably want to use the sub-classes and not this class directly. Known sub-classes are: JobOutputAsset

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • error (JobError) – If the JobOutput is in the Error state, it contains the details of the error.

  • state (str or JobState) – Describes the state of the JobOutput. Possible values include: ‘Canceled’, ‘Canceling’, ‘Error’, ‘Finished’, ‘Processing’, ‘Queued’, ‘Scheduled’

  • progress (int) – If the JobOutput is in a Processing state, this contains the job completion percentage. The value is an estimate and not intended to be used to predict job completion times. To determine if the JobOutput is complete, use the State property.

Parameters

odatatype (str) – Required. Constant filled by server.

class azure.mgmt.media.models.JobOutputAsset(*, asset_name: str, **kwargs)[source]

Bases: azure.mgmt.media.models.job_output_py3.JobOutput

Represents an Asset used as a JobOutput.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • error (JobError) – If the JobOutput is in the Error state, it contains the details of the error.

  • state (str or JobState) – Describes the state of the JobOutput. Possible values include: ‘Canceled’, ‘Canceling’, ‘Error’, ‘Finished’, ‘Processing’, ‘Queued’, ‘Scheduled’

  • progress (int) – If the JobOutput is in a Processing state, this contains the job completion percentage. The value is an estimate and not intended to be used to predict job completion times. To determine if the JobOutput is complete, use the State property.

Parameters
  • odatatype (str) – Required. Constant filled by server.

  • asset_name (str) – Required. The name of the output Asset.

class azure.mgmt.media.models.Job(*, input, outputs, description: str = None, priority=None, correlation_data=None, **kwargs)[source]

Bases: azure.mgmt.media.models.proxy_resource_py3.ProxyResource

A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • id (str) – Fully qualified resource ID for the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • created (datetime) – The UTC date and time when the Job was created, in ‘YYYY-MM-DDThh:mm:ssZ’ format.

  • state (str or JobState) – The current state of the job. Possible values include: ‘Canceled’, ‘Canceling’, ‘Error’, ‘Finished’, ‘Processing’, ‘Queued’, ‘Scheduled’

  • last_modified (datetime) – The UTC date and time when the Job was last updated, in ‘YYYY-MM-DDThh:mm:ssZ’ format.

Parameters
  • description (str) – Optional customer supplied description of the Job.

  • input (JobInput) – Required. The inputs for the Job.

  • outputs (list[JobOutput]) – Required. The outputs for the Job.

  • priority (str or Priority) – Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal. Possible values include: ‘Low’, ‘Normal’, ‘High’

  • correlation_data (dict[str, str]) – Customer provided correlation data that will be returned in Job completed events.

class azure.mgmt.media.models.TrackPropertyCondition(*, property, operation, value: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

Class to specify one track property condition.

All required parameters must be populated in order to send to Azure.

Parameters
  • property (str or TrackPropertyType) – Required. Track property type. Possible values include: ‘Unknown’, ‘FourCC’

  • operation (str or TrackPropertyCompareOperation) – Required. Track property condition operation. Possible values include: ‘Unknown’, ‘Equal’

  • value (str) – Track property value

class azure.mgmt.media.models.TrackSelection(*, track_selections=None, **kwargs)[source]

Bases: msrest.serialization.Model

Class to select a track.

Parameters

track_selections (list[TrackPropertyCondition]) – TrackSelections is a track property condition list which can specify track(s)

class azure.mgmt.media.models.DefaultKey(*, label: str = None, policy_name: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

Class to specify properties of default content key for each encryption scheme.

Parameters
  • label (str) – Label can be used to specify Content Key when creating a Streaming Locator

  • policy_name (str) – Policy used by Default Key

class azure.mgmt.media.models.StreamingPolicyContentKey(*, label: str = None, policy_name: str = None, tracks=None, **kwargs)[source]

Bases: msrest.serialization.Model

Class to specify properties of content key.

Parameters
  • label (str) – Label can be used to specify Content Key when creating a Streaming Locator

  • policy_name (str) – Policy used by Content Key

  • tracks (list[TrackSelection]) – Tracks which use this content key

class azure.mgmt.media.models.StreamingPolicyContentKeys(*, default_key=None, key_to_track_mappings=None, **kwargs)[source]

Bases: msrest.serialization.Model

Class to specify properties of all content keys in Streaming Policy.

Parameters
  • default_key (DefaultKey) – Default content key for an encryption scheme

  • key_to_track_mappings (list[StreamingPolicyContentKey]) – Representing tracks needs separate content key

class azure.mgmt.media.models.StreamingPolicyPlayReadyConfiguration(*, custom_license_acquisition_url_template: str = None, play_ready_custom_attributes: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

Class to specify configurations of PlayReady in Streaming Policy.

Parameters
  • custom_license_acquisition_url_template (str) – The template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys.

  • play_ready_custom_attributes (str) – Custom attributes for PlayReady

class azure.mgmt.media.models.StreamingPolicyWidevineConfiguration(*, custom_license_acquisition_url_template: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

Class to specify configurations of Widevine in Streaming Policy.

Parameters

custom_license_acquisition_url_template (str) – The template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys.

class azure.mgmt.media.models.StreamingPolicyFairPlayConfiguration(*, allow_persistent_license: bool, custom_license_acquisition_url_template: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

Class to specify configurations of FairPlay in Streaming Policy.

All required parameters must be populated in order to send to Azure.

Parameters
  • custom_license_acquisition_url_template (str) – The template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys.

  • allow_persistent_license (bool) – Required. All license to be persistent or not

class azure.mgmt.media.models.CbcsDrmConfiguration(*, fair_play=None, play_ready=None, widevine=None, **kwargs)[source]

Bases: msrest.serialization.Model

Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy.

Parameters
class azure.mgmt.media.models.CencDrmConfiguration(*, play_ready=None, widevine=None, **kwargs)[source]

Bases: msrest.serialization.Model

Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy.

Parameters
class azure.mgmt.media.models.EnabledProtocols(*, download: bool, dash: bool, hls: bool, smooth_streaming: bool, **kwargs)[source]

Bases: msrest.serialization.Model

Class to specify which protocols are enabled.

All required parameters must be populated in order to send to Azure.

Parameters
  • download (bool) – Required. Enable Download protocol or not

  • dash (bool) – Required. Enable DASH protocol or not

  • hls (bool) – Required. Enable HLS protocol or not

  • smooth_streaming (bool) – Required. Enable SmoothStreaming protocol or not

class azure.mgmt.media.models.NoEncryption(*, enabled_protocols=None, **kwargs)[source]

Bases: msrest.serialization.Model

Class for NoEncryption scheme.

Parameters

enabled_protocols (EnabledProtocols) – Representing supported protocols

class azure.mgmt.media.models.EnvelopeEncryption(*, enabled_protocols=None, clear_tracks=None, content_keys=None, custom_key_acquisition_url_template: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

Class for EnvelopeEncryption encryption scheme.

Parameters
  • enabled_protocols (EnabledProtocols) – Representing supported protocols

  • clear_tracks (list[TrackSelection]) – Representing which tracks should not be encrypted

  • content_keys (StreamingPolicyContentKeys) – Representing default content key for each encryption scheme and separate content keys for specific tracks

  • custom_key_acquisition_url_template (str) – KeyAcquistionUrlTemplate is used to point to user specified service to delivery content keys

class azure.mgmt.media.models.CommonEncryptionCenc(*, enabled_protocols=None, clear_tracks=None, content_keys=None, drm=None, **kwargs)[source]

Bases: msrest.serialization.Model

Class for envelope encryption scheme.

Parameters
  • enabled_protocols (EnabledProtocols) – Representing supported protocols

  • clear_tracks (list[TrackSelection]) – Representing which tracks should not be encrypted

  • content_keys (StreamingPolicyContentKeys) – Representing default content key for each encryption scheme and separate content keys for specific tracks

  • drm (CencDrmConfiguration) – Configuration of DRMs for CommonEncryptionCenc encryption scheme

class azure.mgmt.media.models.CommonEncryptionCbcs(*, enabled_protocols=None, clear_tracks=None, content_keys=None, drm=None, **kwargs)[source]

Bases: msrest.serialization.Model

Class for CommonEncryptionCbcs encryption scheme.

Parameters
  • enabled_protocols (EnabledProtocols) – Representing supported protocols

  • clear_tracks (list[TrackSelection]) – Representing which tracks should not be encrypted

  • content_keys (StreamingPolicyContentKeys) – Representing default content key for each encryption scheme and separate content keys for specific tracks

  • drm (CbcsDrmConfiguration) – Configuration of DRMs for current encryption scheme

class azure.mgmt.media.models.StreamingPolicy(*, default_content_key_policy_name: str = None, envelope_encryption=None, common_encryption_cenc=None, common_encryption_cbcs=None, no_encryption=None, **kwargs)[source]

Bases: azure.mgmt.media.models.proxy_resource_py3.ProxyResource

A Streaming Policy resource.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – Fully qualified resource ID for the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • created (datetime) – Creation time of Streaming Policy

Parameters
  • default_content_key_policy_name (str) – Default ContentKey used by current Streaming Policy

  • envelope_encryption (EnvelopeEncryption) – Configuration of EnvelopeEncryption

  • common_encryption_cenc (CommonEncryptionCenc) – Configuration of CommonEncryptionCenc

  • common_encryption_cbcs (CommonEncryptionCbcs) – Configuration of CommonEncryptionCbcs

  • no_encryption (NoEncryption) – Configurations of NoEncryption

class azure.mgmt.media.models.StreamingLocatorContentKey(*, id: str, label: str = None, value: str = None, tracks=None, **kwargs)[source]

Bases: msrest.serialization.Model

Class for content key in Streaming Locator.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Parameters
  • id (str) – Required. ID of Content Key

  • label (str) – Label of Content Key

  • value (str) – Value of of Content Key

  • tracks (list[TrackSelection]) – Tracks which use this Content Key

Variables
  • type (str or StreamingLocatorContentKeyType) – Encryption type of Content Key. Possible values include: ‘CommonEncryptionCenc’, ‘CommonEncryptionCbcs’, ‘EnvelopeEncryption’

  • policy_name (str) – ContentKeyPolicy used by Content Key

class azure.mgmt.media.models.StreamingPath(*, streaming_protocol, encryption_scheme, paths=None, **kwargs)[source]

Bases: msrest.serialization.Model

Class of paths for streaming.

All required parameters must be populated in order to send to Azure.

Parameters
  • streaming_protocol (str or StreamingPolicyStreamingProtocol) – Required. Streaming protocol. Possible values include: ‘Hls’, ‘Dash’, ‘SmoothStreaming’, ‘Download’

  • encryption_scheme (str or EncryptionScheme) – Required. Encryption scheme. Possible values include: ‘NoEncryption’, ‘EnvelopeEncryption’, ‘CommonEncryptionCenc’, ‘CommonEncryptionCbcs’

  • paths (list[str]) – Streaming paths for each protocol and encryptionScheme pair

class azure.mgmt.media.models.ListContentKeysResponse(*, content_keys=None, **kwargs)[source]

Bases: msrest.serialization.Model

Class of response for listContentKeys action.

Parameters

content_keys (list[StreamingLocatorContentKey]) – ContentKeys used by current Streaming Locator

class azure.mgmt.media.models.ListPathsResponse(*, streaming_paths=None, download_paths=None, **kwargs)[source]

Bases: msrest.serialization.Model

Class of response for listPaths action.

Parameters
  • streaming_paths (list[StreamingPath]) – Streaming Paths supported by current Streaming Locator

  • download_paths (list[str]) – Download Paths supported by current Streaming Locator

class azure.mgmt.media.models.StreamingLocator(*, asset_name: str, streaming_policy_name: str, start_time=None, end_time=None, streaming_locator_id: str = None, default_content_key_policy_name: str = None, content_keys=None, alternative_media_id: str = None, **kwargs)[source]

Bases: azure.mgmt.media.models.proxy_resource_py3.ProxyResource

A Streaming Locator resource.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • id (str) – Fully qualified resource ID for the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • created (datetime) – Creation time of Streaming Locator

Parameters
  • asset_name (str) – Required. Asset Name

  • start_time (datetime) – StartTime of Streaming Locator

  • end_time (datetime) – EndTime of Streaming Locator

  • streaming_locator_id (str) – StreamingLocatorId of Streaming Locator

  • streaming_policy_name (str) – Required. Streaming policy name used by this streaming locator. Either specify the name of streaming policy you created or use one of the predefined streaming polices. The predefined streaming policies available are: ‘Predefined_DownloadOnly’, ‘Predefined_ClearStreamingOnly’, ‘Predefined_DownloadAndClearStreaming’, ‘Predefined_ClearKey’, ‘Predefined_SecureStreaming’ and ‘Predefined_SecureStreamingWithFairPlay’

  • default_content_key_policy_name (str) – Default ContentKeyPolicy used by this Streaming Locator

  • content_keys (list[StreamingLocatorContentKey]) – ContentKeys used by this Streaming Locator

  • alternative_media_id (str) – An Alternative Media Identifier associated with the StreamingLocator. This identifier can be used to distinguish different StreamingLocators for the same Asset for authorization purposes in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field.

class azure.mgmt.media.models.Hls(*, fragments_per_ts_segment: int = None, **kwargs)[source]

Bases: msrest.serialization.Model

The HLS configuration.

Parameters

fragments_per_ts_segment (int) – The amount of fragments per HTTP Live Streaming (HLS) segment.

class azure.mgmt.media.models.LiveOutput(*, asset_name: str, archive_window_length, description: str = None, manifest_name: str = None, hls=None, output_snap_time: int = None, **kwargs)[source]

Bases: azure.mgmt.media.models.proxy_resource_py3.ProxyResource

The Live Output.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • id (str) – Fully qualified resource ID for the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • created (datetime) – The exact time the Live Output was created.

  • last_modified (datetime) – The exact time the Live Output was last modified.

  • provisioning_state (str) – The provisioning state of the Live Output.

  • resource_state (str or LiveOutputResourceState) – The resource state of the Live Output. Possible values include: ‘Creating’, ‘Running’, ‘Deleting’

Parameters
  • description (str) – The description of the Live Output.

  • asset_name (str) – Required. The asset name.

  • archive_window_length (timedelta) – Required. ISO 8601 timespan duration of the archive window length. This is duration that customer want to retain the recorded content.

  • manifest_name (str) – The manifest file name.

  • hls (Hls) – The HLS configuration.

  • output_snap_time (long) – The output snapshot time.

class azure.mgmt.media.models.LiveEventEndpoint(*, protocol: str = None, url: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The Live Event endpoint.

Parameters
  • protocol (str) – The endpoint protocol.

  • url (str) – The endpoint URL.

class azure.mgmt.media.models.LiveEventInput(*, streaming_protocol, key_frame_interval_duration: str = None, access_token: str = None, endpoints=None, **kwargs)[source]

Bases: msrest.serialization.Model

The Live Event input.

All required parameters must be populated in order to send to Azure.

Parameters
  • streaming_protocol (str or LiveEventInputProtocol) – Required. The streaming protocol for the Live Event. Possible values include: ‘FragmentedMP4’, ‘RTMP’

  • key_frame_interval_duration (str) – ISO 8601 timespan duration of the key frame interval duration.

  • access_token (str) – The access token.

  • endpoints (list[LiveEventEndpoint]) – The input endpoints for the Live Event.

class azure.mgmt.media.models.IPRange(*, name: str = None, address: str = None, subnet_prefix_length: int = None, **kwargs)[source]

Bases: msrest.serialization.Model

The IP address range in the CIDR scheme.

Parameters
  • name (str) – The friendly name for the IP address range.

  • address (str) – The IP address.

  • subnet_prefix_length (int) – The subnet mask prefix length (see CIDR notation).

class azure.mgmt.media.models.IPAccessControl(*, allow=None, **kwargs)[source]

Bases: msrest.serialization.Model

The IP access control.

Parameters

allow (list[IPRange]) – The IP allow list.

class azure.mgmt.media.models.LiveEventPreviewAccessControl(*, ip=None, **kwargs)[source]

Bases: msrest.serialization.Model

The IP access control for Live Event preview.

Parameters

ip (IPAccessControl) – The IP access control properties.

class azure.mgmt.media.models.LiveEventPreview(*, endpoints=None, access_control=None, preview_locator: str = None, streaming_policy_name: str = None, alternative_media_id: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The Live Event preview.

Parameters
  • endpoints (list[LiveEventEndpoint]) – The endpoints for preview.

  • access_control (LiveEventPreviewAccessControl) – The access control for LiveEvent preview.

  • preview_locator (str) – The preview locator Guid.

  • streaming_policy_name (str) – The name of streaming policy used for LiveEvent preview

  • alternative_media_id (str) – An Alternative Media Identifier associated with the preview url. This identifier can be used to distinguish the preview of different live events for authorization purposes in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field.

class azure.mgmt.media.models.LiveEventEncoding(*, encoding_type=None, preset_name: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The Live Event encoding.

Parameters
  • encoding_type (str or LiveEventEncodingType) – The encoding type for Live Event. Possible values include: ‘None’, ‘Basic’

  • preset_name (str) – The encoding preset name.

class azure.mgmt.media.models.CrossSiteAccessPolicies(*, client_access_policy: str = None, cross_domain_policy: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The client access policy.

Parameters
  • client_access_policy (str) – The content of clientaccesspolicy.xml used by Silverlight.

  • cross_domain_policy (str) – The content of crossdomain.xml used by Silverlight.

class azure.mgmt.media.models.LiveEventActionInput(*, remove_outputs_on_stop: bool = None, **kwargs)[source]

Bases: msrest.serialization.Model

The LiveEvent action input parameter definition.

Parameters

remove_outputs_on_stop (bool) – The flag indicates if remove LiveOutputs on Stop.

class azure.mgmt.media.models.LiveEvent(*, input, tags=None, location: str = None, description: str = None, preview=None, encoding=None, cross_site_access_policies=None, vanity_url: bool = None, stream_options=None, **kwargs)[source]

Bases: azure.mgmt.media.models.tracked_resource_py3.TrackedResource

The Live Event.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Variables
  • id (str) – Fully qualified resource ID for the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • provisioning_state (str) – The provisioning state of the Live Event.

  • resource_state (str or LiveEventResourceState) – The resource state of the Live Event. Possible values include: ‘Stopped’, ‘Starting’, ‘Running’, ‘Stopping’, ‘Deleting’

  • created (datetime) – The exact time the Live Event was created.

  • last_modified (datetime) – The exact time the Live Event was last modified.

Parameters
  • tags (dict[str, str]) – Resource tags.

  • location (str) – The Azure Region of the resource.

  • description (str) – The Live Event description.

  • input (LiveEventInput) – Required. The Live Event input.

  • preview (LiveEventPreview) – The Live Event preview.

  • encoding (LiveEventEncoding) – The Live Event encoding.

  • cross_site_access_policies (CrossSiteAccessPolicies) – The Live Event access policies.

  • vanity_url (bool) – The Live Event vanity URL flag.

  • stream_options (list[str or StreamOptionsFlag]) – The stream options.

class azure.mgmt.media.models.AkamaiSignatureHeaderAuthenticationKey(*, identifier: str = None, base64_key: str = None, expiration=None, **kwargs)[source]

Bases: msrest.serialization.Model

Akamai Signature Header authentication key.

Parameters
  • identifier (str) – identifier of the key

  • base64_key (str) – authentication key

  • expiration (datetime) – The exact time the authentication key.

class azure.mgmt.media.models.AkamaiAccessControl(*, akamai_signature_header_authentication_key_list=None, **kwargs)[source]

Bases: msrest.serialization.Model

Akamai access control.

Parameters

akamai_signature_header_authentication_key_list (list[AkamaiSignatureHeaderAuthenticationKey]) – authentication key list

class azure.mgmt.media.models.StreamingEndpointAccessControl(*, akamai=None, ip=None, **kwargs)[source]

Bases: msrest.serialization.Model

StreamingEndpoint access control definition.

Parameters
class azure.mgmt.media.models.StreamingEntityScaleUnit(*, scale_unit: int = None, **kwargs)[source]

Bases: msrest.serialization.Model

scale units definition.

Parameters

scale_unit (int) – ScaleUnit. The scale unit number of the StreamingEndpoint.

class azure.mgmt.media.models.StreamingEndpoint(*, tags=None, location: str = None, description: str = None, scale_units: int = None, availability_set_name: str = None, access_control=None, max_cache_age: int = None, custom_host_names=None, cdn_enabled: bool = None, cdn_provider: str = None, cdn_profile: str = None, cross_site_access_policies=None, **kwargs)[source]

Bases: azure.mgmt.media.models.tracked_resource_py3.TrackedResource

The StreamingEndpoint.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – Fully qualified resource ID for the resource.

  • name (str) – The name of the resource.

  • type (str) – The type of the resource.

  • host_name (str) – The StreamingEndpoint host name.

  • provisioning_state (str) – The provisioning state of the StreamingEndpoint.

  • resource_state (str or StreamingEndpointResourceState) – The resource state of the StreamingEndpoint. Possible values include: ‘Stopped’, ‘Starting’, ‘Running’, ‘Stopping’, ‘Deleting’, ‘Scaling’

  • free_trial_end_time (datetime) – The free trial expiration time.

  • created (datetime) – The exact time the StreamingEndpoint was created.

  • last_modified (datetime) – The exact time the StreamingEndpoint was last modified.

Parameters
  • tags (dict[str, str]) – Resource tags.

  • location (str) – The Azure Region of the resource.

  • description (str) – The StreamingEndpoint description.

  • scale_units (int) – The number of scale units.

  • availability_set_name (str) – AvailabilitySet name

  • access_control (StreamingEndpointAccessControl) – The access control definition of the StreamingEndpoint.

  • max_cache_age (long) – Max cache age

  • custom_host_names (list[str]) – The custom host names of the StreamingEndpoint

  • cdn_enabled (bool) – The CDN enabled flag.

  • cdn_provider (str) – The CDN provider name.

  • cdn_profile (str) – The CDN profile name.

  • cross_site_access_policies (CrossSiteAccessPolicies) – The StreamingEndpoint access policies.

class azure.mgmt.media.models.OperationPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Operation object

class azure.mgmt.media.models.MediaServicePaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of MediaService object

class azure.mgmt.media.models.SubscriptionMediaServicePaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of SubscriptionMediaService object

class azure.mgmt.media.models.AssetPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Asset object

class azure.mgmt.media.models.ContentKeyPolicyPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of ContentKeyPolicy object

class azure.mgmt.media.models.TransformPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Transform object

class azure.mgmt.media.models.JobPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Job object

class azure.mgmt.media.models.StreamingPolicyPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of StreamingPolicy object

class azure.mgmt.media.models.StreamingLocatorPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of StreamingLocator object

class azure.mgmt.media.models.LiveEventPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of LiveEvent object

class azure.mgmt.media.models.LiveOutputPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of LiveOutput object

class azure.mgmt.media.models.StreamingEndpointPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of StreamingEndpoint object

class azure.mgmt.media.models.StorageAccountType[source]

Bases: str, enum.Enum

An enumeration.

primary = 'Primary'

The primary storage account for the Media Services account.

secondary = 'Secondary'

A secondary storage account for the Media Services account.

class azure.mgmt.media.models.AssetStorageEncryptionFormat[source]

Bases: str, enum.Enum

An enumeration.

media_storage_client_encryption = 'MediaStorageClientEncryption'

The Asset is encrypted with Media Services client-side encryption.

none = 'None'

The Asset does not use client-side storage encryption (this is the only allowed value for new Assets).

class azure.mgmt.media.models.AssetContainerPermission[source]

Bases: str, enum.Enum

An enumeration.

read = 'Read'

The SAS URL will allow read access to the container.

read_write = 'ReadWrite'

The SAS URL will allow read and write access to the container.

read_write_delete = 'ReadWriteDelete'

The SAS URL will allow read, write and delete access to the container.

class azure.mgmt.media.models.ContentKeyPolicyPlayReadyUnknownOutputPassingOption[source]

Bases: str, enum.Enum

An enumeration.

allowed = 'Allowed'

Passing the video portion of protected content to an Unknown Output is allowed.

allowed_with_video_constriction = 'AllowedWithVideoConstriction'

Passing the video portion of protected content to an Unknown Output is allowed but with constrained resolution.

not_allowed = 'NotAllowed'

Passing the video portion of protected content to an Unknown Output is not allowed.

unknown = 'Unknown'

Represents a ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version.

class azure.mgmt.media.models.ContentKeyPolicyPlayReadyLicenseType[source]

Bases: str, enum.Enum

An enumeration.

non_persistent = 'NonPersistent'

Non persistent license.

persistent = 'Persistent'

Persistent license. Allows offline playback.

unknown = 'Unknown'

Represents a ContentKeyPolicyPlayReadyLicenseType that is unavailable in current API version.

class azure.mgmt.media.models.ContentKeyPolicyPlayReadyContentType[source]

Bases: str, enum.Enum

An enumeration.

ultra_violet_download = 'UltraVioletDownload'

Ultraviolet download content type.

ultra_violet_streaming = 'UltraVioletStreaming'

Ultraviolet streaming content type.

unknown = 'Unknown'

Represents a ContentKeyPolicyPlayReadyContentType that is unavailable in current API version.

unspecified = 'Unspecified'

Unspecified content type.

class azure.mgmt.media.models.ContentKeyPolicyRestrictionTokenType[source]

Bases: str, enum.Enum

An enumeration.

jwt = 'Jwt'

JSON Web Token.

swt = 'Swt'

Simple Web Token.

unknown = 'Unknown'

Represents a ContentKeyPolicyRestrictionTokenType that is unavailable in current API version.

class azure.mgmt.media.models.ContentKeyPolicyFairPlayRentalAndLeaseKeyType[source]

Bases: str, enum.Enum

An enumeration.

persistent_limited = 'PersistentLimited'

Content key can be persisted and the valid duration is limited by the Rental Duration value

persistent_unlimited = 'PersistentUnlimited'

Content key can be persisted with an unlimited duration

undefined = 'Undefined'

Key duration is not specified.

unknown = 'Unknown'

Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version.

class azure.mgmt.media.models.AacAudioProfile[source]

Bases: str, enum.Enum

An enumeration.

aac_lc = 'AacLc'

Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC).

he_aac_v1 = 'HeAacV1'

Specifies that the output audio is to be encoded into HE-AAC v1 profile.

he_aac_v2 = 'HeAacV2'

Specifies that the output audio is to be encoded into HE-AAC v2 profile.

class azure.mgmt.media.models.StretchMode[source]

Bases: str, enum.Enum

An enumeration.

auto_fit = 'AutoFit'

Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right.

auto_size = 'AutoSize'

Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9.

none = 'None'

Strictly respect the output resolution without considering the pixel aspect ratio or display aspect ratio of the input video.

class azure.mgmt.media.models.DeinterlaceParity[source]

Bases: str, enum.Enum

An enumeration.

auto = 'Auto'

Automatically detect the order of fields

bottom_field_first = 'BottomFieldFirst'

Apply bottom field first processing of input video.

top_field_first = 'TopFieldFirst'

Apply top field first processing of input video.

class azure.mgmt.media.models.DeinterlaceMode[source]

Bases: str, enum.Enum

An enumeration.

auto_pixel_adaptive = 'AutoPixelAdaptive'

Apply automatic pixel adaptive de-interlacing on each frame in the input video.

off = 'Off'

Disables de-interlacing of the source video.

class azure.mgmt.media.models.Rotation[source]

Bases: str, enum.Enum

An enumeration.

auto = 'Auto'

Automatically detect and rotate as needed.

none = 'None'

Do not rotate the video. If the output format supports it, any metadata about rotation is kept intact.

rotate0 = 'Rotate0'

Do not rotate the video but remove any metadata about the rotation.

rotate180 = 'Rotate180'

Rotate 180 degrees clockwise.

rotate270 = 'Rotate270'

Rotate 270 degrees clockwise.

rotate90 = 'Rotate90'

Rotate 90 degrees clockwise.

class azure.mgmt.media.models.H264VideoProfile[source]

Bases: str, enum.Enum

An enumeration.

auto = 'Auto'

Tells the encoder to automatically determine the appropriate H.264 profile.

baseline = 'Baseline'

Baseline profile

high = 'High'

High profile.

high422 = 'High422'

High 4:2:2 profile.

high444 = 'High444'

High 4:4:4 predictive profile.

main = 'Main'

Main profile

class azure.mgmt.media.models.EntropyMode[source]

Bases: str, enum.Enum

An enumeration.

cabac = 'Cabac'

Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding.

cavlc = 'Cavlc'

Context Adaptive Variable Length Coder (CAVLC) entropy encoding.

class azure.mgmt.media.models.H264Complexity[source]

Bases: str, enum.Enum

An enumeration.

balanced = 'Balanced'

Tells the encoder to use settings that achieve a balance between speed and quality.

quality = 'Quality'

Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time.

speed = 'Speed'

Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time.

class azure.mgmt.media.models.EncoderNamedPreset[source]

Bases: str, enum.Enum

An enumeration.

aac_good_quality_audio = 'AACGoodQualityAudio'

Produces a single MP4 file containing only stereo audio encoded at 192 kbps.

adaptive_streaming = 'AdaptiveStreaming'

Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset will never exceed the input resolution and bitrate. For example, if the input is 720p at 3 Mbps, output will remain 720p at best, and will start at rates lower than 3 Mbps. The output will will have video and audio in separate MP4 files, which is optimal for adaptive streaming.

h264_multiple_bitrate1080p = '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.

h264_multiple_bitrate720p = 'H264MultipleBitrate720p'

Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 360p.

h264_multiple_bitrate_sd = 'H264MultipleBitrateSD'

Produces a set of 5 GOP-aligned MP4 files, ranging from 1600kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 360p.

class azure.mgmt.media.models.OnErrorType[source]

Bases: str, enum.Enum

An enumeration.

continue_job = 'ContinueJob'

Tells the service that if this TransformOutput fails, then allow any other TransformOutput to continue.

stop_processing_job = 'StopProcessingJob'

Tells the service that if this TransformOutput fails, then any other incomplete TransformOutputs can be stopped.

class azure.mgmt.media.models.Priority[source]

Bases: str, enum.Enum

An enumeration.

high = 'High'

Used for TransformOutputs that should take precedence over others.

low = 'Low'

Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs.

normal = 'Normal'

Used for TransformOutputs that can be generated at Normal priority.

class azure.mgmt.media.models.JobErrorCode[source]

Bases: str, enum.Enum

An enumeration.

configuration_unsupported = 'ConfigurationUnsupported'

There was a problem with the combination of input files and the configuration settings applied, fix the configuration settings and retry with the same input, or change input to match the configuration.

content_malformed = 'ContentMalformed'

There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files.

content_unsupported = 'ContentUnsupported'

There was a problem with the format of the input (not valid media file, or an unsupported file/codec), check the validity of the input files.

download_not_accessible = 'DownloadNotAccessible'

While trying to download the input files, the files were not accessible, please check the availability of the source.

download_transient_error = 'DownloadTransientError'

While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source.

service_error = 'ServiceError'

Fatal service error, please contact support.

service_transient_error = 'ServiceTransientError'

Transient error, please retry, if retry is unsuccessful, please contact support.

upload_not_accessible = 'UploadNotAccessible'

While trying to upload the output files, the destination was not reachable, please check the availability of the destination.

upload_transient_error = 'UploadTransientError'

While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination.

class azure.mgmt.media.models.JobErrorCategory[source]

Bases: str, enum.Enum

An enumeration.

configuration = 'Configuration'

The error is configuration related.

content = 'Content'

The error is related to data in the input files.

download = 'Download'

The error is download related.

service = 'Service'

The error is service related.

upload = 'Upload'

The error is upload related.

class azure.mgmt.media.models.JobRetry[source]

Bases: str, enum.Enum

An enumeration.

do_not_retry = 'DoNotRetry'

Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected.

may_retry = 'MayRetry'

Issue may be resolved after waiting for a period of time and resubmitting the same Job.

class azure.mgmt.media.models.JobState[source]

Bases: str, enum.Enum

An enumeration.

canceled = 'Canceled'

The job was canceled. This is a final state for the job.

canceling = 'Canceling'

The job is in the process of being canceled. This is a transient state for the job.

error = 'Error'

The job has encountered an error. This is a final state for the job.

finished = 'Finished'

The job is finished. This is a final state for the job.

processing = 'Processing'

The job is processing. This is a transient state for the job.

queued = 'Queued'

The job is in a queued state, waiting for resources to become available. This is a transient state.

scheduled = 'Scheduled'

The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states.

class azure.mgmt.media.models.TrackPropertyType[source]

Bases: str, enum.Enum

An enumeration.

four_cc = 'FourCC'

Track FourCC

unknown = 'Unknown'

Unknown track property

class azure.mgmt.media.models.TrackPropertyCompareOperation[source]

Bases: str, enum.Enum

An enumeration.

equal = 'Equal'

Equal operation

unknown = 'Unknown'

Unknown track property compare operation

class azure.mgmt.media.models.StreamingLocatorContentKeyType[source]

Bases: str, enum.Enum

An enumeration.

common_encryption_cbcs = 'CommonEncryptionCbcs'

Common Encryption using CBCS

common_encryption_cenc = 'CommonEncryptionCenc'

Common Encryption using CENC

envelope_encryption = 'EnvelopeEncryption'

Envelope Encryption

class azure.mgmt.media.models.StreamingPolicyStreamingProtocol[source]

Bases: str, enum.Enum

An enumeration.

dash = 'Dash'

DASH protocol

download = 'Download'

Download protocol

hls = 'Hls'

HLS protocol

smooth_streaming = 'SmoothStreaming'

SmoothStreaming protocol

class azure.mgmt.media.models.EncryptionScheme[source]

Bases: str, enum.Enum

An enumeration.

common_encryption_cbcs = 'CommonEncryptionCbcs'

CommonEncryptionCbcs scheme

common_encryption_cenc = 'CommonEncryptionCenc'

CommonEncryptionCenc scheme

envelope_encryption = 'EnvelopeEncryption'

EnvelopeEncryption scheme

no_encryption = 'NoEncryption'

NoEncryption scheme

class azure.mgmt.media.models.LiveOutputResourceState[source]

Bases: str, enum.Enum

An enumeration.

creating = 'Creating'
deleting = 'Deleting'
running = 'Running'
class azure.mgmt.media.models.LiveEventInputProtocol[source]

Bases: str, enum.Enum

An enumeration.

fragmented_mp4 = 'FragmentedMP4'
rtmp = 'RTMP'
class azure.mgmt.media.models.LiveEventEncodingType[source]

Bases: str, enum.Enum

An enumeration.

basic = 'Basic'
none = 'None'
class azure.mgmt.media.models.LiveEventResourceState[source]

Bases: str, enum.Enum

An enumeration.

deleting = 'Deleting'
running = 'Running'
starting = 'Starting'
stopped = 'Stopped'
stopping = 'Stopping'
class azure.mgmt.media.models.StreamOptionsFlag[source]

Bases: str, enum.Enum

An enumeration.

default = 'Default'
low_latency = 'LowLatency'
class azure.mgmt.media.models.StreamingEndpointResourceState[source]

Bases: str, enum.Enum

An enumeration.

deleting = 'Deleting'
running = 'Running'
scaling = 'Scaling'
starting = 'Starting'
stopped = 'Stopped'
stopping = 'Stopping'