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 Post

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.

AddThis Social Bookmark Button

2 Responses to “How to run FFMPEG command in Asp.Net”

  1. 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?

  2. Hi, I am not sure but this may be a case. Check MediaHandler documentation to confirm trial version limitation..

Leave a Reply

You must be logged in to post a comment.