Jump to content

DS916+ transcode buffer material acceleration ON/OFF questions


yarez0
Go to solution Solved by Luke,

Recommended Posts

yarez0

hi guys, 

 

I'm a user of plex and video station on synology, I'm testing emby and it works great ! I don't understand how video can stream without need of transcoding VS plex and emby but that not the point. 

 

during my tests, I purchased monthly premiere license to test material acceleration : a transcode consume 98% of my CPU, now with HA it consume 28%

 

but, I have now transcode buffer problem : 

  • without material acceleration, transcode buffered 10/15 seconds, the video can be streamed but CPU goes to 98%
  • with material acceleration, transcode buffered 3 seconds every 3 seconds so the video freezes every 2 seconds but CPU goes to 28/30%

 

I use a mkv file with pgs subs to do a stress test, I want to test emby in every case before buying a full premiere license for many users but if one user cause 90% of CPU, others cannot use it and my license is useless.

 

 

why material acceleration causes that ? emby plays transcoded temp files faster than ffmpeg created it. can someone explain me why and how to solve it please ? thank you

 

 

  • synology DS916+
  • DSM 6.2-23824 Update 6
  • Intel® Pentium® CPU  N3710  @ 1.60GHz
  • emby 4.1.1.0 synology package behind synology ngynx
  • chrome 74.0.3729.131 64 bits
  • volume : 4x SEAGATE ST2000DM006-2DM164 7,2k SHR RAID

 

here are my full logs hardware acceleration ON vs OFF

 

 

post-465663-0-07695400-1557500264_thumb.png

HA_OFF.zip

post-465663-0-68795200-1557500283_thumb.png

HA_ON.zip

rundiags_20190510T135747UTC.log

Link to comment
Share on other sites

d21mike

I use both PLEX and EMBY.  I am not sure why you are having a problem with Hardware Transcoding but Transcoding is very CPU intensive.  Especially Software.  For me, I figured if I had to do transcoding than what I wanted to do would not work.  I have about 8 users that could be active at the same time.  I made sure that all of my users had set the clients to MAXIMUM Resolution and all of my streams use DIRECT PLAY (or whatever it is called).  My files are all MKV files as well.  The server will not transcode if the client is setup to handle it.  Most of my TV Clients use Apple TV 4 or 4K.  One was using XBOX  but now use ROKU 4K Stick (have not check to make sure he is setup correctly).

Link to comment
Share on other sites

d21mike

I use both PLEX and EMBY.  I am not sure why you are having a problem with Hardware Transcoding but Transcoding is very CPU intensive.  Especially Software.  For me, I figured if I had to do transcoding than what I wanted to do would not work.  I have about 8 users that could be active at the same time.  I made sure that all of my users had set the clients to MAXIMUM Resolution and all of my streams use DIRECT PLAY (or whatever it is called).  My files are all MKV files as well.  The server will not transcode if the client is setup to handle it.  Most of my TV Clients use Apple TV 4 or 4K.  One was using XBOX  but now use ROKU 4K Stick (have not check to make sure he is setup correctly).

 

I just checked my Internet User that is using the New ROKU 4K Stick with "default" Plex Client Setting.  When he played a 1080p Movie it was transcoding from 1080p to 720p.  He then changed to Original on everything and then it was using Direct Streaming (almost no overhead on my Plex Server).  It was streaming at 5Mbps.  My uplink is 200Mbps so this is not very much on my end.

Link to comment
Share on other sites

yarez0

Let me clarify

 

My users don’t have huge internet connections, my syster for example bas 2 Mb internet. This is for her, my orher sister has 5 mb connection. If both of her connect at the same time my syno is out.

 

Most of my friends has fibre, up to 300 mb minimum, for those there is no problem, most of them has direct stream.

 

I want to know why, in case of hardware accelerarion, when transcode happens the read of temp file is faster than creation. Is this cpu (i don’t think so), ram (no), disk bandwith ? (Maybe). I’m an IT guy i try to understand, « pgs is a high process that need ressources » is not an answer to me, I need to understand what is this happening.

 

For pgs normally i extract pgs and convert to srt with ocr scan. In this particular case there is no transcode

Link to comment
Share on other sites

@@yarez0, the above example is doing a full video transcode because PGS subtitles are selected. Given that this is true, this is entirely normal:

 

 

 

emby plays transcoded temp files faster than ffmpeg created it.

 

Try selecting the SRT subtitles in the video player and then you should see much better performance from ffmpeg. Please let us know if this helps. Thanks.

Link to comment
Share on other sites

yarez0

Hi Luke, 

 

thanks, no problem with SRT, I know that PGS burn CPU in hell but I hoped there was a way to enjoy PGSSUB

Link to comment
Share on other sites

  • Solution

Ok, if you want to avoid burning in PGS, then you'll need to play with an app that supports that subtitle format natively without transcoding.

 

That would include our Android apps, iOS app, and Emby Theater.

  • Like 1
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...