I'm using blob storage to serve uploaded user posted videos in a xamarin application, but the performance is terrible. Can Azure media services serve these videos with good performance?
Try one of our quick starts for encoding and streaming and see if you get better performance for your scenario.
https://learn.microsoft.com/en-us/azure/media-services/latest/
There are some threads on using adaptive streaming in Xamarin as well.
Related
I am currently on a student plan for azure (gotta stay finessing as a college student lol) and am looking for the best way to upload videos to azure blob storage. Currently, I am using an azure function api to upload the video, but I am encountering a "Javascript heap out of memory" error when I try and multiparts parse big video files.
Ideally, I'd be able to quickly upload 3.5 minute music videos from mobile and desktop to azure blob storage with this method.
Either a better way of uploading videos to blob storage from my front-end or a solution for the javascript heap out of memory error would be amazing help.
Here's the link to that other post, if you are curious: How to fix JavaScript heap out of memory on multipart.Parse() for azure function api
Approaches:
After a workaround based on your issue, I would suggest that you use Azure Media Services.
Media Services can be integrated with Azure CDN. Refer to check Media Services-Managing streaming endpoints.
All supported formats use HTTP to transport data and benefit from HTTP caching. In live streaming, actual video/audio data is separated into fragments, which are cached in CDNs.
To start, I recommend that you use the Azure Storage SDK with Node.JS. The SDK will handle everything for you. Attaching few uploaders below to check accordingly.
Upload a video to Azure Blob examples
Refer MSDoc & SO thread by #Gopi for uploading a video with the .mp4 extension to Azure blob storage using C#.
You can upload a video using Azure functions directly. But to use Azure Functions, you must create a back-end component written in.NET, Java, JavaScript, or Python.
You can use the "Azure Storage Rest API" to upload files/video files using a storage account, like you mentioned. You will be able to get the desired result by using this Azure Storage Rest -API-MSDoc.
I would like to stream video TO Azure blob storage (I think I should use Append Blob which is optimized for data streaming). I'm going to use NET.Core (because actually the video is coming from Hololens). What are the best practicies to achive that? I try to dig a little bit on internet, but I found few related topics. Thanks.
If you have plans to stream to possible multiple users consider to use Azure Media Services and also CDN to save cost with network out:
https://learn.microsoft.com/en-us/azure/media-services/latest/stream-files-dotnet-quickstart
We've just started using Microsoft Azure, and trying to investigate is it possible to - upload video and convert it to web format automatically.
Maybe someone has already did it and has some experience.
Have a look at Azure Media Services.
You can encode to adaptive multi-bitrate MP4 with dynamic packaging on top (think MPEG-DASH, HLS, Smooth Streaming).
Encoding via the Azure Portal:
https://learn.microsoft.com/en-us/azure/media-services/media-services-portal-encode
.NET SDK:
https://learn.microsoft.com/en-us/azure/media-services/media-services-dotnet-encode-with-media-encoder-standard
REST API:
https://learn.microsoft.com/en-us/azure/media-services/media-services-rest-encode-asset
For an event-based approach look at Azure Functions with a Blob Trigger. As soon as there's a new source file to be encoded you can kick off a job.
I have a web app that is hosted in Azure; one of it's functionalities is to be able to make a few cuts from the video(generate 2 or 3 small videos of 5-10 seconds from a larger video).
The videos are persisted in Azure Blob Storage.
How do you suggest to accomplish this in the Azure environment?
The actual cutting of the videos will be initiated by a web job. I'm also concerned about the pricing(within the Azure environment), I'm taking into account the possibility of high traffic.
Any feedback is appreciated.
Thank you.
Assuming you have video-cutting code that operates on files through normal I/O: You'd need to download the video file from blob, process it via code (or whatever library you've employed), and then store the result back in blob storage. You cannot reference a blob directly with normal standard IO libraries.
If, however, videos are stored in Azure File storage (which is an SMB layer on top of blob storage, then you will be able to directly manipulate your video files.
Web Jobs run within an App Service (just like Web Apps), so you have access to a certain amount of local disk space (depending on App Service tier) for use. You should have no problem temporarily storing a video file within your web app's disk space, for editing operations.
You asked about cost: Again, assuming you're talking about running code within a Web Job (app service), you're just paying for whatever App Service tier you've chosen.
How you actually do those edit operations is entirely up to you (language, library, etc).
Azure Blob Storage is simply an object store which stores the data. It does not have the capability you're looking for.
Azure Media Service however is the service you should look into. The media served by this service makes use of Azure Blob Storage.
For editing video, may I suggest you take a look at Video Editor Plugin for Azure Media Player. You can read more about this plugin here: https://azure.microsoft.com/en-in/blog/video-editor-plugin/. You can also try it out here: http://ampdemo.azureedge.net/amp_editor.html.
I am wondering if it is possible to host videos on the azure platform. Does Azure allow encoding videos using expression encoders before storing them as a blob. I am imaging a process/architecture where video is upload via client, saved to a location on azure and queued up. A process runs to pick it up from queue, encode it and save it as a blob. Any ideas will be helpful.
I do not think that there are services in azure today for video encoding. Could be a good business idea to write an app to do this.
You could load the video up to azure, then have another service that downloaded the video, encoded it, and sent it up to the cloud again. The major problem with this approach is the bandwidth cost that you would incurr.