Azure Media Services - Programmatically Transcode Blob into Asset - c#

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-dotnet/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.

Related

upload and translate object using Autodesk forge tutorial

A couple of days ago, I started learning Autodesk Forge using their tutorial, and it worked just fine till show on viewer step.
Today, when I run my app, the browser opens, however, I can not upload or translate an object(file) in the bucket.
the picture simply shows the buckets I've created and the uploaded files. Only .rfa and cannot even translate them
Please check this simple recording for my issue, the video simply shows that I cannot upload the .rvt file
Please note that RFA files cannot be translated. The list of file formats that can be processed by the Forge Model Derivative service can be found here: https://forge.autodesk.com/en/docs/model-derivative/v2/developers_guide/supported-translations/.
I had this similar issue where I was able to upload files to the OSS, however was unable to translate in order for the models to be viewable in the viewer. My solution was to use an active Autodesk Forge account as I found out that my free trial had expired.

How to extract the text of a PDF file using Azure Functions?

I want to create an Azure Function that gets triggered anytime a file is uploaded to blob storage and extracts the text of a PDF file. I don't know what would be the best library to use either.
I found this post that shows how to use PdfSharp to extract the text of a PDF file but I can't seem to get it working since It's my first time using Azure Functions.
This question is overly broad and will probably be closed as such. But here are some pointers.
Start by installing the Azure Storage Emulator so that you can create Blobs locally for testing. Get it here.
Create an Azure Function v2. Set up a Blob Storage Trigger so that whenever something is written to your local storage, the trigger will be called. Blob trigger described here.
Once you can hit a breakpoint in your Azure Function when a Blob is added to your local emulator, you'll need to get the bytes and extract the text using a PDF ripper of your choice. There are many, some are free, and some are paid. Suggesting one and giving code examples could run several thousand words, so it's up to you which one you pick and use.

WP8.1 PlayerFramework and FLV playback support

I'm trying to add flv support to my Windows Phone 8.1 (XAML) app. The idea is to retrieve multiple urls (containing 30-minute segments of a video) from a (single) call to an api (in this case, Twitch API) and use the resulting links for playback.
The problem is WP has no native support for .flv files, so I can't seem to play the files using Microsoft's Media Player Framework.
I've dug around a little and others seem to be suggesting (albeit non-trivially) creating a MediaStreamSource and connecting the links (or even writing my own container), though it seems like a huge hassle.
Has anyone come across any helpful libraries or any solutions to this problem? Would prefer not to have to download each segment to the phone (for obvious reasons) and simply create a 'stream' if possible.
Note: If it's any help, according to this thread, the flv files from Twitch are h264/aac content (which IS a supported video codec from the link above).
Example (single) link returned from the api call to Twitch:
http://media-cdn.twitch.tv/store92.media67/archives/2014-10-12/live_user_riotgames_1413100271.flv
Thanks.

Playing a video file in server through WPF

I have a video file at my Server and the path to which resembles like "10.151.98.82/Medias/New/Videos/001.dat".
(Actually a video file but the extension is in .dat)
I have already built a WPF application which allows my users to enter the above Server URL and then let them to download it and then play it.
But my guess is that they need not wait till the entire file gets downloaded; just watch the files on the fly.
I have googled on video streaming but could not get a solid material to proceed on with.
[Sorry, if the question is naive or needs modification, i will be happy to do that or move to a relevant forum.]
Any pointers on how to do this is much appreciated.
Edit: This question talks about WCF service and WPF application. But, I dont' use a WCF Service. The video file has to be streamed from the server.
First try to play your file using VLC Player. it also have many advance streaming and Trans-coding Options. you can play, save and trans code simultaneously. Once you are able to Play your file in VLC Player than i would recommend to use VlcDotNet for wpf application. Tutorial for hosting VlcDotNet is available in downloads

How to download a video file from YouTube to hard disk using C#.NET?

How to download a video file from YouTube as .FLV or .MP4 format to hard disk using .NET?
I want to create a small YouTube downloader application which asks the user for the specefic link, when i click the download button, the download process start downloading the video as an FLV file directly from YouTube server to the hard disk.
I'm not asking here for the detailed procedure but i want to know only how to start ? is there a YouTube c# api which handle this process.
How to download an Flv video file from YouTube to hard disk using C# ?
Thank you !
I think this project is interesting
https://github.com/flagbug/YoutubeExtractor
try run an embed browser and add event handler to grep URLs of all resources on webpage, then you can study the protocol used by youtube.
changing the HTML request header to simulate an iOS device may force youtube use HTML5 player , instead of flash player ( if the above method cannot track network activities inside a flash player )
Find an open source program that can do this, and read the portion of the source code that forms the youtube requests.
For example, gPodder is my favorite application of this type, and would be a good choice if you read python code. But I'm sure you can find others.
Once you find out the right format for requests, you can use C#'s HTTP classes such as HttpWebRequest. Finally, save the data to a file.
Google has also provided some documentation for accessing YouTube from .NET, but this is more related to the social networking aspects of the site than the video content.

Categories