Jump to content

H265 HEVC Transcoding issue with iGPU HD 6000 in Proxmox


Go to solution Solved by AlexSol,

Recommended Posts

Posted

Hi!

Maybe anyone faced the same or similar issue and can show me the direction to solve it.

I faced the issue that Emby can't decode H265 (HEVC) on my hardware that suppose to do it.

My hardware:

Intel NUC 5I5RYH (Intel Core i5 5250U, Intel HD Graphics 6000).

I use Proxmox. Emby installed via LXC.

Hardware acceleration works fine as long as it is for H264. It works via Quick Sync as well as via VAAPI.

But recently I tried to play HEVC movie and faced issue that direct play works fine but any video transcoding (bitrate limit) leads to full stop.

As far as I know my hardware must be able to decode HEVC well. Emby shows me such an option in advanced settings. 

I attached a few logs:

1) Hardware detection log

2) Emby server log

3) Transcode H265 -> H264 log (with issues using Quick Sync)

4) Transcode H264 -> H264 log (no issues using Quick Sync).

There is also no issues H264 -> H264 using VAAPI but didn't attach the log.

----

A few highlights:


>>>>>>  FindVideoEncoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Automatic
Info    Checking: 'VAAPI HD Graphics 6000 - H.264 (AVC)'
Info    Check successful - selecting 'VAAPI HD Graphics 6000 - H.264 (AVC)'

>>>>>>  FindVideoDecoder - MediaType: hevc, UseHardwareCodecs: True, HWA-Mode: Automatic
Info    Checking: 'QuickSync HD Graphics 6000 - H.265 (HEVC)'
Info    Check successful - selecting 'QuickSync HD Graphics 6000 - H.265 (HEVC)'

>>>>>>  Processing Plan
        Name                                        CanDoInHW  WillDoInHW  Reason                                                 
        QuickSync HD Graphics 6000 - H.265 (H... >> True       True        Hardware Codec                                          
        VideoInput                               >> False      False       Incompatible hardware context. (Decoder: QuickSync, ... 
        Scaling                                  >> True       True                                                                
        VideoOutput                              >> True       True        Hardware encoder                                        
        VAAPI HD Graphics 6000 - H.264 (AVC)     >> True       True        Hardware Codec                                          

>>>>>>  Video Processing Steps for [0:0]: H.265 (HEVC)
        Step                    HW-Context   Format       SW-Format           Size   Next
        HEVC_QSV             >> QSV          qsv          nv12            1720x720 >> hwdownload
        hwdownload           >> -            nv12         nv12            1720x720 >> format
        format               >> -            nv12         nv12            1720x720 >> format
        format               >> -            yuv420p      yuv420p         1720x720 >> hwupload
        hwupload             >> VAAPI        vaapi_vld    nv12            1720x720 >> scale_vaapi
        scale_vaapi          >> VAAPI        vaapi_vld    nv12             426x178 >> 
23:34:53.693 subtitle input filter: decoding size 384x288
23:34:53.697 [hevc_qsv @ 0x1bf87c0] Error querying IO surface: unsupported (-3)
23:34:53.697 Error while decoding stream #0:0: Function not implemented
23:34:53.698 subtitle_kickoff: call subtitle_resend_current 13843 frame->format: 3
23:34:53.698 subtitle input filter: decoding size 384x288
23:34:53.698 [hevc_qsv @ 0x1bf87c0] More data is required to decode header
23:34:53.698 subtitle_kickoff: call subtitle_resend_current 13760 frame->format: 3

 

Снимок экрана 2024-09-15 в 15.18.29.png

hardware_detection-63861943896.txt ffmpeg-transcode-4b164162-0359-4820-9fdd-5a66e23b4f95_1.txt embyserver-63861955200.txt

Posted (edited)

It is not the question of "believe". It is fact that it can and it do it well. It had to be obvious based on the fact that even Emby itself detect such an option.

The only question why it doesn't work in Emby.

The Broadwell series with iGPU HD 6000 can't "encode" to HEVC but decode it fine.

+ I did decoding with low-level tools back in past when I been working in video editing on this NUC for my software projects.

P.S. I don't know whether you need any proofs except my past experience but here a few links if anybody interested: 

1. HEVC in Broadwells

2. wiki

Edited by AlexSol
A few more links
Posted

You might be right, but dev's will need to answer as it see this in your logs.

23:35:01.632 [hevc_qsv @ 0x1bf87c0] Error querying IO surface: unsupported (-3)
23:35:01.632 Error while decoding stream #0:0: Function not implemented
 

Posted

Sure, thanks, let wait for dev's.

  • 1 month later...
Posted

Well, I've never figured this out so I just change my hardware.

Posted
On 11/4/2024 at 5:30 AM, AlexSol said:

Well, I've never figured this out so I just change my hardware.

Hi, what are you going to change to?

  • Solution
Posted
On 11/11/2024 at 2:01 AM, Luke said:

Hi, what are you going to change to?

I sold my Intel NUC with 5th gen CPU.

I build a completely new server/PC based on 12th gen i3 12100.

Now everything works smoothly.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...