• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Couldn't Enable Hardware Acceleration with VAAPI on WSL2

     
    • 0 Vote(s) - 0 Average

    Couldn't Enable Hardware Acceleration with VAAPI on WSL2

    dzmbbs
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 Oct
    Reputation: 0
    #6
    2024-10-08, 05:49 AM
    Hi, I turned on Hardware Acceleration with VAAPI on WSL2 Docker and can convert hevc to h264.

    Device: Windows11 + Docker in WSL2 + Jellyfin.

    First modify docker-compose.yml.

    1. Add /usr/lib/wsl to volumes.
    2. Add /dev/dxg to devices.
    3. Add environment.


    services:
      jellyfin:
        container_name: jellyfin
        image: jellyfin/jellyfin
        restart: always
        network_mode: host
        volumes:
          - ./config:/config
          - ./media:/media
          - /usr/lib/wsl:/usr/lib/wsl
        devices:
          - /dev/dxg:/dev/dxg
          - /dev/dri/card0:/dev/dri/card0
          - /dev/dri/renderD128:/dev/dri/renderD128
        environment:
          - LIBVA_DRIVER_NAME=d3d12
          - LD_LIBRARY_PATH=/usr/lib/wsl/lib




    Then install dependencies in the jellyfin container.


    apt update && apt install -y vainfo mesa-va-drivers mesa-vulkan-drivers vulkan-tools



    Finally restart the container.


    docker compose restart


    Refer to: https://github.com/microsoft/wslg/blob/m...ated-video and https://jellyfin.org/docs/general/admini...ualization
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Couldn't Enable Hardware Acceleration with VAAPI on WSL2 - by SessionID - 2024-01-02, 02:31 PM
    RE: Couldn't Enable Hardware Acceleration with VAAPI on WSL2 - by Serge K - 2024-01-02, 02:50 PM
    RE: Couldn't Enable Hardware Acceleration with VAAPI on WSL2 - by SessionID - 2024-01-02, 04:19 PM
    RE: Couldn't Enable Hardware Acceleration with VAAPI on WSL2 - by Serge K - 2024-01-02, 05:23 PM
    RE: Couldn't Enable Hardware Acceleration with VAAPI on WSL2 - by chlorophycae - 2024-01-25, 09:25 AM
    RE: Couldn't Enable Hardware Acceleration with VAAPI on WSL2 - by dzmbbs - 2024-10-08, 05:49 AM
    RE: Couldn't Enable Hardware Acceleration with VAAPI on WSL2 - by nyanmisaka - 2024-10-08, 06:28 AM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode