Jellyfin Forum
SOLVED: intel low gpu usage when transcoding - 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: SOLVED: intel low gpu usage when transcoding (/t-solved-intel-low-gpu-usage-when-transcoding)



intel low gpu usage when transcoding - SuperficialNight - 2023-12-09

i have a pretty trash intel celeron n4000 it has a Intel® UHD Graphics 600 trying to use VAAPI and QSV but when i transcode i get this performance

Playback Info

Player:
MPV Video Player
Play method:
Transcoding
Protocol:
https
Stream type:
Video
Transcoding Info

Video codec:
H264
Audio codec:
AAC
Audio channels:
6
Bitrate:
1.5 Mbps
Transcoding progress:
1.5%
Transcoding framerate:
4 fps
Reason for transcoding:
The video's bitrate exceeds the limit
Original Media Info

Container:
mkv
Size:
237.4 MiB
Bitrate:
2.8 Mbps
Video codec:
HEVC Main 10
Video bitrate:
1.4 Mbps
Video range type:
SDR
Audio codec:
OPUS
Audio bitrate:
712 kbps
Audio channels:
6
Audio sample rate:
48000 Hz

pretty bad and here is a image of the gpu usage 

https://ibb.co/M5yg4MZ


3% is there anything i can do to make it use more like 100%??

if u need more info let me know


RE: intel low gpu usage when transcoding - TheDreadPirate - 2023-12-09

Which distro?


RE: intel low gpu usage when transcoding - SuperficialNight - 2023-12-09

(2023-12-09, 09:54 PM)TheDreadPirate Wrote: Which distro?

im running artix (openrc)


RE: intel low gpu usage when transcoding - TheDreadPirate - 2023-12-09

Did you install all the Intel drivers, including the opencl and media drivers?

What is the output of

Code:
sudo vainfo --display drm --device /dev/dri/renderD128



RE: intel low gpu usage when transcoding - SuperficialNight - 2023-12-09

(2023-12-09, 10:09 PM)TheDreadPirate Wrote: Did you install all the Intel drivers, including the opencl and media drivers?

What is the output of

Code:
sudo vainfo --display drm --device /dev/dri/renderD128

here it is

Code:
sudo vainfo --display drm --device /dev/dri/renderD128
Trying display: drm
vainfo: VA-API version: 1.20 (libva 2.20.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.3.5 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                  : VAEntrypointVideoProc
      VAProfileNone                  : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264Main              : VAEntrypointVLD
      VAProfileH264Main              : VAEntrypointEncSlice
      VAProfileH264Main              : VAEntrypointFEI
      VAProfileH264Main              : VAEntrypointEncSliceLP
      VAProfileH264High              : VAEntrypointVLD
      VAProfileH264High              : VAEntrypointEncSlice
      VAProfileH264High              : VAEntrypointFEI
      VAProfileH264High              : VAEntrypointEncSliceLP
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileJPEGBaseline          : VAEntrypointVLD
      VAProfileJPEGBaseline          : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointFEI
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileHEVCMain              : VAEntrypointVLD
      VAProfileHEVCMain              : VAEntrypointEncSlice
      VAProfileHEVCMain              : VAEntrypointFEI
      VAProfileHEVCMain10            : VAEntrypointVLD
      VAProfileHEVCMain10            : VAEntrypointEncSlice
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD



RE: intel low gpu usage when transcoding - TheDreadPirate - 2023-12-09

I'm having trouble finding something I found for my setup. Something about the clock speed never ramping up beyond the lowest power state, which is possibly your problem as well. Search around for that?


RE: intel low gpu usage when transcoding - SuperficialNight - 2023-12-09

(2023-12-09, 10:30 PM)TheDreadPirate Wrote: I'm having trouble finding something I found for my setup.  Something about the clock speed never ramping up beyond the lowest power state, which is possibly your problem as well.  Search around for that?

don't think its that i did a h265 transcode with normal ffmpeg and i get this

https://ibb.co/QHrXw4c

so the gpu can go to 100%

is it possible it is something wrong with jellyfin-ffmpeg?

do i need to specify to use jellyfin-ffmpeg in the configs?


RE: intel low gpu usage when transcoding - TheDreadPirate - 2023-12-09

It shouldn't matter.  You don't HAVE to use jellyfin-ffmpeg.  In Dashboard > Playback you can specify a different ffmpeg.

   


RE: intel low gpu usage when transcoding - SuperficialNight - 2023-12-09

(2023-12-09, 11:13 PM)TheDreadPirate Wrote: It shouldn't matter.  You don't HAVE to use jellyfin-ffmpeg.  In Dashboard > Playback you can specify a different ffmpeg.

that did it choosing jellyfin-ffmpeg i now get 148 - 256 fps 

thank you very much off topic how is using ramdisk for transcoding?


RE: intel low gpu usage when transcoding - TheDreadPirate - 2023-12-09

The only reason I use a ram disk is that I have an old ass SSD with good read speeds but not good write speeds. And my Arc A380 can transcode faster than it can write.

It is definitely not recommended since people tend to underestimate how much space they need. I did a lot of testing and experimentation to determine that 24GB was enough for my transcode ram disk. As soon as I get a new SSD I am getting rid of the ram disk and will just write to the SSD.

Could you share your ffmpeg log? When you were using jellyfin-ffmpeg. I'm curious if there is anything in the log that would point us in the right direction. I might have you open a bug report for jellyfin-ffmpeg.