Coder Social home page Coder Social logo

awesomekyle / plex-vaapi-amdgpu-mod Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jefflessard/plex-vaapi-amdgpu-mod

1.0 0.0 0.0 24 KB

linuxserver.io mod to enable hardware acceleration using vaapi amdgpu on linuxserver/plex

Dockerfile 100.00%

plex-vaapi-amdgpu-mod's Introduction

This is a linuxserver.io user mod to enable hardware acceleration using vaapi amdgpu for linuxserver.io' Plex Media Server image.

Librairies are taken from package mesa-va-gallium of alpine:edge because Plex is compiled with musl and using Ubuntu libs will lead to unresolved symbols.

Librairies are voluntarily located outside of plexmediaserver path, in /vaapi-amdgpu/lib. This allows to use VERSION=latest so Plex can automatically updates its version, without replacing the provided librairies.

Set the DOCKER_MODS environment variable to awesomekyle/plex-vaapi-amdgpu-mod such as in the example below.

Usage example :

docker run -d \
       --device /dev/dri/ \
       -e DOCKER_MODS=awesomekyle/plex-vaapi-amdgpu-mod \
       -e VERSION=latest \
       ...
       --name plex \
       linuxserver/plex

Defining LD_LIBRARY_PATH and LIBVA_DRIVERS_PATH is not required anymore. They are now exported in s6 svc-plex run command.

You now need to remove -e LD_LIBRARY_PATH=... from your docker run command.

To quickly check if hardware acceleration is working, run the following and check for vaapi errors.

docker exec -it -e LIBVA_DRIVERS_PATH=/vaapi-amdgpu/lib/dri -e LD_LIBRARY_PATH=/vaapi-amdgpu/lib plex \
/lib/plexmediaserver/Plex\ Transcoder -hide_banner -loglevel debug -vaapi_device /dev/dri/renderD128

plex-vaapi-amdgpu-mod's People

Contributors

jefflessard avatar awesomekyle avatar

Stargazers

skoal avatar

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.