简体   繁体   中英

Azure Media Services - Programmatically Transcode Blob into Asset

I am able to programmatically upload a local mp4 file into blob storage that is associated with my Azure Media Services.

How can I programmatically transcode the blob into an asset? preferably C#

I have a working ps1 script that I need to convert to a C# application. Following along with the script, my next step is to programmatically create a transcoding job to create the asset. I've been going down too many rabbit holes, just need to find a good example.

Fantastic? Have you tried out one of our many samples that show how to do that already?

Each of the samples in our .NET repo here - https://github.com/Azure-Samples/media-services-v3-do.net/tree/main/VideoEncoding show how to upload and encode an asset into a new Output asset using a Transform and a Job entity. After that the sample just downloads the contents of the output asset back to your local system.

Hopefully it was not too difficult to locate our samples from our documentation. Otherwise, I might have some work for our doc team to make it easier to find for you. Watch out for Google searches that lead you to the older deprecated v2 API. Most of the time it is mentioned on the page if it is deprecated. Don't ask ChatGPT - as it is very wrong... using 2019 information about v2 API.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM