Jump to content


Photo

Emby Server 3.6.0.63-beta

Quicksync 4K

  • Please log in to reply
18 replies to this topic

#1 grouik1er OFFLINE  

grouik1er

    Advanced Member

  • Members
  • 42 posts
  • Local time: 08:51 AM

Posted 12 November 2018 - 11:42 AM

Hi,

 

I update my emby server from 3.5.3.0 to the last beta 3.6.0.63.

 

OK no problem for the update, emby service launch ok.

hardware decoding checked Quicksync for all format, hardware encoding checked quicksync H.264 (AVC)

I test some transcode, H264 1080P to 720P OK, HEVC 1080P to 720P ok (80 fps), 4K HEVC to 720P ah not ok 14-15 fps.

 

My setting NUC8i3BEH2 with intel Iris 655 16 Go Ram, NVME 256 Go, Windows 10

 

During encoding anything h264 or HEVC than :

CPU usage 50-60%  GPU usage 0% ,

 

Try to play my HEVC test movie with MPC-BE -> GPU decoding OK, CPU 20%, GPU video decode 28%, Video processing 39%, 3D 36%

 

Then i checked ffmpeg version : 4.0.2  CPU usage during 4K transcode 54-60%

I change it with last ffmpeg build 4.1 -> CPU Usage 75% transcode speed 17-18 fps

 

In all cases no Quicksync in use, don't know why

 

FFmpeg log in attachment

 

Thanks,

Attached Files


Edited by grouik1er, 12 November 2018 - 11:57 AM.


#2 grouik1er OFFLINE  

grouik1er

    Advanced Member

  • Members
  • 42 posts
  • Local time: 08:51 AM

Posted 12 November 2018 - 12:07 PM

Well i open a post a bit too fast.

 

Problem reported here : https://emby.media/c...ation-settings/



#3 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138075 posts
  • Local time: 02:51 AM

Posted 12 November 2018 - 03:23 PM

This is a log from your custom ffmpeg build, right? this is not supported anyway.



#4 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 15726 posts
  • Local time: 11:51 PM
  • LocationWashington State

Posted 12 November 2018 - 03:39 PM

So are all your tests with pgs subtitles?

 

Stream mapping:
  Stream #0:0 (hevc) -> overlay:main (graph 0)
  Stream #0:3 (pgssub) -> scale (graph 0)
  scale (graph 0) -> Stream #0:0 (libx264)
  Stream #0:1 -> #0:1 (flac (native) -> aac (native))

 

Your low fps results are pretty standard for pgs subtitle burn in.



#5 grouik1er OFFLINE  

grouik1er

    Advanced Member

  • Members
  • 42 posts
  • Local time: 08:51 AM

Posted 12 November 2018 - 03:54 PM

True i forgot to put old ffmpeg in the folder.

 

There is the log with emby ffmpeg 4.0.2

 

Also i notice that i don't have DXVA2 option for decoding only Quicksync, i don't understand also the existence of AMD AMF in the list.

Attached Files


Edited by grouik1er, 12 November 2018 - 03:57 PM.


#6 grouik1er OFFLINE  

grouik1er

    Advanced Member

  • Members
  • 42 posts
  • Local time: 08:51 AM

Posted 12 November 2018 - 03:59 PM

So are all your tests with pgs subtitles?

 

Stream mapping:
  Stream #0:0 (hevc) -> overlay:main (graph 0)
  Stream #0:3 (pgssub) -> scale (graph 0)
  scale (graph 0) -> Stream #0:0 (libx264)
  Stream #0:1 -> #0:1 (flac (native) -> aac (native))

 

Your low fps results are pretty standard for pgs subtitle burn in.

 

It result that quicksync is not in use in any test H264 HEVC MPEG2

 

test to transcode with disable subtitle and i have error message "No compatible stream are curently avaible..." Strange ?

Attached Files


Edited by grouik1er, 12 November 2018 - 04:04 PM.


#7 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138075 posts
  • Local time: 02:51 AM

Posted 12 November 2018 - 03:59 PM

Try turning off the subtitles.



#8 grouik1er OFFLINE  

grouik1er

    Advanced Member

  • Members
  • 42 posts
  • Local time: 08:51 AM

Posted 12 November 2018 - 04:05 PM

Try turning off the subtitles.

Log in post

 

Seem ffmpeg try to encode in h264 10 bits ?

Attached Files


Edited by grouik1er, 12 November 2018 - 04:06 PM.


#9 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 15726 posts
  • Local time: 11:51 PM
  • LocationWashington State

Posted 12 November 2018 - 04:10 PM

I would say there is still a defect as your card id and driver is not being returned.

 

Info QuickSyncCodecInfoProvider: Adapter #0: '' Id:0 (Driver: , Vendor: 0)

 

 

example from my log

 

Info QuickSyncCodecInfoProvider: Adapter #0: 'Intel® UHD Graphics 630' Id:16018 (Driver: 1572884.6559945, Vendor: 32902)


Edited by Happy2Play, 12 November 2018 - 04:11 PM.


#10 grouik1er OFFLINE  

grouik1er

    Advanced Member

  • Members
  • 42 posts
  • Local time: 08:51 AM

Posted 12 November 2018 - 04:41 PM

I would say there is still a defect as your card id and driver is not being returned.

 

Info QuickSyncCodecInfoProvider: Adapter #0: '' Id:0 (Driver: , Vendor: 0)

 

 

example from my log

 

Info QuickSyncCodecInfoProvider: Adapter #0: 'Intel® UHD Graphics 630' Id:16018 (Driver: 1572884.6559945, Vendor: 32902)

Well i uninstall graphic card, install last driver from intel no quicksync.

 

I try emby 3.6.0.58 to test DXVA same issue no gpu tanscode

 

I hope i will not have to reinstall windows.

 

"Info QuickSyncCodecInfoProvider: Adapter #0: '' Id:0 (Driver: , Vendor: 0)" where do you find this

 

 

edit : in emby 3.6.0.58 transcode the test 4K HEVC without subtitle don't return me the error "No compatible stream are curently avaible...", transcode always in CPU

Always in 3.6.0.58 if i prefer Quicksync in DECODING instead of DXVA it WORK, but only for 1080P, 4K failed to decode correctly i have gargage

 

To resume on my system with Intel Iris 655 :

Emby 3.6.0.58

DXVA decoding not working at all

Quicksync Decoding work for all EXCEPT 4K HEVC that give me garbage

Quicksync H264 Encoding   ? how can i see it's in use ?

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

 

Emby 3.6.0.63

No DXVA option in decoding menu

Quicksync decoding not working at all

Quicksync H264 Encoding : Not working at all

 
 
 

Edited by grouik1er, 12 November 2018 - 05:17 PM.


#11 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138075 posts
  • Local time: 02:51 AM

Posted 12 November 2018 - 06:35 PM

Looks like you're running the server as a Windows service.

 

Hardware acceleration may not work when you do that.



#12 grouik1er OFFLINE  

grouik1er

    Advanced Member

  • Members
  • 42 posts
  • Local time: 08:51 AM

Posted 13 November 2018 - 05:46 AM

Looks like you're running the server as a Windows service.

 

Hardware acceleration may not work when you do that.

OK i will disable it and test.

 

I learn a lot in 1 day thanks,



#13 grouik1er OFFLINE  

grouik1er

    Advanced Member

  • Members
  • 42 posts
  • Local time: 08:51 AM

Posted 13 November 2018 - 06:29 AM

Thanks i install the last beta 3.6.0.64 also @softworkz

 

disable the emby service, launch emby.exe

 

my test with ma test sample with PSG subtitle disabled :

- DXVA ENABLED for HEVC -> 23 fps in transcode speed, video decode 20-25%, CPU usage -> 55-65%

-DXVA DISABLED for HEVC -> 44-45 fps in transcode speed, video decode 0%, CPU usage -> 100%

 

So DXVA work but transcode speed is affected (?)

 

With PSG subtitle ON, DXVA ENABLED -> 10 fps , DXVA DISABLED -> 14 fps

If i understand PGS are Bitmap so it's more complex to encode/burn it in video, specialy in 4K

 

 

Edit: Quicksync encode seem to work with MPEG2 source file (log attached)

Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (flac (native) -> aac (native))

    encoder         : Lavf58.12.100
    Stream #0:0: Video: h264 (h264_qsv), nv12, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 1000 kb/s, 50 fps, 90k tbn, 50 tbc

 

H264 source don't use quicksync, in log i can't find the line "qsv hwaccel requested for input stream #0:0, but cannot be initialized

Stream mapping:
  Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (ac3 (native) -> aac (native))

 encoder         : Lavf58.12.100
    Stream #0:0: Video: h264 (libx264), yuv420p, 1280x534 [SAR 127893:128000 DAR 479:200], q=-1--1, 25 fps, 90k tbn, 25 tbc (default)
    Metadata:
      encoder         : Lavc58.18.100 libx264

 

 
 
 

Edited by Luke, 13 November 2018 - 04:22 PM.


#14 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1783 posts
  • Local time: 08:51 AM

Posted 13 November 2018 - 04:30 PM

I would say there is still a defect as your card id and driver is not being returned.
 
Info QuickSyncCodecInfoProvider: Adapter #0: '' Id:0 (Driver: , Vendor: 0)
 
 
example from my log
 
Info QuickSyncCodecInfoProvider: Adapter #0: 'Intel® UHD Graphics 630' Id:16018 (Driver: 1572884.6559945, Vendor: 32902)

 
@grouik1er - One question: When the line above was logged (Driver: 0, Vendor: 0) - was there a monitor connected to the system?



#15 grouik1er OFFLINE  

grouik1er

    Advanced Member

  • Members
  • 42 posts
  • Local time: 08:51 AM

Posted 14 November 2018 - 08:51 AM

 
@grouik1er - One question: When the line above was logged (Driver: 0, Vendor: 0) - was there a monitor connected to the system?

Yes there is a TV connected by HDMI



#16 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1783 posts
  • Local time: 08:51 AM

Posted 14 November 2018 - 05:42 PM

Yes there is a TV connected by HDMI

 

Do the DXVA devices still show up without a name?



#17 grouik1er OFFLINE  

grouik1er

    Advanced Member

  • Members
  • 42 posts
  • Local time: 08:51 AM

Posted 15 November 2018 - 06:22 AM

i have no idea



#18 Senna OFFLINE  

Senna

    Advanced Member

  • Members
  • 1133 posts
  • Local time: 08:51 AM

Posted 15 November 2018 - 07:15 AM

When your TV is connected and detected by Emby you should get something like this in Emby Transcoding Settings, concerning quicksync :

 

5bed52b120718_Trancoding_Advanced_Displa

 

When your TV is NOT connected, you should get something like this in Emby Transcoding Settings, concerning quicksync:

 

5bed5338e8726_Trancoding_Advanced.png

 

Restarting Emby server triggers Emby hardware detection, so it can adjust the available Transcoding Settings shown in Emby, so take notice of that.


Edited by Senna, 15 November 2018 - 07:19 AM.

  • softworkz likes this

#19 grouik1er OFFLINE  

grouik1er

    Advanced Member

  • Members
  • 42 posts
  • Local time: 08:51 AM

Posted 15 November 2018 - 08:37 AM

5bed687641b59_EmbyHArdwareDecoder.png







Also tagged with one or more of these keywords: Quicksync, 4K

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users