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?
+ Reply to Thread
Results 1 to 4 of 4
-
-
Have a look at my implementation at http://nolovelust.com/post/Another-Simple-C-Wrapper-For-FFmpeg.aspx
-
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?
Similar Threads
-
FFMPEG - Windows vs Linux ?
By Klagar in forum Video ConversionReplies: 3Last Post: 14th Oct 2010, 11:32 -
Using FFmpeg with C#,ASP.Net
By DanielTaylor in forum ProgrammingReplies: 0Last Post: 23rd Jun 2010, 04:19 -
Remove Windows Media Player + Net Meeting ???
By blinky88 in forum ComputerReplies: 10Last Post: 31st Aug 2009, 11:29 -
[INFO] ffmpeg 0.5 for Windows
By Midzuki in forum Newbie / General discussionsReplies: 5Last Post: 27th Mar 2009, 21:13 -
SVCD2DVD won't launch after latest Windows Update of MS .net framework
By starkraving in forum SVCD2DVD & VOB2MPGReplies: 3Last Post: 23rd Jul 2007, 03:42