Jellyfin Forum
Intel N5000/QSV Performance, can I improve it? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Intel N5000/QSV Performance, can I improve it? (/t-intel-n5000-qsv-performance-can-i-improve-it)



Intel N5000/QSV Performance, can I improve it? - Breakintr - 2023-08-31

Hi, I'm trying to see the limits of my Intel N5000 that has an integrated UHD 605, and am trying to transcode from HEVC Main 10 to h264. I was expecting that it could handle it without buffering, but I can't get more than 22fps while transconding, and usually way less.

I've attached the log to this post, it looks like it's correctly using hardware decoding, and I can see with intel_gpu_top that's it's working.

Jellyfin is inside a LXC container with GPU passthrough.

My question is, is there something that I can do to improve performance, or this is really too much for this gpu to handle? Probably this is as good as I can get, but just wanted to check with someone with more knowleadge if it really is.

Thanks in advance.


RE: Intel N5000/QSV Performance, can I improve it? - Venson - 2023-08-31

Hey @Breakintr

I dont think HVEC 10Bit is actually supported by this generation of IGpus so i assume you are asking a bit too much from that little gpu.


RE: Intel N5000/QSV Performance, can I improve it? - Breakintr - 2023-08-31

Hi @Vensos, thanks for the quick reply, that was my first though as well, but accoding with vaainfo, it should:

Code:
root@proxmox:~# vaainfo
-bash: vaainfo: command not found
root@proxmox:~# vainfo
error: can't connect to X server!
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.17 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ()
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :    VAEntrypointVLD
      VAProfileMPEG2Main              :    VAEntrypointVLD
      VAProfileH264Main               :    VAEntrypointVLD
      VAProfileH264Main               :    VAEntrypointEncSliceLP
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileH264High               :    VAEntrypointEncSliceLP
      VAProfileJPEGBaseline           :    VAEntrypointVLD
      VAProfileJPEGBaseline           :    VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:    VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:    VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :    VAEntrypointVLD
      VAProfileHEVCMain               :    VAEntrypointVLD
      VAProfileHEVCMain10             :    VAEntrypointVLD
      VAProfileVP9Profile0            :    VAEntrypointVLD
      VAProfileVP9Profile2            :    VAEntrypointVLD

I'm guessing this is it: VAProfileHEVCMain10, but I'm not sure if this means it _might_ support, or if it really supports, and CPU is at idle when transconding this.

My guess is that even if it supports it, it might be a bit too much for it to do it on the fly, or maybe it's throttling because this is a tiny fanless computer (msi cubi nNerd-face.

Can it be because it's HDR? I need to try with other hevc 10-bit but without hdr.


RE: Intel N5000/QSV Performance, can I improve it? - nyanmisaka - 2023-08-31

The 3D/2D rendering performance is too weak on this 6 watts TDP chip.

But you can still try these:

- Configure and enable Low-Power H.264 encoderĀ https://jellyfin.org/docs/general/administration/hardware-acceleration/intel#configure-and-verify-lp-mode-on-linux

- Change tone-mapping algorithm to Mobius, Reinhard or Hable.

- Change encoder preset to veryfast


RE: Intel N5000/QSV Performance, can I improve it? - bitmap - 2023-08-31

Do you have a secret invite-only ffmpeg, QSV, and Intel wiki with the documentation the rest of us are missing? Do you do open interviews...?


RE: Intel N5000/QSV Performance, can I improve it? - Breakintr - 2023-08-31

Ok, I've enabled low-power h.264 and I'm not sure if it made a difference. Checking intel_gpu_top closely, I see this request/actual info:
Code:
root@proxmox:/# intel_gpu_top -J | more

{
    "period": {
        "duration": 63.723532,
        "unit": "ms"
    },
    "frequency": {
        "requested": 706.175546,
        "actual": 172.620689,
        "unit": "MHz"
    },
    "interrupts": {
        "count": 125.542319,
        "unit": "irq/s"
    },
    "rc6": {
        "value": 0.000000,
        "unit": "%"
    },
    "power": {
        "GPU": 1.960641,
        "Package": 6.064865,
        "unit": "W"
    },
    "engines": {
        "Render/3D/0": {
            "busy": 100.000000,
            "sema": 23.539105,
            "wait": 0.000000,
            "unit": "%"
        },
        "Blitter/0": {
            "busy": 0.000000,
            "sema": 0.000000,
            "wait": 0.000000,
            "unit": "%"
        },
        "Video/0": {
            "busy": 42.598838,
            "sema": 0.000000,
            "wait": 0.000000,
            "unit": "%"
        },
        "VideoEnhance/0": {
            "busy": 100.000000,
            "sema": 70.621073,
            "wait": 0.000000,
            "unit": "%"
        }
    },

"frequency": {
"requested": 706.175546,
"actual": 172.620689,
"unit": "MHz"
},

Does this mean GPU is being throttled? Need to find a fan and point to the tiny cube to see if it improves Smiling-face


RE: Intel N5000/QSV Performance, can I improve it? - Breakintr - 2023-08-31

Meanwhile, I already have a workaround in the remote possibility I will need to play hvec10+ on a device that needs transcoding, setting the bitrate limit to 15Mbps will give me 40+ fps while transcoding.

Thanks all for your inputs. I was already looking for a new usff pc, maybe with at least a n6005, although it would be hard to justify the cost given this small box works perfectly most of the time, and it's fanless and has a really low power consumption.