CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-azure-mgmt-media

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

1.09x

Quality

Pending

Does it follow best practices?

Impact

83%

1.09x

Average score across 10 eval scenarios

Overview
Eval results
Files

task.mdevals/scenario-10/

Video Transcoding Service

A Python service that transcodes video files using Azure Media Services encoding capabilities.

Capabilities

Transform Creation

Creates an encoding transform with adaptive streaming preset for multi-bitrate output.

  • Creates a transform named "AdaptiveStreamingTransform" with the AdaptiveStreaming built-in preset @test
  • The transform uses the standard encoder preset type @test

Job Submission

Submits encoding jobs to process video assets.

  • Submits a job with an input asset and output asset to the transform @test
  • The job uses JobInputAsset for the input configuration @test
  • The job uses JobOutputAsset for the output configuration @test

Job Status Monitoring

Monitors the progress and completion status of encoding jobs.

  • Retrieves the current state of a submitted job @test
  • Correctly identifies when a job reaches Finished state @test

Implementation

@generates

API

from azure.mgmt.media import AzureMediaServices
from azure.mgmt.media.models import Transform, Job

class TranscodingService:
    """Service for managing video transcoding operations using Azure Media Services."""

    def __init__(self, client: AzureMediaServices, resource_group: str, account_name: str):
        """
        Initialize the transcoding service.

        Args:
            client: Azure Media Services client instance
            resource_group: Azure resource group name
            account_name: Media Services account name
        """
        pass

    def create_adaptive_streaming_transform(self, transform_name: str) -> Transform:
        """
        Create a transform with adaptive streaming preset.

        Args:
            transform_name: Name for the transform

        Returns:
            The created Transform object
        """
        pass

    def submit_encoding_job(self, transform_name: str, job_name: str,
                           input_asset_name: str, output_asset_name: str) -> Job:
        """
        Submit an encoding job to process a video asset.

        Args:
            transform_name: Name of the transform to use
            job_name: Name for the job
            input_asset_name: Name of the input asset
            output_asset_name: Name of the output asset

        Returns:
            The created Job object
        """
        pass

    def get_job_status(self, transform_name: str, job_name: str) -> str:
        """
        Get the current status of an encoding job.

        Args:
            transform_name: Name of the transform
            job_name: Name of the job

        Returns:
            The job state as a string (e.g., "Queued", "Processing", "Finished", "Error")
        """
        pass

Dependencies { .dependencies }

azure-mgmt-media { .dependency }

Provides Azure Media Services management capabilities for video encoding and transformation.

@satisfied-by

azure-identity { .dependency }

Provides authentication support for Azure services.

@satisfied-by

Install with Tessl CLI

npx tessl i tessl/pypi-azure-mgmt-media

tile.json