Giter Site home page Giter Site logo

Hardware Acceleration about pmsservice HOT 26 CLOSED

cjmurph avatar cjmurph commented on June 15, 2024
Hardware Acceleration

from pmsservice.

Comments (26)

cjmurph avatar cjmurph commented on June 15, 2024 3

If alwaysup works then there is something I can do.

from pmsservice.

d8ahazard avatar d8ahazard commented on June 15, 2024 1

It seems like, in 2021 with Windows 11, this is no longer an issue:

Could you provide some information? Is it the same PMS version that didn't work with 2019 and below? Note that the problem wasn't/isn't that HW Accel doesn't work at all but not when you run PMS as a service AND your're not logged in in Windows.

Sure. :D

So, all I did to test is the following:

Log out from the Windows 11 box as all users (reboot).
Open the plex web player from Plex.tv.
Pick some 4K content, under settings, ensure it's transcoding down to 1080p.
Check the PMS dashboard in a separate browser tab - it shows HW transcoding as pictured above.

FWIW, the user I am running Plex under is an Administrator on the computer.

Tested from Windows 11 with an RTX2070 GPU.

image

from pmsservice.

cjmurph avatar cjmurph commented on June 15, 2024

you can try it yourself.

in the registry, go to HKLM\SYSTEM\CurrentControlSet\Services\PlexService

modify the Type value and set the 9th bit to 1.

enable interactive services as per the registry key in your post. (remember to restart windows after you make that change).

I'm not convinced it will work, and it's not something I'll be doing in my installer by default.

from pmsservice.

daeks avatar daeks commented on June 15, 2024

I have enabled UI0Detect service to see its status but it does not react-

Just to be sure, registry value is set correctly:

image

from pmsservice.

cjmurph avatar cjmurph commented on June 15, 2024

Doesn't look right, the ninth bit isn't set. What was the value of type before you modified it?

from pmsservice.

daeks avatar daeks commented on June 15, 2024

0x00000010

from pmsservice.

cjmurph avatar cjmurph commented on June 15, 2024

Setting the ninth but makes it
0x00000110 (decimal 272)

The binary representation of 0x110 is
100010000

from pmsservice.

irishj avatar irishj commented on June 15, 2024

Hello,

Did you get this working @daeks ?

I'm experiencing an issue where plex crashes when I attempt to play a file which requires encoding. If I disable hardware acceleration or run plex from the app instead of the service, it transcodes fine. It appears a lot of people have this issue when running plex as a service.

Any assistance or steps to resolve would be appreciated. Thank You.

from pmsservice.

TheMNSTR avatar TheMNSTR commented on June 15, 2024

Yeah, the same thing is happening to me. Only hardware accelerated transcoding is affected, and only while running as a service.
When I started Plex on the same account via RDP, the hw transcoding was working fine.

from pmsservice.

cjmurph avatar cjmurph commented on June 15, 2024

This is a known issue and not something I can remedy. The resources required for hw decoding are not available in session 0. Unless Microsoft/nvidia/amd/Intel do something about it, we're stuck.

from pmsservice.

TheMNSTR avatar TheMNSTR commented on June 15, 2024

Damn, that sucks. I even tried using an EDID emulator to see if that would help. No dice.

from pmsservice.

irishj avatar irishj commented on June 15, 2024

I starting using 'AlwaysUp" and run the plex media server via that tool and hardware acceleration works fine now.

from pmsservice.

nylimited avatar nylimited commented on June 15, 2024

from pmsservice.

irishj avatar irishj commented on June 15, 2024

https://www.coretechnologies.com/products/AlwaysUp/

from pmsservice.

nylimited avatar nylimited commented on June 15, 2024

from pmsservice.

JesterEE avatar JesterEE commented on June 15, 2024

I can verify that using AlwaysUp with Plex in Session 1 allows both hardware decoding and encoding. Starting in session 0 allows only encoding but not decoding.

from pmsservice.

irishj avatar irishj commented on June 15, 2024

Can you advise how you set Plex to run in Session 1 ?
I have mine in session 0, which as you said, only provides encoding.
Thanks !

from pmsservice.

andyburton avatar andyburton commented on June 15, 2024

Just updated to 1.1.7.0 to try this running as both Local System Account and Local User - and both times decoding fails to work. If i disable the service and run PMS then decoding works.

from pmsservice.

gravidThoughts avatar gravidThoughts commented on June 15, 2024

@irishj Just to clarify, AlwaysUp is working for you without having to specify Session 1?
@JesterEE Can you advise how to use Session 1. AlwaysUp authors say nothing about this in the documentation for configuring Plex.
@cjmurph Just to clarify, do you mean if AlwaysUp has figured out a solution, you should be able to implement the same once it is understood?

I guess I'm asking, does this work flawlessly already with AlwaysUp?
Or will any solution like this project and AlwaysUp be a little rough (Updating Plex etc.) because these use cases are not first class citizens in the Windows OS?

from pmsservice.

cjmurph avatar cjmurph commented on June 15, 2024

It's my understanding that hardware acceleration won't work in session 0. I'm not sure exactly why, this may change with future versions of windows.

Always up allow a user session to be created (session 1..n). I don't see the point, you might as well auto login and start Plex with a scheduled task.

The point of this wrapper is to have Plex running as a service so no user session is required.

from pmsservice.

gravidThoughts avatar gravidThoughts commented on June 15, 2024

@cjmurph Thanks for the quick reply.

Scheduled task? I think you just have to autologin with the account you used to install the Plex server, and have the server configure to automatically start at login. Am I misunderstanding something?

from pmsservice.

cjmurph avatar cjmurph commented on June 15, 2024

No, you could do that. You can configure a scheduled task to restart if it stops though.

from pmsservice.

d8ahazard avatar d8ahazard commented on June 15, 2024

It seems like, in 2021 with Windows 11, this is no longer an issue:

image

from pmsservice.

qpirsel avatar qpirsel commented on June 15, 2024

It seems like, in 2021 with Windows 11, this is no longer an issue:

Could you provide some information? Is it the same PMS version that didn't work with 2019 and below? Note that the problem wasn't/isn't that HW Accel doesn't work at all but not when you run PMS as a service AND your're not logged in in Windows.

from pmsservice.

qpirsel avatar qpirsel commented on June 15, 2024

Thank's for the fast response. I will give it a try and report my results.

from pmsservice.

qpirsel avatar qpirsel commented on June 15, 2024

Ok, after some testing I guess I can confirm it. At first I had issues with hw transcoding because I always selected predefined setting which doesn't work on my test server. But I think that is related to the older i3 Haswell CPU (QSV) I'm using for the test. When I select automatic conversion the Dashboard switches to Transcode/hw.

Of course, I was not logged in (2019, clean reboot) and it is not necessary that the plex user is a member of the administration group. That's important for me because the system is running some other services and holds some (for me) sensitive data.

from pmsservice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.