none
How integrate azure media services with blob storage? RRS feed

  • Question

  • I need to upload lots of content over blob storage which contains different types of files.

    Now my problem is that files contains lots of videos also.

    I want to way by which i can integrate azure media services with blob storage so that i can stream that video.

    So probably i don't want to upload my videos on azure media services storage because i want all my content to be at one place which is blob storage.

    Is there any way to achieve this?


    Thanks,
    Rajesh Khunt
    Blog : http://programmersgeek.wordpress.com/
    Twitter : http://twitter.com/#!/r_rajeshkhunt
    Linkedin : http://in.linkedin.com/in/rajeshkhunt

    Thursday, February 12, 2015 2:30 PM

Answers

  • Hi Rajesh,

    Azure media service recognize your media files, only if it is a asset. So you need to copy your blob to new asset. You need to create  a new empty asset, set access policy, create locator to it. Then you need to copy you blob to this new container(asset). Basically i don't think they duplicate your blob content, but they use some pointer.

    Once asset is copied you need to create fileinfo for the asset and the use presets to encode your media files.


    Mohanraj

    Wednesday, February 18, 2015 7:52 AM

All replies

  • Hi Rajesh

    Every Media Services account needs a blob storage account associated with it. You can choose an existing blob storage account for that purpose. In order for Media Services to work with your videos you need to create an asset using the Media Services APIs. That call results in the creation of a container which has the name in the following format asset-<AssetId>. The actual video files need to go as blobs within this container but these files need to be known to Media Services and you can do so by adding AssetFiles to the asset using the Media Services APIs. Once you do that the asset is well known to Media Services and you can stream it.

    Friday, February 13, 2015 6:39 PM
  • I can able to create a asset container and copy my blob. But i don't know how to create _manifest.xml and _metadata.xml file using php sdk.

    How can i create a assetfile for a copied blob to newly created asset container?


    Mohanraj

    Saturday, February 14, 2015 1:59 PM
  • If i need to create asset using the Media Services APIs, it means i need to copy / upload video from my blob storage to Media Services Asset right?

    If so then this is duplication of storage.

    I want my all files in single location only, that is blob storage. Somehow i need to storage to be in contact with Media Services and explore endpoints to stream videos.

    If this possible then please provide some guideline or links you have.


    Thanks,
    Rajesh Khunt
    Blog : http://programmersgeek.wordpress.com/
    Twitter : http://twitter.com/#!/r_rajeshkhunt
    Linkedin : http://in.linkedin.com/in/rajeshkhunt

    Wednesday, February 18, 2015 6:08 AM
  • Hi Rajesh,

    Azure media service recognize your media files, only if it is a asset. So you need to copy your blob to new asset. You need to create  a new empty asset, set access policy, create locator to it. Then you need to copy you blob to this new container(asset). Basically i don't think they duplicate your blob content, but they use some pointer.

    Once asset is copied you need to create fileinfo for the asset and the use presets to encode your media files.


    Mohanraj

    Wednesday, February 18, 2015 7:52 AM