No hardware encoder in Linux server

Forum / NoMachine for Linux / No hardware encoder in Linux server

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #48835
    taiziccf
    Participant

    Ubuntu 24.04, still no hardware encoding even after upgraded to 8.12.12, was expecting that nomachine will now use Intel VPL.

    Referring to this previous post

    NoMachine Forum – Hardware encoder not working on Linux

    #48843
    Britgirl
    Keymaster

    Hi, this time we need to see the debug logs. Are you able to send us the server-side logs with debug enabled so we can check them? Full instructions are here: https://kb.nomachine.com/DT07S00243

    Send them to forum[at]nomachine[dot]com. Please use the title of this topic as the subject of your email. Thanks!

     

    #48845
    taiziccf
    Participant

    Hi, I had sent the email, thanks.

    #48902
    fra81
    Moderator

    Hi, would you try this workaround?

    1.$ cd /usr/NX/lib
    2. $ sudo mv libvpl.so libvpl.so.ori
    3. $ find / -name "libvpl.so*"
    4a. If ‘libvpl.so’ (the exact name, without suffixes) is found in the system by the previous command, then skip to step 7 to restart the server
    4b. If the libvpl library is found with a slightly different name like ‘libvpl.so.2′ or similar, then proceed to step 5 to create a symlink
    5. $ cd <directory_where_is_libvpl.so.2>
    6. $ sudo ln -s libvpl.so.2 libvpl.so
    7. $ /usr/NX/bin/nxserver --restart

    #48906
    taiziccf
    Participant

    thank you for the advise, however is still not working:

     

    chchia@linux:/usr/local/lib$ sudo find / -name ‘libvpl.so*’

    /usr/lib/x86_64-linux-gnu/libvpl.so.2.9

    /usr/lib/x86_64-linux-gnu/libvpl.so.2

    /usr/NX/lib/libvpl.so.ori

    /usr/local/lib/libvpl.so.2.12

    /usr/local/lib/libvpl.so

    /usr/local/lib/libvpl.so.2

     

    chchia@linux:/usr/lib/x86_64-linux-gnu$ sudo ln -s libvpl.so.2 libvpl.so

    chchia@linux:/usr/lib/x86_64-linux-gnu$ sudo /usr/NX/bin/nxserver –restart

     

     

    chchia@linux:/usr/lib/x86_64-linux-gnu$ vpl-inspect

     

    Implementation #0: mfxhw64

    Library path: /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1.35

    AccelerationMode: MFX_ACCEL_MODE_VIA_VAAPI

    ApiVersion: 1.35

    Impl: MFX_IMPL_TYPE_HARDWARE

    VendorImplID: 0x0000

    ImplName: mfxhw64

    License:

    Version: 1.2

    Keywords: MSDK,x64

    VendorID: 0x8086

    mfxAccelerationModeDescription:

    Version: 1.0

    Mode: MFX_ACCEL_MODE_VIA_VAAPI

    mfxPoolPolicyDescription:

    Version: 1.0

    mfxDeviceDescription:

    MediaAdapterType: MFX_MEDIA_UNKNOWN

    DeviceID: 4692/0

    Version: 1.1

    mfxDecoderDescription:

    Version: 0.0

    mfxEncoderDescription:

    Version: 0.0

    mfxVPPDescription:

    Version: 0.0

    NumExtParam: 0

     

    Total number of implementations found = 1

     

    #48909
    timo
    Participant

    libmfxhw64.so is Intel Media SDK.

    Are you sure your hardware supports this?

    Newer hardware (like ARC/DG2 cards but also newer UHD IGPs) use libmfx-gen.so instead.

    Not sure about Ubuntu but for Fedora that’s shipped with

    intel-vpl-gpu-rt

    #48912
    taiziccf
    Participant

    Thank you, your idea enlighten me, i removed the libvpl.so shipped with nomachine, and proceed to compile my own driver, and it is working now with hardware VPL encoder.

    太子: Ubuntu Cinnamon 24.04 with UHD730 passthrough and NoMachine HW encoding (oneVPL) (taiziccf.blogspot.com)

    I put the guide in the link above in my blogger, how this help.

    thank you all for helping.

    #48915
    Britgirl
    Keymaster

    Hi, can you try 8.13 which we just released? Our codec devs added some improvements for the loading of libvpl to avoid this problem.

    #48916
    taiziccf
    Participant

    Hi, no 8.13 is same does not load HW VPL. I tested this on a freshly setup Ubuntu Cinnamon 24.04.

    #48924
    taiziccf
    Participant

    I made some performance comparison between HW VPL and software encoding, the benchmark software used was glmark2 system resolution 1920×1080, hardware was Intel Alderlake i5 12400 UHD730 and here the summary :

    Not using NoMachine direct HDMI to monitor: glmark2 score around 2550

    Using NoMachine HW Enc VPL: glmark2 score around 1550

    Using NoMachine Software Enc: glmark score around 1750

     

    but good thing is HW VPL does significantly lower the CPU consumption.

     

    #48925
    taiziccf
    Participant

    Sorry I mean even compared between HW VPL and software enc both h264, still software is using significantly lesser CPU power for /nxnode.bin

    #48962
    Britgirl
    Keymaster

    Version 8.13 fixes just the step with changing name (or removing) /usr/NX/lib/libvpl.so – but the other steps like installing rest of the vpl stack should still be neccessary. You seem to have executed a lot of additional steps. We updated our article in the knowledge base, so you should follow the instructions there?

    How to use Intel H.264 HW encoder with NoMachine
    https://kb.nomachine.com/AR09O00938

    Regarding your comment about SW encoding, you should compare nxcodec.bin and nxnode.bin, not just nxnode.bin, if you’re interested 🙂

    #49095
    Jonathan
    Participant

    Hey there

    I also had problems with HW encoding on arch + nomachine 8.13 + Intel Raptor Lake CPU.
    Got various errors in session-log :
    Library: WARNING! Could not resolve symbol ‘MFXClose’.
    Library: WARNING! Error is ‘/usr/NX/lib/libvpl.so: undefined symbol: MFXClose’
    VPLLibraryDispatcher/load: WARNING! Failed to load symbol ‘MFXClose’.

    Turned out I had intel-media-sdk AND libvpl installed.

    After deinstalling intel-media-sdk and rebooting HW encoding worked perfectly.

    Maybe this helps others with the same issue.

    Greetings

    #49417
    AlsoCoryCarson
    Participant

    I was having this problem too. Ubuntu 24.04, N100 mini pc.

    Installing the packages mentioned in https://kb.nomachine.com/AR09O00938 and now I get hardware encoded h264!

    Thank you for chasing this down.

Viewing 14 posts - 1 through 14 (of 14 total)

This topic was marked as solved, you can't post.