Based on the reader comments on my previous entry on this topic I was able to fix some of the issues that others were experiencing. I changed how the output is read, instead of reading the entire stream at once, its now read line-by-line as ErrorDataReceived and OutputDataReceived events are raised. Also added an extra [...]
Posts Tagged ‘ffmpeg’
March 12, 2008
7
How to manipulate video in .NET using ffmpeg
By J in UncategorizedIn this case I’m resizing the video and convertingĀ it to FLV format. For more ffmpeg commandline optionsĀ - http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html private void ConvertVideo(string srcURL, string destURL) { string ffmpegURL = “~/project/tools/ffmpeg.exe”; DirectoryInfo directoryInfo = new DirectoryInfo(Path.GetDirectoryName(Server.MapPath(ffmpegURL))); ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = Server.MapPath(ffmpegURL); startInfo.Arguments = string.Format(“-i \”{0}\” -s 368×216 -aspect 1.7777 \”{1}\”", srcURL, destURL); startInfo.WorkingDirectory = [...]