Jump to content

NAS cpu occupancy increase up to 40%


WesleyK

Recommended Posts

Hi Emby team ,

i found that the CPU occupancy increase more than 40% when the movie running under transcode method .

is it normal ? if yes. please advise how to do the setting for the Emby server on Synology ?

thanks

 

Synology 902+

DSM 7.0

Emby server version : latest version

Premiere

CPU occupancy increase under transcode method.png

Link to comment
Share on other sites

Hi Luke,

Thank you for the reply.

it seems the only thing can do is covert the movie under 1080P before upload to emby . Or disable the transcode feature . right ?

thanks

Link to comment
Share on other sites

Hi, this depends on the Synology NAS you have.  Many have Celeron CPUs with QuickSync built in.  If your NAS has this feature then enabling Hardware Transcoding (requires Emby Premiere) will offload the transcoding as much as possible to the GPU/QuickSync so the CPU isn't doing all the work.

What NAS model do you currently have?

Link to comment
Share on other sites

hi , @cayars , @frostbyte 

yes. it is 920+ . sorry for typing mistake 🤪 . but it seems the cpu always up to 70-80%when the transcode is working . i can see there into 40% was used by ffmpeg(transcode). thanks

Link to comment
Share on other sites

FrostByte

Since you have a 4K gpu and Premiere is hardware acceleration setup?  Either way I believe transcoding will use as much as it can get to get the job done quickly as possible.  That's why I don't transcode anything :)

@cayars can probably talk more about the benefits of things like changing the transcoding path to a faster drive, etc 

  • Like 1
Link to comment
Share on other sites

GrimReaper

To try to summarize it here:

1) If you want to avoid transcoding, ensure your media is in format that can be DirectPlayed by your client(s) - and it differs per client. You can pre-process media beforehand or use Emby's Convert feature; disabling Transcoding and not having media in format for DirectPlay will result in Playback errors/No compatible streams.

2) If transcoding is needed, it can be done in SW only (CPU only) - hence high CPU usage you're seeing - or be HW accelerated (for which you need Premiere subscription), as @cayars explained above: since you have QS-enabled GPU in your 920+, you might as well make use of it.

Hope that clears it up. 

Edited by GrimReaper
Cross-posted
Link to comment
Share on other sites

GrimReaper

It's decoder you should be paying attention primarily: Settings>Transcoding, in "Enable hardware acceleration when available:" select "Advanced", put QuickSync as top decoder and compare results.

You can also post ffmpeg log for that session. Wild guess - your media has number of graphical subs that need to be burned-in or large number of internal subrips.

Edited by GrimReaper
  • Like 1
Link to comment
Share on other sites

Try this.  Switch to Advanced in the transcoding menu.  Then Move the QuickSync option above VAAPI. Do that for all decoders and encoders.  Here I show only a few but do it for all. Configure the rest of what I show the same including the Enable Throttling.

It's possible you don't have throttling on which would make your NAS try to convert the media as fast as possible and use up as much CPU and GPU as it can.  With throttling on it stays in front of what the client needs without going full force on CPU & GPU.  This also allows a conversion to stop if the user stops playing media.

Let us know if this helps

image.png.e8cc907071ec3538ba0249fe44d79a05.png

  • Like 1
Link to comment
Share on other sites

23 minutes ago, WesleyK said:

Hi @GrimReaper you are correct ., the movie has few subtitles but not a large 😅 @cayars i had followed the settings . it seems no anything change on the cpu . besides. attached the log please investigate what happen on my case . ths

ffmpeg-transcode-dc096352-414d-49a3-a6cd-e6d6f6cce1e6_1.txt 65.03 kB · 2 downloads

HI, can you please attach the main emby server log as well? Thanks.

Link to comment
Share on other sites

14 hours ago, WesleyK said:

Hi @GrimReaper you are correct ., the movie has few subtitles but not a large 😅 @cayars i had followed the settings . it seems no anything change on the cpu . besides. attached the log please investigate what happen on my case . ths

ffmpeg-transcode-dc096352-414d-49a3-a6cd-e6d6f6cce1e6_1.txt 65.03 kB · 3 downloads

 

13 hours ago, WesleyK said:

Just saying there are 25 streams to parse and process. Any streams you don't absolutely need that can be removed is going to make the process easier to handle for your hardware.

00:53:55.320     Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], Level 41, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc, Start-Time 600.000s
00:53:55.320     Stream #0:1[0x1100]: Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, 5.1(side), s16p, Start-Time 600.000s
00:53:55.320     Stream #0:2[0x1101]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 256 kb/s, Start-Time 600.000s
00:53:55.320     Stream #0:3[0x1102]: Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, 5.1(side), s16p, Start-Time 600.000s
00:53:55.320     Stream #0:4[0x1103]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s, Start-Time 600.000s
00:53:55.320     Stream #0:5[0x1104]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 640 kb/s, Start-Time 600.000s
00:53:55.320     Stream #0:6[0x1105]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 640 kb/s, Start-Time 600.000s
00:53:55.320     Stream #0:7[0x1106]: Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, 5.1(side), s16p, Start-Time 600.000s
00:53:55.320     Stream #0:8[0x1107]: Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, 5.1(side), s16p, Start-Time 600.000s
00:53:55.320     Stream #0:9[0x1108]: Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, 5.1(side), s16p, Start-Time 600.000s
00:53:55.320     Stream #0:10[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080, Start-Time 600.000s
00:53:55.321     Stream #0:11[0x1201]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080, Start-Time 600.000s
00:53:55.321     Stream #0:12[0x1202]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080, Start-Time 600.000s
00:53:55.321     Stream #0:13[0x1203]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080, Start-Time 600.000s
00:53:55.321     Stream #0:14[0x1204]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080, Start-Time 600.000s
00:53:55.321     Stream #0:15[0x1205]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080, Start-Time 600.000s
00:53:55.321     Stream #0:16[0x1206]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080, Start-Time 600.000s
00:53:55.321     Stream #0:17[0x1207]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080, Start-Time 600.000s
00:53:55.321     Stream #0:18[0x1208]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080, Start-Time 600.000s
00:53:55.321     Stream #0:19[0x1209]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080, Start-Time 600.000s
00:53:55.321     Stream #0:20[0x120a](zho): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), Start-Time 600.000s
00:53:55.321     Stream #0:21[0x120b](zho): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), Start-Time 600.000s
00:53:55.321     Stream #0:22[0x120c](zho): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), Start-Time 600.000s
00:53:55.321     Stream #0:23[0x120d](zho): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), Start-Time 600.000s
00:53:55.321     Stream #0:24[0x120e](zho): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), Start-Time 600.000s
00:53:55.321     Stream #0:25[0x120f](zho): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), Start-Time 600.000s

With that said it was transcoding fast enough (1.8x) so that wasn't a problem.  The ffmpeg log show a quit command received so it stopped processing.
Emby Server did in fact send a quit command to ffmpeg.  It doesn't say why but I'm seeing very high times being reported in the log as well during this time frame such as:
4411ms, 4187ms, 3497ms, 3080ms, 2911ms, 3970ms, etc...

Do you know what else was/is running on the NAS that would be causing these issues?  Do you have any kind of VPN in use, have docker running or app downloaders?

 

Your server log is full of connection errors when fetching metadata.

 

Link to comment
Share on other sites

hi @cayars i only choose 1 of my movie to play by emby on 1 device at the time . i have not use VPN on my nas . but my nas is working on sync or download something file at the same time . that means is it should impact ?

 

Link to comment
Share on other sites

You're still getting tons of errors.

Something else you can check.  In control panel network section see if you have IPv6 address turned on.  If so turn off IPv6 (unless you have a mandatory reason to keep it), go into IPv4 and make sure the option to set the default gateway is set/enabled.

See if that helps.

Link to comment
Share on other sites

hi @cayars i had disabled the ipv6 already . but , it is the same . i don't know the reason why 🥲 . for now, the only thing i can do it is disable the transcode feature .so sadd...

 

Link to comment
Share on other sites

hi @cayars i had tested just now . the cpu is resume to normal when i disable the subs.... and the play method shows "direct stream" insert of "transcoding" what a stranger  ....

do you have any idea ? the main reason is it the subs ?

for the remote support . what should i prepare or ready for ?

thanks

Link to comment
Share on other sites

Certain types of subs depending on playback device require transcoding.

What device are you playing back on?
What does the Media Info look like for this media?

Can you take a screen shot of the this from the bottom of the detail screen?

Link to comment
Share on other sites

hi @cayars attached please check the screen shoot (hided media information) . thanks

in additions , i had played on macbook ,iphone by emby client apps and browser , but i haven't test on apple tv yet. 

name " enable subs"  --> i haven't  disable the subs --> emby play media under transcode mode --> 50-60% cpu runs from emby(ffmpeg)

name "disable subs"  --> disable all of the subs  --> emby play media under directstream mode --> less than 5% cpu runs from emby

name"details & subtitle "--> video , audio , subtitles information

 

 

details 11.00.29.png

disable subs 10.32.54.png

enable subs  10.32.03.png

subtitle 10.48.49.png

Edited by WesleyK
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...