GithubHelp home page GithubHelp logo

Comments (3)

ArcAIN6 avatar ArcAIN6 commented on May 20, 2024

after a bit of searching on my own, it seems you aren't able to limit memory usage of ffmpeg.. however, you can make ffmpeg use less CPU (the bigger issue here)

from what i read, you can lower the thread count of ffmpeg by adding -theads x .. where x represents the number of cores you wish to utelize.

example:


Process ffmpeg = new Process();
ffmpeg.StartInfo.UseShellExecute = false;
ffmpeg.StartInfo.FileName = "..\ffmpeg.exe";
ffmpeg.StartInfo.Arguments = "-threads 4";  // <=== Add this line
ffmpeg.StartInfo.CreateNoWindow = true;
ffmpeg.Start();

from server.

anatolkaltura avatar anatolkaltura commented on May 20, 2024

Right, setting '-threads 1' will limit the number of threads per each ffmpeg processes.

But u still will have several conversion jobs running parallelly.
You can control the number of concurrent conversions jobs via 'maxInstances' param in batch.ini file (or enabledWorkers.KAsyncConvert param in more recent Kaltura versions).

I would u suggest to take another route - try to set the conversion jobs to lower Linux priority. This way the critical jobs will get the resources while they will be needed, and the conversion jobs will be able to exploit the full CPU resources when the critical jobs are idle. I don't know whether this is possible set up, but it is worthwhile to inquire.

from server.

ArcAIN6 avatar ArcAIN6 commented on May 20, 2024

thank you for the info :)

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.