How to run FFMPEG command in Asp.Net
To run ffmpeg commands in asp.net you need to use Media Handler class. Here is an example how to use media handler class to run ffmpeg commands.
//Create media handler object of Media_handler class
Media_handler mymediahandler=new Media_handler();
// Get web site application path
string webapppath =Server.MapPath(Request.ApplicationPath);
//Get ffmpeg.exe full path from mapping
string ffmpeg_path=HttpContext.Current.Server.MapPath(“ffmpeg.exe”);
//Run FFMPEG command by calling Execute_FFMPEG function of Media_handler class
mymediahandler.Execute_FFMPEG(ffmpeg_path, “-i c:\\clock.avi -vcodec mp3 c:\\clock.flv”);
Read Related Posts
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


August 29th, 2008 at 10:37 pm
Hello,
I am using trial version of MediaHander to Convert movie file into FLV for web site in asp.net and C#. But the problem is only a few part of original movie converted into FLV. What will the reason ? Is this beacaus of Trai version of MediaHandler?
August 29th, 2008 at 10:45 pm
Hi, I am not sure but this may be a case. Check MediaHandler documentation to confirm trial version limitation..
April 5th, 2009 at 10:22 pm
Hi,
We are not able to convert 3gp,rm and dat files to flv.
December 6th, 2009 at 11:44 pm
Hi,
i am not geeting the execute command fuction in media handler class…………
February 27th, 2010 at 1:48 am
which is freeware is used for ffmpeg and is it based on the FFMPEG encoder (normally it is used to create .flv files from .avi or .mpg, but it can do the reverse too)?
July 4th, 2012 at 3:58 am
Hi,
I want to convert video into .flv/.swf using asp.net 3.5.Please provide me full code because i am ne in asp.net 3.5.