Giter VIP home page Giter VIP logo

azure-samples / media-services-v3-dotnet-core-functions-integration Goto Github PK

View Code? Open in Web Editor NEW
49.0 32.0 116.0 1.16 MB

The project includes several folders of sample Azure Functions for use with Azure Media Services v3 that show workflows related to ingesting content, encoding, publishing or live stream management.

License: MIT License

C# 97.79% PowerShell 2.09% Shell 0.12%
azure-functions serverless azure-media-services azure-storage azure net-5

media-services-v3-dotnet-core-functions-integration's Introduction

page_type languages products name description azureDeploy
sample
csharp
azure
azure-functions
azure-media-services
Azure Media Services v3 - Serverless Workflows with Azure Functions and Logic Apps
Projects that show how to integrate Azure Media Services with Azure Functions and Azure Logic Apps.

Azure Media Services v3 - Serverless Workflows with Azure Functions & Logic Apps

This repository contains projects that show how to integrate Azure Media Services with Azure Functions & Azure Logic Apps. These Media Services Functions examples are based on AMS REST API v3 on Azure Functions v3. Most of the functions can also be used from Logic Apps.

This repository can be accessed directly using https://aka.ms/ams3functions.

Contents

Folder Description
Functions Updated March 2023 This sample exposes Azure Functions based on .NET 7.0 using the latest Media Services, Azure Functions and Identity SDKs. Deployment is done with an ARM template and GitHub Actions.
Encoding The sample exposes an Azure Function that encodes an Azure Storage blob with ffmpeg. Azure Functions Premium plan is recommended.
LiveAndVodDRMOperationsV3 The sample exposes several Azure functions that can be used to manage live streaming and VOD with DRM with Azure Media Services v3, using Irdeto back-end to deliver the licenses.
advanced-vod-workflow This project contains advanced VOD media workflow examples of using Azure Functions with Azure Media Services v3. The project includes several folders of sample Azure Functions for use with Azure Media Services that show workflows related to ingesting content directly from blob storage, encoding, and writing content back to blob storage.
logic-app-using-workflow-functions This project contains Logic Apps that converts-to-media-asset, encodes and publishes media files that you upload in an Azure Storage. It relies on Azure Functions and Azure Media Services.

Prerequisites for a sample Logic Apps deployments

1. Create an Azure Media Services account

Create a Media Services account in your subscription if don't have it already (follow this article).

2. Create a Service Principal

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).

3. Make sure the AMS streaming endpoint is started

To enable streaming, go to the Azure portal, select the Azure Media Services account which has been created, and start the default streaming endpoint.

4. Deploy the Azure functions

For the 'Functions" project, do not use the link below. Please see the dedicated Readme.

If not already done : fork the repo, deploy Azure Functions and select the right project (IMPORTANT!).

Note : if you never provided your GitHub account in the Azure portal before, the continuous integration probably will probably fail and you won't see the functions. In that case, you need to setup it manually. Go to your Azure Function App / Deployment / Deployment Center. Select GitHub as a source and configure it to use your fork.

Deploy to Azure

media-services-v3-dotnet-core-functions-integration's People

Contributors

eelwk avatar juliako avatar microsoftopensource avatar msftgits avatar raffertyuy avatar shigeyf avatar supernova-eng avatar xpouyat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

media-services-v3-dotnet-core-functions-integration's Issues

MonitorBlobContainerCopyStatus" function output = blobCopyStatusList: []

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Running the "upload-and-encode-logicapp" logic app the "Until BlobContainerCopyStatus is complete" action which references "MonitorBlobContainerCopyStatus" function output is...

{
  "copyStatus": true,
  "blobCopyStatusList": []
}

The next action in the workflow "For each copied asset" is referencing "blobCopyStatusList" and since the output is blank\null the "blobCopyStatusList = 2" condition is false the action \ logic app fails.

image

Any log messages given by the failure

Expected/desired behavior

The "upload-and-encode-logicapp" logic app successfully copies the file from the source storage container to the "empty" asset associated storage container in order to continue the encoding workflow.

OS and Version?

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

update ffmpeg function to use functions runtime 3.0 and .net core 3.1

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Run encoding/encoding/Encoding.csproj (function project that runs ffmpeg)
Function runtime is 2.0
.netcoreapp is 2.0
when the function is updated to functions runtime 3.0 and .netcore 3.1, the function will no longer have access to write to the local functions directory in the cloud. It can write to temporary local storage

Any log messages given by the failure

Expected/desired behavior

This sample should be up to date with latest function runtime + sdk

OS and Version?

serverless

Versions

Mention any other details that might be useful

I've been working with @xpouyat on this and I'll be submitting a PR to address this issue.


Thanks! We'll be in touch soon.

Logic app

hi, I just need to do the VOD process, and I deployed the function but I think it's from another project, can you guide me?
Error:
image

Custom Deployment:
image

location where I uploaded:
image

is correct ?

thankful
Rodrigo Toledo

link of git tutorial in step 4. Deploy the Azure functions is not working

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Deployment issues

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"NotFound","message":"{\r\n "Code": "NotFound",\r\n "Message": "Cannot find SourceControlToken with name GitHub.",\r\n "Target": null,\r\n "Details": [\r\n {\r\n "Message": "Cannot find SourceControlToken with name GitHub."\r\n },\r\n {\r\n "Code": "NotFound"\r\n },\r\n {\r\n "ErrorEntity": {\r\n "ExtendedCode": "51004",\r\n "MessageTemplate": "Cannot find {0} with name {1}.",\r\n "Parameters": [\r\n "SourceControlToken",\r\n "GitHub"\r\n ],\r\n "Code": "NotFound",\r\n "Message": "Cannot find SourceControlToken with name GitHub."\r\n }\r\n }\r\n ],\r\n "Innererror": null\r\n}"}]}

update ffmpeg function to escape command parameters

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Run function with ffmpeg command that contains single quotes.
ffmpeg will return an error saying there are invalid parameters.

Any log messages given by the failure

Invalid parameter

Expected/desired behavior

Should be able to run any ffmpeg commands and they should run
Single quotes in ffmpeg command parameters should be escaped (replace single quotes with double quotes)

OS and Version?

serverless

Versions

Mention any other details that might be useful

I'm working with @xpouyat on this and I'll be submitting a PR to address this issue.

Thanks! We'll be in touch soon.

Deploy Error

Hello,
I'm trying to deploy the application by passing the parameters, when I do, it returns this error:

image

{
"Code": "NotFound",
"Message": "Cannot find SourceControlToken with name GitHub.",
"Target": null,
"Details": [
{
"Message": "Cannot find SourceControlToken with name GitHub."
},
{
"Code": "NotFound"
},
{
"ErrorEntity": {
"ExtendedCode": "51004",
"MessageTemplate": "Cannot find {0} with name {1}.",
"Parameters": [
"SourceControlToken",
"GitHub"
],
"Code": "NotFound",
"Message": "Cannot find SourceControlToken with name GitHub."
}
}
],
"Innererror": null
}

As it is not found, I cannot trace the cause
can help?

thankful

Is Live stream analysis possible ?

Is it possible to do live stream analysis by deploying functions, logic apps from this repo which connects to AMS v3 ?

is there any other way of doing live analysis without sub clipping? I read that sub clipping is not supported in AMS v3 yet ?

Logic Apps

Hello,
I saw some models of logic apps in git, but they weren't deployed, is that correct?

image

Deploy:

image

Another question, I need to create a logical process to generate subtitles for the videos in AMS V3, do you have any material or any tips?

while creating from the template getting below error

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"NotFound","message":"{\r\n "Code": "NotFound",\r\n "Message": "Cannot find SourceControlToken with name GitHub.",\r\n "Target": null,\r\n "Details": [\r\n {\r\n "Message": "Cannot find SourceControlToken with name GitHub."\r\n },\r\n {\r\n "Code": "NotFound"\r\n },\r\n {\r\n "ErrorEntity": {\r\n "ExtendedCode": "51004",\r\n "MessageTemplate": "Cannot find {0} with name {1}.",\r\n "Parameters": [\r\n "SourceControlToken",\r\n "GitHub"\r\n ],\r\n "Code": "NotFound",\r\n "Message": "Cannot find SourceControlToken with name GitHub."\r\n }\r\n }\r\n ],\r\n "Innererror": null\r\n}"}]}

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.