Jellyfin Forum
h264 transcodes to hevc error [SOLVED] - 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: h264 transcodes to hevc error [SOLVED] (/t-h264-transcodes-to-hevc-error-solved)



h264 transcodes to hevc error [SOLVED] - sisu - 2024-10-13

Hi all,

I am running a Jellyfin server and streaming h264 content. I'm using android phones and tablets and it used to work before. However, recently it just fails to stream and the log yields the error below and stops.

I tried to test this with using my desktop web browser, but everything is fine because it just does a h264->h264 conversion (Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))).

It seems like if the device supports hevc it will try to transcode, but it fails and I don't know why? I'm using a i5 gen9 intel processor and selected QSV as HWA on the server.

Any help is appreciated.

Some extra info:
- I did do the extra steps for low-power: https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#configure-and-verify-lp-mode-on-linux

UPDATE: Just found out that this has to do with Low Power (LP) HEVC encoding for my i5 9600K. Once I disable that everything works correctly. This is strange as I have done all the necessary steps for low-power mode. Any insight is appreciated.



Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> hevc (hevc_qsv))
  Stream #0:1 -> #0:1 (dts (dca) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[hevc_qsv @ 0x5d3e8c9aab00] some encoding parameters are not supported by the QSV runtime. Please double check the input parameters.
[vost#0:0/hevc_qsv @ 0x5d3e8c9b65c0] Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[libfdk_aac @ 0x5d3e8c9b56c0] 2 frames left in the queue on closing
Conversion failed!


RE: h264 transcodes to hevc error [SOLVED - kind of] - gnattu - 2024-10-13

> UPDATE: Just found out that this has to do with Low Power (LP) HEVC encoding for my i5 9600K. Once I disable that everything works correctly. This is strange as I have done all the necessary steps for low-power mode. Any insight is appreciated.

Your CPU only supports LP encoding for H264 but not for HEVC. The support for that is only added after Icelake.


RE: h264 transcodes to hevc error [SOLVED - kind of] - sisu - 2024-10-13

(2024-10-13, 09:00 AM)gnattu Wrote: > UPDATE: Just found out that this has to do with Low Power (LP) HEVC encoding for my i5 9600K. Once I disable that everything works correctly. This is strange as I have done all the necessary steps for low-power mode. Any insight is appreciated.

Your CPU only supports LP encoding for H264 but not for HEVC. The support for that is only added after Icelake.

Ah! For some reason, I thought it supports HEVC as well. Thanks for clearing that up!