Jump to content


Photo

HEVC / x265 quicksync / hardware transcoding not working?

hevc h.265 x265

  • Please log in to reply
90 replies to this topic

#1 Devdroid OFFLINE  

Devdroid

    Advanced Member

  • Members
  • 85 posts
  • Local time: 08:29 AM

Posted 27 April 2018 - 01:28 PM

I can't get HEVC hardware quicksync transcoding to work. Tried a bunch of different x265 encodes and none works; GPU stays @ 0% load. 
 
HEVC HW transcoding is enabled in Emby. 
 
Log says (guessing qsv = quick sync video): 

[hevc_qsv @ 0000020423207d00] Error initializing the MFX video decoder: invalid video parameters (-15)

Are my encodes bad, or what's up? 
 
System info:
OS: Windows 10
CPU/GPU: Core i5 i5-8250U  / Intel HD 620
Driver: Intel HD 15.65 (27/4, 2018) 
Emby: 3.3.1.0 
 
 
Log file: https://pastebin.com/vb5UihG6
 
Media info: 
Encode #1: 

Spoiler

Encode #2: 
Spoiler

Encode #3: 
Spoiler


Edited by Devdroid, 27 April 2018 - 01:42 PM.


#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146597 posts
  • Local time: 02:29 AM

Posted 27 April 2018 - 01:33 PM

Hi, yes there are some quicksync errors here. I would make sure that both windows and your graphics card drivers are fully up to date.

 

If that doesn't help then i would try again with the next release of Emby Server. It will have an updated ffmpeg build and that may help. Thanks.


  • Devdroid likes this

#3 Devdroid OFFLINE  

Devdroid

    Advanced Member

  • Members
  • 85 posts
  • Local time: 08:29 AM

Posted 27 April 2018 - 01:37 PM

Hi, yes there are some quicksync errors here. I would make sure that both windows and your graphics card drivers are fully up to date.

 

If that doesn't help then i would try again with the next release of Emby Server. It will have an updated ffmpeg build and that may help. Thanks.

 

Cool. I'll go ahead and try with that.

 

I'm using the currently most recent version of the Intel HD drivers and Windows 10 is up to date. 


Edited by Devdroid, 27 April 2018 - 01:37 PM.


#4 Devdroid OFFLINE  

Devdroid

    Advanced Member

  • Members
  • 85 posts
  • Local time: 08:29 AM

Posted 27 April 2018 - 01:51 PM

Hi, yes there are some quicksync errors here. I would make sure that both windows and your graphics card drivers are fully up to date.

 

If that doesn't help then i would try again with the next release of Emby Server. It will have an updated ffmpeg build and that may help. Thanks.

 

Here's another attempt running the latest Emby beta with Encode #1: https://pastebin.com/dVW3GwC1

 

It says: 

Press [q] to stop, [?] for help
[hevc_qsv @ 00000261b7691920] Could not load the requested plugin '15dd936825ad475ea34e35f3f54217a6': specified object was not found (-9)
[hevc_qsv @ 00000261b7691920] Error loading plugins
[hevc_qsv @ 00000261b7691920] Error initializing an MFX session
Error while decoding stream #0:0: Function not implemented

Encode #2 &  #3 drops the same error. 


Edited by Devdroid, 27 April 2018 - 01:51 PM.


#5 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146597 posts
  • Local time: 02:29 AM

Posted 27 April 2018 - 01:52 PM

Have you tried other files? Unfortunately this is something that always seems to vary from one environment to the next. It is hard to say what this might be. Perhaps we just shouldn't be using it at all for this particular file. 



#6 Devdroid OFFLINE  

Devdroid

    Advanced Member

  • Members
  • 85 posts
  • Local time: 08:29 AM

Posted 27 April 2018 - 01:53 PM

Have you tried other files? Unfortunately this is something that always seems to vary from one environment to the next. It is hard to say what this might be. Perhaps we just shouldn't be using it at all for this particular file. 

 

Would you like for me to send you a sample of a file, to check if it runs on your environment? I can drop you a PM with a link to something small with pretty much the same encode settings as the several encodes I'm trying to play above. 


Edited by Devdroid, 27 April 2018 - 02:03 PM.


#7 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146597 posts
  • Local time: 02:29 AM

Posted 27 April 2018 - 01:57 PM

Sure thanks.



#8 Devdroid OFFLINE  

Devdroid

    Advanced Member

  • Members
  • 85 posts
  • Local time: 08:29 AM

Posted 27 April 2018 - 04:04 PM

I can't seem to get any of the jellyfish HEVC samples to work either: http://jell.yfish.us/

 

Does anyone else have any luck with these samples + Intel HD 6xx GPU with latest drivers (15.65and Windows 10? 

 

I've tried with these Jellyfish samples

jellyfish-10-mbps-hd-hevc.mkv (won't play at all) 

jellyfish-10-mbps-hd-hevc-10bit.mkv (won't play at all) 

jellyfish-50-mbps-hd-hevc.mkv (does play, but no HW acceleration)

jellyfish-120-mbps-4k-uhd-hevc-10bit.mkv (does play, but no HW acceleration)

 

I also tried these samples from x265.com
x265 – Big Buck Bunny 4K @ 2 Mbps (won't play at all) 

x265 – Tears Of Steel 1080P @ 400kbps (won't play at all) 

 

Also tried some samples from HDRsamples.com 

Life of Pi – 4K UHD HDR SAMPLE FOOTAGE, 10bit, 45.1 Mb/s (does play, but no HW acceleration)

 

 

Log keeps reporting: 

[hevc_qsv @ 00000203a20e86a0] Could not load the requested plugin '15dd936825ad475ea34e35f3f54217a6': specified object was not found (-9)
[hevc_qsv @ 00000203a20e86a0] Error loading plugins
[hevc_qsv @ 00000203a20e86a0] Error initializing an MFX session

It does however work great as soon as I switch to x264/h.264 material. Everything I throw at it seems to be HW accelerated. 

 

 

Edit: I'm using the latest version of Chrome as a client by the way. 

 

Edit #2: Can someone point me to a HEVC sample that does work with HW transcoding? I wan't to make sure that it's not driver related/something on  my end.  


Edited by Devdroid, 28 April 2018 - 07:31 AM.


#9 Devdroid OFFLINE  

Devdroid

    Advanced Member

  • Members
  • 85 posts
  • Local time: 08:29 AM

Posted 28 April 2018 - 07:58 AM

Can anyone confirm if any of the samples above works with Quicksync HW transcoding? Would be much appreciated! 

 

Trying to figure out if there's something wrong with my setup or not :)


Edited by Devdroid, 28 April 2018 - 09:15 AM.


#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146597 posts
  • Local time: 02:29 AM

Posted 28 April 2018 - 10:33 AM

@Doofus may be able to try some of these.
  • Devdroid likes this

#11 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 11:29 PM

Posted 28 April 2018 - 11:53 AM

My beta server is running on a HD 530 GPU, I could try with that?

#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146597 posts
  • Local time: 02:29 AM

Posted 28 April 2018 - 12:35 PM

Sure.



#13 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 11:29 PM

Posted 28 April 2018 - 01:19 PM

Running beta 3.3.1.26 using QS with an Intel HD 530 GPU and HEVC decoding, on. I get the same error (log attached). Turning off decoding, transcoding and playback is successful.


  • Devdroid likes this

#14 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 11:29 PM

Posted 28 April 2018 - 01:22 PM

From the log of the successful transcode

Input #0, matroska,webm, from 'file:D:\Library\jellyfish-10-mbps-hd-hevc.mkv':
  Metadata:
    COMPATIBLE_BRANDS: iso4hvc1iso6
    MAJOR_BRAND     : iso4
    MINOR_VERSION   : 1
    ENCODER         : Lavf56.3.100
  Duration: 00:00:30.10, start: 0.067000, bitrate: 9978 kb/s
    Stream #0:0(und): Video: hevc (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default)
    Metadata:
      CREATION_TIME   : 2016-02-04 22:41:00
      LANGUAGE        : und
      HANDLER_NAME    : hevc@GPAC0.5.2-DEV-rev565-g71748d7-ab-suite
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_qsv))
Press [q] to stop, [?] for help
[h264_qsv @ 0000028cb11db740] No device available for encoder (device type qsv for codec h264_qsv).
[segment @ 0000028cb11f8fe0] Opening 'C:\Users\Peter\AppData\Roaming\Emby-Server\programdata\transcoding-temp\3e50c0f9cd367c67b45315f5175f321d4.ts' for writing
Output #0, segment, to 'C:\Users\Peter\AppData\Roaming\Emby-Server\programdata\transcoding-temp\3e50c0f9cd367c67b45315f5175f321d%d.ts':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: h264 (h264_qsv), nv12, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 19957 kb/s, 29.97 fps, 90k tbn, 29.97 tbc (default)
    Metadata:
      encoder         : Lavc57.107.100 h264_qsv


#15 Devdroid OFFLINE  

Devdroid

    Advanced Member

  • Members
  • 85 posts
  • Local time: 08:29 AM

Posted 29 April 2018 - 05:57 AM

@Doofus thanks! I guess it's not my setup then. 

 

 

@Luke Do you think it's Intel related and might be fixed with a future driver update? Or does it have to do with FFMPEG? In case you need any samples for trial and error, the x265.com samples above should do. I'm guessing that if the samples on x265.com won't run, few others will. 

 

Edit: I'll also try Plex and report back :)


Edited by Devdroid, 29 April 2018 - 06:02 AM.


#16 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 11:29 PM

Posted 29 April 2018 - 10:29 AM

You realize that it is working, it's just decoding isn't working. And it's due to ffmpeg. Your CPU should be able to decode the stream with no problems, then the GPU will do the re-encoding.

#17 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146597 posts
  • Local time: 02:29 AM

Posted 29 April 2018 - 11:28 AM

Right you can turn off gpu decoding and still use gpu encoding.

It's possible the competitor you mention might at be doing this which could unfortunately lead you into thinking that they're working and we're not. But that would not be a correct assessment.

#18 Devdroid OFFLINE  

Devdroid

    Advanced Member

  • Members
  • 85 posts
  • Local time: 08:29 AM

Posted 29 April 2018 - 11:35 AM

You realize that it is working, it's just decoding isn't working. And it's due to ffmpeg. Your CPU should be able to decode the stream with no problems, then the GPU will do the re-encoding.

 

Yes, SW works perfectly well! I get up to 80-90 FPS with the "veryfast" profile with this CPU and 1080p, UHD is a bit of a struggle though with around ~30-40FPS. I was just curious to know if it works or not with the most common x265 encoding profiles/encodes.

 

The only place where HEVC direct play doesn't work for me is with Chrome. All of my Android devices gladly play all of my HEVC encodes via direct play (...even surprisingly old devices), and transcoding usually isn't necessary because of the low bitrate. 

 

It would just be neat to be able to use HW transcoding  :)

 

Right you can turn off gpu decoding and still use gpu encoding.

It's possible the competitor you mention might at be doing this which could unfortunately lead you into thinking that they're working and we're not. But that would not be a correct assessment.

 

I tried it, and it didn't work with them either. (Not that I would ever switch because of this - just curious about the state of HEVC HW transcoding  :)


Edited by Devdroid, 29 April 2018 - 11:49 AM.


#19 aahmyu OFFLINE  

aahmyu

    Advanced Member

  • Members
  • 173 posts
  • Local time: 08:29 AM

Posted 01 May 2018 - 04:30 AM

Hello getting the same errors and HEVC HW transcoding is not working anymore. its running SW which usese 100% of the cpu which is not good for me on a fanless box.

CPU is i57200u which is capable of hevc hw tranconding and it was working fine.

Edit: i tested more hevc files and same result.

[hevc_qsv @ 00000292dc30f2c0] Could not load the requested plugin '15dd936825ad475ea34e35f3f54217a6': specified object was not found (-9)
[hevc_qsv @ 00000292dc30f2c0] Error loading plugins
[hevc_qsv @ 00000292dc30f2c0] Error initializing an MFX session
Error while decoding stream #0:0: Function not implemented
[hevc_qsv @ 00000292dc30f2c0] Could not load the requested plugin '15dd936825ad475ea34e35f3f54217a6': specified object was not found (-9)
[hevc_qsv @ 00000292dc30f2c0] Error loading plugins
[hevc_qsv @ 00000292dc30f2c0] Error initializing an MFX session
Error while decoding stream #0:0: Function not implemented
[hevc_qsv @ 00000292dc30f2c0] Could not load the requested plugin '15dd936825ad475ea34e35f3f54217a6': specified object was not found (-9)
[hevc_qsv @ 00000292dc30f2c0] Error loading plugins
[hevc_qsv @ 00000292dc30f2c0] Error initializing an MFX session
Error while decoding stream #0:0: Function not implemented
[hevc_qsv @ 00000292dc30f2c0] Could not load the requested plugin '15dd936825ad475ea34e35f3f54217a6': specified object was not found (-9)
[hevc_qsv @ 00000292dc30f2c0] Error loading plugins
[hevc_qsv @ 00000292dc30f2c0] Error initializing an MFX session
Error while decoding stream #0:0: Function not implemented
[hevc_qsv @ 00000292dc30f2c0] Could not load the requested plugin '15dd936825ad475ea34e35f3f54217a6': specified object was not found (-9)
[hevc_qsv @ 00000292dc30f2c0] Error loading plugins
[hevc_qsv @ 00000292dc30f2c0] Error initializing an MFX session
Error while decoding stream #0:0: Function not implemented
[hevc_qsv @ 00000292dc30f2c0] Could not load the requested plugin '15dd936825ad475ea34e35f3f54217a6': specified object was not found (-9)
[hevc_qsv @ 00000292dc30f2c0] Error loading plugins
[hevc_qsv @ 00000292dc30f2c0] Error initializing an MFX session
Error while decoding stream #0:0: Function not implemented
[hevc_qsv @ 00000292dc30f2c0] Could not load the requested plugin '15dd936825ad475ea34e35f3f54217a6': specified object was not found (-9)
[hevc_qsv @ 00000292dc30f2c0] Error loading plugins
[hevc_qsv @ 00000292dc30f2c0] Error initializing an MFX session


Edited by aahmyu, 01 May 2018 - 07:35 AM.


#20 Devdroid OFFLINE  

Devdroid

    Advanced Member

  • Members
  • 85 posts
  • Local time: 08:29 AM

Posted 01 May 2018 - 06:01 AM

 

Hello getting the same errors and HEVC HW transcoding is not working anymore. its running SW which usese 100% of the cpu which is good for me on a fanless box.

CPU is i57200u which is capable of hevc hw tranconding and it was working fine.

Edit: i tested more hevc files and same result.

 

I've yet to find a single HEVC sample that does work with Quick Sync transcoding.

 

If anyone can find a HEVC sample that works - please share! I would like to check the encoding settings. 

 

 

@Luke  - it would be awesome if we could get our hands on a HEVC sample that does work, just for trial and error.  Could you share a sample that works with your setup? 


Edited by Devdroid, 01 May 2018 - 06:22 AM.






Also tagged with one or more of these keywords: hevc, h.265, x265

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users