we are developing app which takes up the input file from the azure blob storage and does the requried action and needs to put back the video file to blob storage. Its worker role
Please find the below which i have written, its work fine on local machine, and this is basically worker role solution. challenges we have is on out put path. Input path i am giving the blob http url and its converting and placing on my local system. if i want to upload same in azure how can i do that
string mpegpath = @"C:\ffmpeg\bin";
string input = @"http URL of blob storage";
string outputFile = @"D:\Shared\100.mp4";
string Params = string.Format(" -ss 00:00:09 -i {0} -t 00:00:23 -vcodec copy - acodec copy -y {1}", input, outputFile);
string ffmpegPath = Path.Combine(mpegpath, "ffmpeg.exe");
string ffmpegParams = Params;
Process ffmpeg = new Process();
ffmpeg.StartInfo.FileName = "cmd.exe";
ffmpeg.StartInfo.Arguments = "/k " + ffmpegPath + " " + ffmpegParams;
ffmpeg.Start();