I have made quick prototype using youtubeService.Videos.Insert from Google.Apis.YouTube.v3
The only way I can upload is to pass file stream and hope for the best. I would like to upload it in separate threads (eg in Amazon AWS I can split file on chunks and upload them concurrently). Is it possible?
Related
I have an API with a POST method which captures images and stores them to a blob container on Azure. These images will make up a sequence of frames for a video file once ready to process. I have another endpoint that my application calls when it is ready to process the sequence and get back a video file.
I have everything in place and ready for video processing but I am stuck on how to achieve what I thought would be very simple! Since my endpoint runs in .NET Core I cannot use any legacy .Net libraries and since I am deploying to an Azure WebApp (Windows OS) that may need to scale up/out I cannot install anything other than pre-compiled .Net Core compatible Nuget packages on the hardware as part of my deployment from DevOps.
I can't find any good libraries or examples that run in this scenario. I've run into issues trying to use anything related to GDI+ or FFMPEG...
Was hoping to find something similar to SixLabors.ImageSharp
I have a list of all the images in order and ready to be processed like so:
var frames = new List<Image>();
// (Removed for brevity) Retrieve images from blobs & append to frame list...
foreach(var frame in frames)
{
// Convert frames/sequence to video file
}
// Save to blob storage as .mp4
Any help would be appreciated!
Per my experience, the solution to convert image sequence to a video streaming or file is normally to use some popular libraries like ffmpeg or libav to do that.
If you search for some keywords like C# ffmpeg images video or C# libav images video, you will get much useful content to help realizing it, as below, there are few threads you can refer to.
Image sequence to video stream?
Converting Images into Video using C#
tomaszzmuda/Xabe.FFmpeg
And then, you can get the video streaming or file to upload to Azure Blob Storage as a block blob, please follow the offical tutorial Quickstart: Azure Blob storage client library for .NET to know how to use Azure Storage SDK for .NET standard and the key class in C# is CloudBlockBlob Class which functions enter link description hereBeginUploadFromFile for video file or BeginUploadFromStream for video stream.
But there is an issue about your app deployment. Due to the limitation of Azure Web App sandbox about Win32k.sys (User32/GDI32) Restrictions as the figure below, you can not deploy any app used GDI system call to Azure WebApp.
So a normal recommended Azure service for your app is Azure VM.
Update:
If you considered to use dotNet Core to realize it, I suggested that you can try to use Azure App Service on Linux which be based on Docker and no limits for GDI. Also, Azure Batch is the other choice for realizing your needs in any language. And I wish you will complete your evaluation.
I have an existing Java REST API that takes a file and passes it along to an S3 bucket for storage.
I've been given a C# Winforms desktop .NET Framework app (4.7). This app needs to take files (around 300+ JPEGs) from a user's specified folder and upload them each independently and asynchronously by calling a Java REST API "upload" endpoint. What is a proper way to make multiple async REST calls to C# so that I can report back to the user as each file gets uploaded and then when all of them have been uploaded?
I've thought about using a Parallel ForEach loop to process all the files and make a REST call for each, but wasn't sure if this was the most efficient approach or if I could properly get the feedback/progress needed as the files get uploaded and finished.
I am trying to implement an application wherein I have to download large sized videos from HTTP web server having a URL. By clicking on URL the video download should start. The video should be downloaded within 10 to 15 seconds.
I tried using Web Client but this takes hours to download single video file. I also searched for APIs to download the videos at fast speed but I only got source specific APIs like Google Drive, YouTube.
I searched for JDownloader API to incorporate with C# and WPF but there is not enough documentation as to how to use it in Windows Or web applications.
I am making a universal application for windows phone 8.1. I want to upload a file to server in background. Microsoft provides BackgroundUploader class which contains BeginUploadAsync method which uploads whole file in a single request in background.
I want to upload file in chunks to the server. But i am not able to find anyway to upload file in chunks. Is there any alternative?
There is no any built-in support for uploading files "chunk by chunk". If you really need to upload files in a such way, you should split file into parts manually and upload them separately.
I need to upload large files (>2GB) to a web server, and ASP.NET has a 2GB file upload limit. So what i would like to know is, if its possible to upload files using FTP as i do with HTTP. In other words, is it possible to do an asyncronous (multiple) file upload with progress bar using FTP?
I already have a async file upload with progress bar using a handler (ashx) to send multiple files to a web server. Can i reuse this method to upload file via FTP, or do i need a totally different approach?
As mentioned i need to upload large files to a server, so any other solution that can help me accomplish the task would be much appreciated.
Managed to solve my issue using ResumableJS