Microsoft Azure Media Services Client Library for Python - A management library for Azure Media Services that provides programmatic access to media processing and streaming capabilities in the cloud.
83
Quality
Pending
Does it follow best practices?
Impact
83%
1.09xAverage score across 10 eval scenarios
You need to implement a video encoding transform configuration that processes uploaded video content into an adaptive bitrate (ABR) streaming format. The transform should create multiple quality layers suitable for adaptive streaming delivery across various network conditions and device capabilities.
Your implementation must:
Create a transform that encodes video into H.264 format with three distinct quality layers:
Configure audio encoding with AAC codec at 128 kbps for all output layers
Set the video complexity to "Balanced" to optimize encoding speed and quality
Use constant frame rate (CFR) synchronization mode for consistent playback
Configure the output format as MP4 with appropriate filename patterns that include the layer label
The transform should accept a single video asset as input and produce a single multi-layer output asset
Create a Python script encode_transform.py that implements a function:
def create_multi_bitrate_transform(transform_name: str, description: str = "Multi-bitrate encoding transform"):
"""
Creates an encoding transform with multiple quality layers.
Args:
transform_name: Name for the transform
description: Description of what the transform does
Returns:
A transform configuration object suitable for creating transforms
"""
passThe function should return a properly configured transform object (not create it in Azure - just return the configuration).
Input:
transform = create_multi_bitrate_transform("TestTransform")Expected Output:
Input:
transform = create_multi_bitrate_transform("QualityTest")Expected Output:
Input:
transform = create_multi_bitrate_transform("AudioTest")Expected Output:
Create tests in test_encode_transform.py.
Azure Media Services management library providing video encoding and streaming capabilities.
Install with Tessl CLI
npx tessl i tessl/pypi-azure-mgmt-mediadocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10