Jump to content


Photo

Hardware transcode sessions limit on GPU fail back to CPU in emby?


  • Please log in to reply
58 replies to this topic

#1 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 4096 posts
  • Local time: 06:33 AM
  • LocationPeterborough, Canada

Posted 15 July 2019 - 01:19 PM

After researching some basic information about using hardware transcoding with media servers, I got my hands on a GTX 1660 Ti.

 

Working pretty great, I'm happy with it :)

 

 

 

I understand the GPU will only alow two hardware transcoded streams while in a "locked" state. 

 

I know that there are driver hacks that can change this, but this question is geared towards a stock, locked state.

 

 

PLEX will not fail back to CPU hardware transcoding if two streams on an accelerated GPU are used up.

 

This seems like a no-brainer thing to do. 

 

Does Emby start new hardware transcoding streams back on the CPU if the GPU's limit has been reached?

 

If not, wouldn't this ability put a leg up over the competition, and is it something that would be considered as a unique feature in Emby?



#2 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 12843 posts
  • Local time: 03:33 AM

Posted 15 July 2019 - 02:15 PM

This is something I'm intending test, now that I've jammed the 1060 in my server. But I'm getting unreliable GPU transcoding, so I want to get that sorted, first. I'm hoping the new server release will help.

I'm getting everything from green screen to it not working at all.

Edited by Doofus, 15 July 2019 - 02:17 PM.


#3 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 4096 posts
  • Local time: 06:33 AM
  • LocationPeterborough, Canada

Posted 15 July 2019 - 03:05 PM

This is something I'm intending test, now that I've jammed the 1060 in my server. But I'm getting unreliable GPU transcoding, so I want to get that sorted, first. I'm hoping the new server release will help.

I'm getting everything from green screen to it not working at all.

 

You've set the GPU to be used in the Transcode settings of Emby?

 

I ask just in case you where using other settings prior to the install of the 1060.


Edited by chef, 15 July 2019 - 03:08 PM.


#4 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 12843 posts
  • Local time: 03:33 AM

Posted 15 July 2019 - 03:22 PM

You've set the GPU to be used in the Transcode settings of Emby?

I ask just in case you where using other settings prior to the install of the 1060.


Yeah. I primarily want it for HEVC stuff. I thought that hardware acceleration would be faster than my Threadripper, but it's almost exactly the same. Except that only using the CPU I can transcode everything. With the GPU, d3d11 doesn't work at all, and I get a range of results when using NVENC/NVDEC. In some cases if enable both decode and encode, it doesn't use the GPU at all. In others, it works (as well as the CPU). In other cases, I get green screen. I am familiar with the green screen decoding issues. I would get that using CUDA in mpv. The mpv guys told me it was a parsing issue. But NVDEC in mpv would work correctly, because they used their own parsing. But everything would decode using NVDEC. This doesn't appear to work as well in the Emby. I'm sure softworks will figure it out. I need to do more testing. As of right now, I have all hardware decoding disabled, and only have NVENC enabled. Software to hardware. That appears to be more stable. But I need to throw more things at it.
  • chef likes this

#5 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 4096 posts
  • Local time: 06:33 AM
  • LocationPeterborough, Canada

Posted 15 July 2019 - 03:44 PM

Jason at BMB did this! Which is a lotta lengths to go through! He did it with Ryzen 3900X (crazy man!).

 

But, still there was no fail over to CPU transcoding. He used a lotta streams for that unlocked Quattro. Definitely worth a watch.

 

 

I'll test the 1660 ti and see how many transcoding streams I can get, and see what happens to the CPU once the GPU is maxed out.

 

If Emby uses CPU after the GPU is maxed out, then that is a selling feature and could be used to entice new Premiere supporters for sure.



#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142115 posts
  • Local time: 06:33 AM

Posted 15 July 2019 - 03:49 PM

Yes, we do automatically fallback to CPU when an attempt with the GPU fails.


  • chef and trusselo like this

#7 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 12843 posts
  • Local time: 03:33 AM

Posted 15 July 2019 - 04:02 PM


I'll test the 1660 ti and see how many transcoding streams I can get, and see what happens to the CPU once the GPU is maxed out.


Should be an easy test. Three simultaneous transcodes. The third should be software. I'll have to test it with basic h264 media.

#8 Sammy OFFLINE  

Sammy

    Advanced Member

  • Members
  • 2955 posts
  • Local time: 03:33 AM

Posted 20 August 2019 - 06:22 PM

@chef

 

How's the testing coming along? I'd like to get a less spendy 1060 and unlock the stream count for transcoding.



#9 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 4096 posts
  • Local time: 06:33 AM
  • LocationPeterborough, Canada

Posted 20 August 2019 - 06:34 PM

@chef

How's the testing coming along? I'd like to get a less spendy 1060 and unlock the stream count for transcoding.

I'm happy with it. I got the MSI 1060. When I plugged it in, Emby gave me a bunch of advanced options that weren't available with the on board graphics.

I was able to choose my gpu for certain codecs.

I haven't unlocked extra sessions yet. I did see a couple threads online that examined how to do it for windows, but haven't tried it yet.

I've been able to definitely stream more streams with gpu encoding enabled, and allow the CPU to take over when the sessions are full.

To be honest, the only thing I've noticed, is that while media is being transcodes, the CPU is pretty much idle, untill my mom and dad log on and start watching something while the sessions are full with my son watching something and my daughter watching something.

But the streams are perfect, and there is no laggy weirdness for my mom and dad watching over the internet at 1080p 5mb/s (which is more then enough for them).

Yeah! Was certainly a good purchase.

Attached File  00000IMG_00000_BURST20190720091209599_COVER.jpg   127.75KB   5 downloads

Edited by chef, 20 August 2019 - 06:38 PM.


#10 Sammy OFFLINE  

Sammy

    Advanced Member

  • Members
  • 2955 posts
  • Local time: 03:33 AM

Posted 20 August 2019 - 06:49 PM

I'm considering this card as my case is a tight fit.

 

My issue is as much with transcoding as it is with MCEBuddy hogging all my CPU ticks when ComSkip and especially HandBrake is active. Playback on Emby becomes unwatchable even over the local network when this happens.



#11 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 4096 posts
  • Local time: 06:33 AM
  • LocationPeterborough, Canada

Posted 20 August 2019 - 07:00 PM

That card looks pretty great, good price and it has OC mode which is always a good thing.

Are you running Windows?
  • Sammy likes this

#12 Sammy OFFLINE  

Sammy

    Advanced Member

  • Members
  • 2955 posts
  • Local time: 03:33 AM

Posted 20 August 2019 - 07:02 PM

That card looks pretty great, good price and it has OC mode which is always a good thing.

Are you running Windows?

 

Yup.. Still Win7x64.



#13 Sammy OFFLINE  

Sammy

    Advanced Member

  • Members
  • 2955 posts
  • Local time: 03:33 AM

Posted 20 August 2019 - 07:05 PM

So how does one hack it for more simultaneous transcode streams and hopefully fixing the MCEBuddy issue?



#14 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 4096 posts
  • Local time: 06:33 AM
  • LocationPeterborough, Canada

Posted 20 August 2019 - 07:09 PM

I'm on win 7 64 too, there is a reddit post but I haven't tried it.

https://amp-reddit-c...transcodes_for/


I'm not sure if this is the right hack or not.

Edited by chef, 20 August 2019 - 07:10 PM.

  • Sammy likes this

#15 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 4096 posts
  • Local time: 06:33 AM
  • LocationPeterborough, Canada

Posted 20 August 2019 - 07:11 PM

I suppose I should try it out. I wonder what is the worst that could happen?? 😂
  • Sammy likes this

#16 lightsout OFFLINE  

lightsout

    Advanced Member

  • Members
  • 635 posts
  • Local time: 03:33 AM

Posted 20 August 2019 - 07:18 PM

I'm considering this card as my case is a tight fit.

My issue is as much with transcoding as it is with MCEBuddy hogging all my CPU ticks when ComSkip and especially HandBrake is active. Playback on Emby becomes unwatchable even over the local network when this happens.

Here's the link to the hack.

https://github.com/k...se/nvidia-patch

I use it on win 10 not sure about win 7.

That card should be alright. If you can swing the 1060 6gb it's quite a bit better card. Not just the ram but processing power.

They also have a single fan model. Then again I have a 1050ti 4gb in my server and it suits me well. I got it for the same reason you mention. When using MCE buddy and other software my CPU cycles were getting eaten up.

I also use handbrake and allow the GPU to do the encoding. Gets like 150fps.
  • Sammy likes this

#17 Sammy OFFLINE  

Sammy

    Advanced Member

  • Members
  • 2955 posts
  • Local time: 03:33 AM

Posted 20 August 2019 - 07:45 PM

Here's the link to the hack.

https://github.com/k...se/nvidia-patch

I use it on win 10 not sure about win 7.

That card should be alright. If you can swing the 1060 6gb it's quite a bit better card. Not just the ram but processing power.

They also have a single fan model. Then again I have a 1050ti 4gb in my server and it suits me well. I got it for the same reason you mention. When using MCE buddy and other software my CPU cycles were getting eaten up.

I also use handbrake and allow the GPU to do the encoding. Gets like 150fps.

 

BINGO!



#18 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 4096 posts
  • Local time: 06:33 AM
  • LocationPeterborough, Canada

Posted 20 August 2019 - 09:49 PM

BINGO!

Wait! Does that mean it works on windows 7??

Edit: oh sweet there is a win7 version there. That is fantastic!

Edited by chef, 20 August 2019 - 09:50 PM.

  • Sammy likes this

#19 Sammy OFFLINE  

Sammy

    Advanced Member

  • Members
  • 2955 posts
  • Local time: 03:33 AM

Posted 21 August 2019 - 12:39 AM

1050 Ti or 1060?

Sent from my SM-G960U1 using Tapatalk

#20 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 4096 posts
  • Local time: 06:33 AM
  • LocationPeterborough, Canada

Posted 21 August 2019 - 07:27 AM

1050 Ti or 1060?

Sent from my SM-G960U1 using Tapatalk


Which ever one has more cuda cores and higher gigs of memory.
  • Sammy likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users