Jump to content


Photo

i5-8400 100% load transcoding

video playback hevc 100% i5-8400


  • Please log in to reply
19 replies to this topic

#1 test399 OFFLINE  

test399

    Newbie

  • Members
  • 9 posts
  • Local time: 01:37 PM

Posted 26 June 2019 - 02:30 PM

Still new to Emby, ive been a premire member for about 9 mo.

i read somewhere if i got a better cpu that i could transcode on the fly better.

 

So i got an i5-8400.

 

So i tried playing this vid streaming in my home network (windows 10) to S7 at 1080p 20mbps Subs off and it played, but the CPU was at 100% constantly.

 

 

Should vid this be putting that kind of strain on my cpu?

 

 

Format                                   : Matroska
Format version                           : Version 4
File size                                : 53.4 GiB
Duration                                 : 2 h 29 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 51.2 Mb/s
Movie name                               : iFT
Encoded date                             : UTC 2018-08-07 20:22:42
Writing application                      : mkvmerge v22.0.0 ('At The End Of The World') 64-bit
Writing library                          : libebml v1.3.5 + libmatroska v1.4.8
 
Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 2 h 29 min
Bit rate                                 : 45.9 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.231
Stream size                              : 47.9 GiB (90%)
Writing library                          : ATEME Titan File 3.8.16 (4.8.16.0)      
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0001 cd/m2, max: 1000 cd/m2
 
Audio #1
ID                                       : 2
Format                                   : MLP FBA 16-ch
Format/Info                              : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Codec ID                                 : A_TRUEHD
Duration                                 : 2 h 29 min
Bit rate mode                            : Variable
Bit rate                                 : 4 534 kb/s
Maximum bit rate                         : 6 930 kb/s
Channel(s)                               : 8 channels
Channel layout                           : L R C LFE Ls Rs Lb Rb
Sampling rate                            : 48.0 kHz
Frame rate                               : 1 200.000 FPS (40 SPF)
Compression mode                         : Lossless
Stream size                              : 4.73 GiB (9%)
Language                                 : English
Default                                  : Yes
Forced                                   : No
Number of dynamic objects                : 13
Bed channel count                        : 1 channel
Bed channel configuration                : LFE
 
Audio #2
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 2 h 29 min
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 684 MiB (1%)
Title                                    : AC3 embedded
Language                                 : English
Service kind                             : Complete Main
Default                                  : No
Forced                                   : No
 
Text #1
ID                                       : 4
Format                                   : PGS
Muxing mode                              : zlib
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 1 s 126 ms
Bit rate                                 : 87.8 kb/s
Count of elements                        : 2
Stream size                              : 12.1 KiB (0%)
Title                                    : foreign parts only
Language                                 : English
Default                                  : Yes
Forced                                   : No

 

 

 

 

 

 

 

 

 

 

 

 

 

5d13b8686bb9b_transcode.png


Edited by test399, 26 June 2019 - 02:46 PM.


#2 rbjtech OFFLINE  

rbjtech

    Advanced Member

  • Members
  • 491 posts
  • Local time: 05:37 PM
  • LocationLondon, UK

Posted 26 June 2019 - 03:19 PM

You do not have throttling enabled - Emby will attempt to transcode the file as fast as it can - so 100% is normal.  Enabling throttling to reduce CPU load only enough to keep up with playback. 


  • Luke, Sammy and Q-Droid like this

#3 test399 OFFLINE  

test399

    Newbie

  • Members
  • 9 posts
  • Local time: 01:37 PM

Posted 26 June 2019 - 04:53 PM

Thats it? 
 
 
Ok i will try that. But shouldnt there be something under Preffered Hardware Encoders for H265? 
I thought UHD 630 would add an encoder for this
 
Another quick think on this.
I have a GTX 1050 2gb and RX590 sitting around.
 
Will adding either of these cards help take load of CPU? (regardless of throttling enabled/disabled)

Edited by test399, 26 June 2019 - 05:01 PM.


#4 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 16590 posts
  • Local time: 09:37 AM
  • LocationWashington State

Posted 26 June 2019 - 05:02 PM

 

Thats it? 
 
 
Ok i will try that. But shouldnt there be something under Preffered Encoders for H265? 
I thought UHD 630 would add an encoder for this
 
Another quick think on this.
I have a GTX 1050 2gb and RX590 sitting around.
 
Will adding either of these cards help take load of CPU? (regardless of throttling enabled/disabled)

 

 

No as Emby does currently encode to h265.  There is a feature request for this. 

https://emby.media/c...nscode-in-h265/

 

And PSG subtitle will be another issue also.


Edited by Happy2Play, 26 June 2019 - 05:03 PM.


#5 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142515 posts
  • Local time: 12:37 PM

Posted 26 June 2019 - 05:09 PM

 

Thats it? 

 

 

Yes that is it but keep in mind, your system has to be able to transcode fast enough for throttling to even be utilized. Otherwise it will be the same as what you are currently seeing.

 

And burning in PGS subtitles is a costly process for even a powerful system. It's generally something you want to avoid, which means one of the following:

  • Use an emby app that can direct play the pgs subtitles without transcoding (emby theater, android, ios, etc). Web browsers do not support PGS subtitles, so they'll need to be burned in with transcoding.
  • Use external text subtitles instead, such as .srt files
  • Turn off the subtitles


#6 test399 OFFLINE  

test399

    Newbie

  • Members
  • 9 posts
  • Local time: 01:37 PM

Posted 26 June 2019 - 05:30 PM

 

 

And burning in PGS subtitles is a costly process for even a powerful system

 

 

 

 

 

I can do all of that above, no subtitles.

Rarely will i need the vids transcoded on the fly.

But in that rare instance i'd like to be able to do it with 1 stream, HEVC 50MB/s file .

 

Can you help me determine what else i would need to get a powerful system if i dont already have one?

  • Would i need a CPU with a higher passmark score?

Or

  • Add a graphics card like I have a GTX 1050 2gb and RX590.? Would the RX590 even trancode?

Or

  • run this on my Xpenology (i5-8400 as well) inside of a docker maybe?

 

Whats the best scenario with my server hardware?



#7 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142515 posts
  • Local time: 12:37 PM

Posted 26 June 2019 - 05:33 PM

The cpu you have now is pretty capable. Of course you can always upgrade, but was the video not playing smoothly? That is the most important thing.



#8 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 16590 posts
  • Local time: 09:37 AM
  • LocationWashington State

Posted 26 June 2019 - 05:35 PM

You would need to post the ffmpeg log to see why HWA was not being used.

 

Do you have Emby Premiere?



#9 test399 OFFLINE  

test399

    Newbie

  • Members
  • 9 posts
  • Local time: 01:37 PM

Posted 26 June 2019 - 05:41 PM

You would need to post the ffmpeg log to see why HWA was not being used.

 

Do you have Emby Premiere?

How can i post the ffmpeg log?

 

Yes i have emby premiere



#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142515 posts
  • Local time: 12:37 PM

Posted 26 June 2019 - 05:42 PM

How can i post the ffmpeg log?

 

Yes i have emby premiere

 

Click more reply options next to the Post button. thanks.



#11 test399 OFFLINE  

test399

    Newbie

  • Members
  • 9 posts
  • Local time: 01:37 PM

Posted 26 June 2019 - 05:48 PM

i dont see the code option here. I did upload the txt file though, can that be used?

Attached Files


Edited by test399, 26 June 2019 - 05:49 PM.


#12 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 16590 posts
  • Local time: 09:37 AM
  • LocationWashington State

Posted 26 June 2019 - 05:50 PM

i dont see the code option here. I did upload the txt file though, can that be used?

 

Did you hit the "attach this file"  button?  Previous post updated.


Edited by Happy2Play, 26 June 2019 - 05:51 PM.


#13 test399 OFFLINE  

test399

    Newbie

  • Members
  • 9 posts
  • Local time: 01:37 PM

Posted 26 June 2019 - 05:51 PM

Did you hit the "attach this file" button?


I thought i did but didnt.
but edited and hit attach this file. Thanks

Will this file be sufficient?

Attached Files


Edited by test399, 26 June 2019 - 06:32 PM.


#14 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142515 posts
  • Local time: 12:37 PM

Posted 26 June 2019 - 08:59 PM

Was there a problem during this playback session? This log looks good to me.

#15 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 16590 posts
  • Local time: 09:37 AM
  • LocationWashington State

Posted 26 June 2019 - 09:06 PM

Only issue I see is why was there no HWA detected?  Is HWA Yes or Advance on Transcoding option?  May have to post your hardware_detection log.


Edited by Happy2Play, 26 June 2019 - 09:06 PM.


#16 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 48159 posts
  • Local time: 12:37 PM

Posted 27 June 2019 - 09:19 AM

Hi.  Keep in mind that "100%" CPU utilization in today's multi-core processors could be as little as 1/8th or even 1/16th of your actual CPU power...

 

If there was no problem during playback, then you probably don't have one :).  Did playback not go smoothly?



#17 test399 OFFLINE  

test399

    Newbie

  • Members
  • 9 posts
  • Local time: 01:37 PM

Posted 27 June 2019 - 10:12 PM

Only issue I see is why was there no HWA detected?  Is HWA Yes or Advance on Transcoding option?  May have to post your hardware_detection log.

 

To the others Yes playback seemed to be perfect, and also i can understand why one might shy away from the hardware detection logs. Geez that log looks like an Ancient Egyptian Dictionary.

i didnt think windows used HWA, or VAAPI. Right?

Thanks @Happy2Play for taking a look, you are a great guy no matter WHAT anyone says about you.  :D

 

Attached File  hardware detection log.txt   230.61KB   1 downloads

 

@ Luke and Ebr Are you alluding to the fact that windows task manager doesn't correctly report? 


Edited by test399, 27 June 2019 - 10:17 PM.


#18 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142515 posts
  • Local time: 12:37 PM

Posted 27 June 2019 - 10:34 PM   Best Answer

Did you follow our hardware acceleration setup guide?


  • test399 likes this

#19 test399 OFFLINE  

test399

    Newbie

  • Members
  • 9 posts
  • Local time: 01:37 PM

Posted 29 June 2019 - 08:38 PM

I did. 

 

So what this system is, is just a test to see if i could get transcoding working to implement on my Xpenology. I did get it working on windows but at very high cpu usage.

 

When i took this mobo and i5-8400 and moved it to my Xpenology that i already had in place, i was able to transcode on the fly, the very same 50MB/s 4k Hevc video at 2-4% cpu usage!

 

Thanks for all the help.

 

 

Windows Emby                 - Hevc  Cpu at 100% 

Xpenology Emby (VAAPI) - Hevc  Cpu at 2-4%   :D  :D  :D



#20 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142515 posts
  • Local time: 12:37 PM

Posted 29 June 2019 - 08:51 PM

Thanks for the feedback !







Also tagged with one or more of these keywords: video playback, hevc, 100%, i5-8400

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users