Posts Tagged ‘ffmpeg’

April 22, 2008 0

How to manipulate video in .NET using ffmpeg (updated)

By J in Uncategorized

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 option [...]

Tags: ,

March 12, 2008 7

How to manipulate video in .NET using ffmpeg

By J in Uncategorized

In 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);
[...]

Tags: ,