Create a Media Services account in your subscription if don't have it already.
Create a Service Principal and save the password. It will be needed in step #4. To do so, go to the API tab in the account (follow this article)
To enable streaming, go to the Azure portal, select the Azure Media Services account which has been created, and start the default streaming endpoint.
If not already done : fork the repo, deploy Azure Functions and select the "media-functions-for-logic-app" Project (IMPORTANT!)
Follow the guidelines in the git tutorial for details on how to fork the project and use Git properly with this project.
Note : if you never provided your GitHub account in the Azure portal before, the continuous integration will probably fail and you won't see the functions. In that case, you need to setup it manually. Go to your azure functions deployment / Functions app settings / Configure continuous integration. Select GitHub as a source and configure it to use your fork.
This template creates a Logic app that listens to an onedrive folder and will copy it to an Azure Media Services asset, triggers an encoding job, publish the output asset and send an email when the process is complete.
See the detailed view of the logic app.
It is recommended to use the same resource group for the functions and the logic app. The functions and Logic App must be deployed in the same region. Please specify the name of the storage account used by Media Services.
When deployed, go to the Logic App Designer and fix the connections (Onedrive, Outlook.com...). Make sure to (re)select the OneDrive folder that you want to use for the ingest.
This is the same workflow that the first logic app with two main differences:
- the source is monitored using blob trigger (new file coming to an Azure Storage container)
- the asset creation / blob copy is done through Azure functions to workaround the limitation of 50 MB. These functions have been tested with 1.8 GB files.
This template creates a Logic app which
- monitors a container in Azure Storage (blob trigger),
- copies new file to an Azure Media Services asset,
- triggers an encoding job,
- converts the English audio to text (using Media Indexer v1),
- translates the English subtitles to French (using Bing translator),
- copies back the French subtitles to the subtitles asset,
- publishes the output assets,
- generates a short playback URL (using bitlink)
- sends an email with Outlook when the process is complete or if the job failed. In the email, the playback link includes the two subtitles.
This template creates a Logic app which
- monitors a container in Azure Storage (blob trigger) for new JSON semaphore files,
- See an example of semaphore file below
- imports all the video files declared in the semaphore file to a single asset,
- Note: it waits for all the video files to arrive in the container. If you upload all the files with AZCOPY or Aspera, the video files arrive after the semaphore file given the size, so the need for the wait.
- creates a client manifest in the asset,
- publishes the asset with dynamic packaging for adaptive streaming.
Example of semaphore file that must be created and uploaded along with the video files.
[
{
"fileName": "video-400.mp4"
},
{
"fileName": "video-700.mp4"
},
{
"fileName": "video-1200.mp4"
}
]
This page presents a near real time video analytics solution which relies on Video Indexer to process a live stream.
This page lists the functions available and describes the input and output parameters.