Giter VIP home page Giter VIP logo

generateaccountismcs's Introduction

GenerateAccountISMCs

This application generates ISMC files for each of your streaming assets if none exist.

This application was written in C#.NET. It uses the Azure Media Services v3 API.

When using Azure Media Services to deliver video through a streaming endpoint the video is dynamically packaged into whatever streaming protocol is requested (HLS, MPEG-DASH, Smooth Streaming). If you choose not to encode your video in Azure Media Services and instead encode the video with some other encoder you will need to create an ISM file to be able to stream. The ISM is a SMIL based XML file that effectively maps all of the different bitrate renditions of the video to the file names of those different bitrates. This allows clients to make RESTful requests for different bitrates of video.

Another manifest file is the ISMC. This is considered the client manifest. This is what is delivered to the client when it requests the manifest URL (yourvideo.ism/manifest) even though the client request the ISM. If no ISMC file exists the Media Services Streaming Endpoint will have to create one at the time of the client request. The Streaming Endpoint only stores this created ISMC in memory. It does not write it back to the asset. To create the ISMC the streaming endpoint must read all of the MP4 files listed in the ISM. This is an expensive read operation. Additionally multiple different virtual machines can be used to back a single Streaming Endpoint. Finally eventually the ISMC will be removed from memory if there are not reqular requests for the manifest. Due to these factors, not having an ISMC can create extra load on the Streaming Endpoint. This application was created to write a perminent ISMC to the asset so that customer encoded content created without an ISMC will not impact Streaming Endpoint performance.

This application uses both the Azure Storage API as well as the Media Services v3 API. The workflow is basically:

  1. Start the streaming endpoint if it is not running.
  2. Setup a loop to go through all of the published streaming locators.
  3. Check to see if a .ismc file exists.
  4. If not, request the Smooth Streaming manifest for this asset.
  5. Parse the resulting manifest and save it back to the asset.
  6. Update the ISM with the ISMC filename.

generateaccountismcs's People

Contributors

dbristolms avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.