VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Aug 2008
    Location
    United States
    Search Comp PM
    I have created a windows service using C#.NET for processing video\audio using ffmpeg.

    The windows service spawns ffmpeg using System.Diagnostic.Process class. The code is as follows

    using (System.Diagnostics.Process p = new System.Diagnostics.Process())
    {
    p.StartInfo.UseShellExecute = false;
    p.StartInfo.RedirectStandardError = true;
    p.StartInfo.RedirectStandardOutput = true;
    p.StartInfo.CreateNoWindow = true;
    p.StartInfo.FileName = strCommand;
    p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
    p.StartInfo.Arguments = strArguments;
    p.Start();
    p.WaitForExit();

    }

    The windows service is somehow limiting the memory ffmpeg can use to approx 10MB. The steps in the execution are as follows:-

    1) ASP.NET page creates message in MSMQ indicating file to process.
    2) Timer in Windows service ticks and OnTimer event handler function is called.
    3) Messages is received from MSMQ
    4) Ffmpeg process is started using System.Diagnostic.Process class as shown above
    5) Ffmpeg starts running and is shown is task manager.
    6) Ffmpeg starts converting video file
    7) If the file size is small (less than 10MB) then ffmpeg successfully processes the file. However, for bigger files, ffmpeg doesn’t respond. The task manager shows ffmpeg process using approx 10MB memory.
    8) If I stop the windows service, then ffmpeg continues processing file. That means, somehow windows service is limiting the resoruces that ffmpeg can use.

    Is there any way to make more resources available to ffmpeg?
    Quote Quote  
  2. Banned
    Join Date
    Jun 2007
    Location
    UNREACHABLE
    Search Comp PM
    Originally Posted by datemandar
    I have created a windows service using C#.NET for processing video\audio using ffmpeg.
    Quote Quote  
  3. Member
    Join Date
    Oct 2008
    Location
    Singapore
    Search Comp PM
    Hi, I am using ffmpeg with asp.net too. I found this ffmpeg C# wrapper on the web http://www.ffmpeg-csharp.com/. It seems good. Have any one been used this library and give some reviews?
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!