VideoHelp.com Forum
+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Member
    Join Date: Aug 2008
    Location: United States
    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
    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
    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

  1. FFMPEG - Windows vs Linux ?
    By Klagar in forum Video Conversion
    Replies: 3
    Last Post: 14th Oct 2010, 11:32
  2. Using FFmpeg with C#,ASP.Net
    By DanielTaylor in forum Programming
    Replies: 0
    Last Post: 23rd Jun 2010, 04:19
  3. Remove Windows Media Player + Net Meeting ???
    By blinky88 in forum Computer
    Replies: 10
    Last Post: 31st Aug 2009, 11:29
  4. [INFO] ffmpeg 0.5 for Windows
    By Midzuki in forum Newbie / General discussions
    Replies: 5
    Last Post: 27th Mar 2009, 21:13
  5. Replies: 3
    Last Post: 23rd Jul 2007, 03:42
Search   Contact us   About   Advertise   Forum   RSS Feeds   Statistics   Tools