iamspartacus 40 Posted October 13, 2017 Share Posted October 13, 2017 (edited) I have a single user playing a file right now and I'm seeing some awfully high CPU usage for a single file transcode. Furthermore it's as if it's not throttling the transcode even though I have it set. The movie is about 20 minutes in and yet the red progress bar (I assume this represents how much of the file has been transcoded?) is near the end. What exactly does "Enable throttling" do? EDIT: I can confirm once the red progress bar reached the end the CPU usage dropped to nill. So clearly the transcoding it not throttling until it completely finishes. Edited October 13, 2017 by iamspartacus Link to comment Share on other sites More sharing options...
Luke 37273 Posted October 13, 2017 Share Posted October 13, 2017 It needs re-evaluation. It is currently a placebo effects. The techniques that were being used before to accomplish this no longer work with newer ffmpeg builds or with hardware transcoding enabled. So it's currently not doing anything. Link to comment Share on other sites More sharing options...
iamspartacus 40 Posted October 13, 2017 Author Share Posted October 13, 2017 It needs re-evaluation. It is currently a placebo effects. The techniques that were being used before to accomplish this no longer work with newer ffmpeg builds or with hardware transcoding enabled. So it's currently not doing anything. So there is no way to limit CPU usage at all? If I set the Transcode threat count to say half my CPUs cores instead of auto, does that apply to all transcodes individually or in total? Link to comment Share on other sites More sharing options...
Luke 37273 Posted October 13, 2017 Share Posted October 13, 2017 Thread count affects each individual transcode. You have that tool at your disposal along with the hardware transcoding options. thanks. Link to comment Share on other sites More sharing options...
MulziSAW 0 Posted December 31, 2017 Share Posted December 31, 2017 Hey Luke, I know this is a relative old thread... But for my post-processing script I use a custom nice value like this: /usr/bin/nice -n 10 "/var/lib/emby-server/convert.sh" "{path}" The processor load is still very high, but other processes with a lower niceness run smoother. Could this be applied to the transcodings? Link to comment Share on other sites More sharing options...
Luke 37273 Posted December 31, 2017 Share Posted December 31, 2017 In theory that might be possible, yes. Link to comment Share on other sites More sharing options...
dcrdev 251 Posted December 31, 2017 Share Posted December 31, 2017 But it would also be limited to unix like operating systems i.e. not windows. I used to do something like this - Have a shell script calling ffmpeg with nice and pass on any arguments sent to the script, to ffmpeg. Specify the path to that script as a custom ffmpeg path in emby. But the custom ffmpeg path option has been removed in the new packages, I'm sure I could figure out a way to do it still - but I don't really have the requirement to throttle anymore, now that my new system supports vaapi Link to comment Share on other sites More sharing options...
MulziSAW 0 Posted January 1, 2018 Share Posted January 1, 2018 Hey dcrdev! Thanks for the tip, will definitely try this. Concerning your point about beeing Unix only your right, of course. But for Windows there is something similar. Here is a post I found in the web: You can start a process in high proirity in command line. Use the start command. start ["title"] [/dPath] [/i] [/min] [/max] [{/separate | /shared}] [{/low | /normal | /high | /realtime | /abovenormal | belownormal}] [/wait] [/b] [FileName] [parameters] eg:- start "Explorer" /high "C:\Windows\explorer.exe" For easy access type this into a notepad and save as file with "bat" extension. Then you only have to double click this file So in theory one could realize a similar behavior on both platforms. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now