Comments (3)
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.
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.
thank you for the info :)
from server.
Related Issues (20)
- [Manual Live Stream] PHP Fatal error: Call to undefined method LiveStreamEntry::hasMediaServer()
- Base entry class should not be aware of the Reach Plugin
- OpenCalais engine - code issues HOT 3
- Missing constant HOT 1
- Ubuntu focal repository 404 Not Found
- Incorrect PHP open tag in galleryPartialSuccess.php HOT 1
- Duplicated error enum
- Error while using Thumbnail Api HOT 3
- deleteOldContent.php - deletes playlist configuration HOT 1
- Kaltura supports the redirect upload url? HOT 1
- KMC > Share & Embed wrong url HOT 1
- A bug with analytics? HOT 1
- Issue Create Itunes Syndication with all categories, the xml is broken
- XML Binding Issue HOT 1
- [KMC] Redirection Loop after upgrade HOT 2
- Security Contact Request HOT 2
- Child entries showing up in KMC Search HOT 2
- When I add users using API (user.add), the users are not showing up in KMS user management. But when I use user.get api I am able to find the user. Help! HOT 1
- Usage of "falvor" instead of "flavor" in 1 visible place and multiple other files in code HOT 2
- Video can't play after configuring the AWS Cloudfront HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.