Sungray 6 Posted June 21, 2022 Share Posted June 21, 2022 (edited) GPU memory usage for a single high quality file is more than 1.2Gb. The same file for Plex "costs" only around 600Mb. That means, with a GPU with 2Gb of memory, I can have 3 transcoding streams at the same time on Plex, and only one on Emby. The second stream will start with CPU transcoding. The cause is that Emby does not set any FFmpeg decoding thread count (=auto). After setting the thread count to 1 using Diagnostics/Replace... ... the memory usage is now totally normal and on par with Plex, without any noticeable performance loss. This seems like a very easy fix to be done, it would very much improve the hardware transcoding feature, and comes at no performance cost or any downside whatsoever that I can see. Please consider fixing this soon. Also, please note all these tests are done using the same source file. This is a summary of the issue I opened here. Thanks Edited June 21, 2022 by Sungray 1 Link to comment Share on other sites More sharing options...
Happy2Play 8281 Posted June 21, 2022 Share Posted June 21, 2022 What is your Transcoding "Transcoding thread count:" set to? Settings-Transcoding Transcoding thread count: Select the maximum number of threads to use when transcoding. Reducing the thread count will lower cpu usage but may not convert fast enough for a smooth playback experience. Not all encoders and decoders support multi-threading, so this may have an effect in some cases but not others. Link to comment Share on other sites More sharing options...
Sungray 6 Posted June 21, 2022 Author Share Posted June 21, 2022 (edited) 49 minutes ago, Happy2Play said: What is your Transcoding "Transcoding thread count:" set to? Settings-Transcoding Transcoding thread count: Select the maximum number of threads to use when transcoding. Reducing the thread count will lower cpu usage but may not convert fast enough for a smooth playback experience. Not all encoders and decoders support multi-threading, so this may have an effect in some cases but not others. Auto. Reducing it doesn't help. With transcoding thread count set to 1 : First bump was when I still had the -copyts -threads:v:0 1 diagnostic/replace. Second is when I removed it. I think this setting only impacts the encoding thread count. The decoding thread count is never set in the Emby ffmpeg cmd, and it should be set to 1. Edited June 21, 2022 by Sungray Link to comment Share on other sites More sharing options...
Sungray 6 Posted June 23, 2022 Author Share Posted June 23, 2022 On 22/06/2022 at 00:19, Happy2Play said: What is your Transcoding "Transcoding thread count:" set to? Settings-Transcoding Transcoding thread count: Select the maximum number of threads to use when transcoding. Reducing the thread count will lower cpu usage but may not convert fast enough for a smooth playback experience. Not all encoders and decoders support multi-threading, so this may have an effect in some cases but not others. Hello, did you get the chance to look into this? Link to comment Share on other sites More sharing options...
Sungray 6 Posted June 29, 2022 Author Share Posted June 29, 2022 Hello there! @Happy2Play did you get a chance to look into this? Maybe confirm the problem, perhaps address it? Again, I believe this is a big issue with an easy fix. Link to comment Share on other sites More sharing options...
Luke 37063 Posted June 29, 2022 Share Posted June 29, 2022 @softworkz will be looking into this. Thanks. Link to comment Share on other sites More sharing options...
softworkz 3335 Posted June 29, 2022 Share Posted June 29, 2022 It is fixed already. @Luke just needs to merge my changes. Link to comment Share on other sites More sharing options...
Sungray 6 Posted June 30, 2022 Author Share Posted June 30, 2022 7 hours ago, softworkz said: It is fixed already. @Luke just needs to merge my changes. Thanks @softworkz. Link to comment Share on other sites More sharing options...
Sungray 6 Posted September 8, 2022 Author Share Posted September 8, 2022 In which version will this fix become available? Any chance it gets pushed to be released in a stable version soon? 1 Link to comment Share on other sites More sharing options...
softworkz 3335 Posted September 8, 2022 Share Posted September 8, 2022 In the latest betas, the transcoding thread count doesn't have an effect anymore. It will be removed from the settings UI in a future update. For hw decoders, the thread count is set to 1, for sw decoders it remains to be unset (= auto: use maximum reasonable amount). Starting with 4.8.0.9, there is a new thread count parameter for the H264 and HEVC software encoders (in the codec parameters dialog). 1 Link to comment Share on other sites More sharing options...
Luke 37063 Posted October 19, 2022 Share Posted October 19, 2022 @Sungray are you still having an issue with this? Link to comment Share on other sites More sharing options...
Sungray 6 Posted October 19, 2022 Author Share Posted October 19, 2022 10 minutes ago, Luke said: @Sungray are you still having an issue with this? Fixed on 4.8.0.9 beta. 1 1 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