Jump to content

Question about Quicksync and RDP


bi0h4zard
Go to solution Solved by softworkz,

Recommended Posts

bi0h4zard
Computer
AZW Gemini X55
Betriebssystem
Microsoft Windows 10 Pro (64-Bit)
Prozessor
Intel® Pentium® Silver J5005 CPU @ 1.50GHz
Grafikprodukte
Microsoft Remote Display Adapter
Intel® UHD Graphics 605
Audio
High Definition Audio Device
Intel® Display-Audio
Netzwerktechnik und I/O
Intel® Dual Band Wireless-AC 3165
Realtek PCIe GbE Family Controller
Intel® Wireless Bluetooth®
Speicher
8 GB
Massenspeicher
AZW-256G
HGST USB Device
Seagate Backup+ Hub BK SCSI Disk Device
 
igfx_win10_100.7463 
MediaSDK2019R1
intel_sdk_for_opencl_applications_2019.5.345
 
last windows update 11.12.2019
Emby Premium
Bevorzugte Hardware-Decoder
MPEG-2
 
QuickSync Intel® UHD Graphics 605 - MPEG-2
 
 
QuickSync Intel® UHD Graphics 605 - D3D11 - MPEG-2
 
 
DX11VA Intel® UHD Graphics 605 - MPEG-2
 
VC-1
 
QuickSync Intel® UHD Graphics 605 - VC-1
 
 
QuickSync Intel® UHD Graphics 605 - D3D11 - VC-1
 
 
DX11VA Intel® UHD Graphics 605 - VC-1
 
H.264 (AVC)
 
QuickSync Intel® UHD Graphics 605 - H.264 (AVC)
 
 
QuickSync Intel® UHD Graphics 605 - D3D11 - H.264 (AVC)
 
 
DX11VA Intel® UHD Graphics 605 - H.264 (AVC)
 
H.265 (HEVC)
 
QuickSync Intel® UHD Graphics 605 - H.265 (HEVC)
 
 
QuickSync Intel® UHD Graphics 605 - D3D11 - H.265 (HEVC)
 
 
DX11VA Intel® UHD Graphics 605 - H.265 (HEVC)
 
VP8
 
QuickSync Intel® UHD Graphics 605 - D3D11 - VP8
 
VP9
 
DX11VA Intel® UHD Graphics 605 - VP9
 
Bevorzugte Hardware-Encoder
H.264 (AVC)
 
QuickSync Intel® UHD Graphics 605 - H.264 (AVC)
 
 
QuickSync Intel® UHD Graphics 605 - D3D11 - H.264 (AVC)
 
 
all checked
 
 
quick sync works on system but not on emby

 

 

 

User policy for Administrator: EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True

Affected codecs:
>>>>>> QuickSync Intel® UHD Graphics 605 - H.265 (HEVC)
Adapter #0: 'Intel® UHD Graphics 605' Id:12676 (Driver: 1703956.6561063, Vendor: 32902)
Frame Sizes: 16x16...16384x16384 - Width Alignment: 2 - Height Alignment: 2
Color Formats: NV12, P010, NV16

>>>>>> QuickSync Intel® UHD Graphics 605 - H.264 (AVC)
Adapter #0: 'Intel® UHD Graphics 605' Id:12676 (Driver: 1703956.6561063, Vendor: 32902)
Frame Sizes: 32x32...8192x8192 - Width Alignment: 2 - Height Alignment: 2
Color Formats: NV12, P010, QSV
Profiles: Baseline Profile (Level 5.2), Main Profile (Level 5.2), High Profile (Level 5.2), Constrained Baseline Profile (Level 5.2), Constrained High Profile (Level 5.2), Progressive High Profile (Level 5.2)


>>>>>> FindVideoDecoder - MediaType: hevc, Mode: Custom
Info FindVideoDecoder - Checking: 'QuickSync Intel® UHD Graphics 605 - H.265 (HEVC)' (Priority: 100)
Info FindVideoDecoder - Check successful - selecting 'QuickSync Intel® UHD Graphics 605 - H.265 (HEVC)'

>>>>>> FindVideoEncoder - Media: h264, UseHardwareCodecs: True, Mode: Custom
Info FindVideoEncoder - Checking: 'QuickSync Intel® UHD Graphics 605 - H.264 (AVC)' (Priority: 100)
Info Encoder supports input stream
Info FindVideoEncoder - Check successful - selecting 'QuickSync Intel® UHD Graphics 605 - H.264 (AVC)'

C:\Users\Administrator\AppData\Roaming\Emby-Server\system\ffmpeg.exe -loglevel +timing -hwaccel qsv -hwaccel_device hw -qsv_device 0 -c:v hevc_qsv -load_plugin hevc_hw -f matroska -i file:"X:\1234.mkv" -threads 0 -map 0:0 -map 0:1 -sn -c:v:0 h264_qsv -b:v:0 4829002 -maxrate 4829002 -bufsize 9658004 -preset veryfast -profile:v:0 high -level:v:0 4.0 -g:v:0 72 -keyint_min:v:0 72 -sc_threshold:v:0 0 -copyts -vsync -1 -codec:a:0 libmp3lame -metadata:s:a:0 language=ger -disposition:a:0 default -ac:a:0 2 -ab:a:0 192000 -f segment -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_write_temp 1 -segment_list_type m3u8 -segment_start_number 0 -segment_list "C:\Embytemp\transcoding-temp\5c3523680e4a8d2eb58d620a494274b4.m3u8" -y "C:\Embytemp\transcoding-temp\5c3523680e4a8d2eb58d620a494274b4%d.ts"

20:40:09.946 ffmpeg version 4.3.0-emby_2019_11_25-g5abbb1430d+3686 Copyright © 2000-2019 the FFmpeg developers and softworkz for Emby LLC
20:40:09.946 built with gcc 9.2.0 (Rev2, Built by MSYS2 project)
20:40:09.946 Execution Date: 2019-12-11 20:40:09
20:40:10.071 Input #0, matroska,webm, from 'file:X:\1234.mkv':
20:40:10.071 Metadata:
20:40:10.071 ENCODER : Lavf58.30.100
20:40:10.071 Duration: 01:20:45.31, start: 0.000000, bitrate: 2414 kb/s
20:40:10.071 Stream #0:0: Video: hevc (Main), yuv420p(tv, bt709), 1920x958 [sAR 1:1 DAR 960:479], Level 120, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc, Start-Time 0.005s (default)
20:40:10.071 Metadata:
20:40:10.071 BPS-eng : 2027287
20:40:10.071 DURATION-eng : 01:20:45.299000000
20:40:10.071 NUMBER_OF_FRAMES-eng: 116171
20:40:10.071 NUMBER_OF_BYTES-eng: 1227851895
20:40:10.071 DURATION : 01:20:45.303000000
20:40:10.071 Stream #0:1(ger): Audio: ac3, 48000 Hz, stereo, fltp, 384 kb/s (default)
20:40:10.071 Metadata:
20:40:10.071 title : Stereo
20:40:10.071 BPS-eng : 384000
20:40:10.071 DURATION-eng : 01:20:45.312000000
20:40:10.071 NUMBER_OF_FRAMES-eng: 151416
20:40:10.071 NUMBER_OF_BYTES-eng: 232574976
20:40:10.071 DURATION : 01:20:45.312000000
20:40:10.071 Stream mapping:
20:40:10.071 Stream #0:0 -> #0:0 (hevc (hevc_qsv) -> h264 (h264_qsv))
20:40:10.071 Stream #0:1 -> #0:1 (ac3 (native) -> mp3 (libmp3lame))
20:40:10.071 Press [q] to stop, [?] for help
20:40:10.227 [AVHWDeviceContext @ 0000020bca2c45c0] Error initializing an MFX session: -3.
20:40:10.243 Error creating a QSV device
20:40:10.243 qsv hwaccel requested for input stream #0:0, but cannot be initialized.
20:40:10.243 Error while decoding stream #0:0: Operation not permitted
20:40:10.368 [AVHWDeviceContext @ 0000020bca2c3bc0] Error initializing an MFX session: -3.
20:40:10.383 Error creating a QSV device
20:40:10.383 qsv hwaccel requested for input stream #0:0, but cannot be initialized.
20:40:10.383 Error while decoding stream #0:0: Operation not permitted
20:40:10.508 [AVHWDeviceContext @ 0000020bca2c40c0] Error initializing an MFX session: -3.
20:40:10.524 Error creating a QSV device
20:40:10.524 qsv hwaccel requested for input stream #0:0, but cannot be initialized.
20:40:10.524 Error while decoding stream #0:0: Operation not permitted
20:40:10.633 [AVHWDeviceContext @ 0000020bca32e000] Error initializing an MFX session: -3.
20:40:10.649 Error creating a QSV device
20:40:10.649 qsv hwaccel requested for input stream #0:0, but cannot be initialized.
20:40:10.649 Error while decoding stream #0:0: Operation not permitted
20:40:10.649 frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s throttle=off speed=N/A
20:40:10.774 [AVHWDeviceContext @ 0000020bca32c980] Error initializing an MFX session: -3.
20:40:10.774 Error creating a QSV device
20:40:10.774 qsv hwaccel requested for input stream #0:0, but cannot be initialized.
20:40:10.774 Error while decoding stream #0:0: Operation not permitted
20:40:10.914 [AVHWDeviceContext @ 0000020bca32d780] Error initializing an MFX session: -3.
20:40:10.914 Error creating a QSV device

 

 

CPU: 100% GPU 5%

Edited by bi0h4zard
Link to comment
Share on other sites

bi0h4zard

quick sync works on system post-552361-0-78683400-1576102034_thumb.png but not on emby post-552361-0-59263500-1576102017_thumb.png

 

Computer

AZW Gemini X55
Betriebssystem
Microsoft Windows 10 Pro (64-Bit)
Prozessor
Intel® Pentium® Silver J5005 CPU @ 1.50GHz
Grafikprodukte
Microsoft Remote Display Adapter
Intel® UHD Graphics 605
Audio
High Definition Audio Device
Intel® Display-Audio
Netzwerktechnik und I/O
Intel® Dual Band Wireless-AC 3165
Realtek PCIe GbE Family Controller
Intel® Wireless Bluetooth®
Speicher
8 GB
Massenspeicher
AZW-256G
HGST USB Device
Seagate Backup+ Hub BK SCSI Disk Device
 
igfx_win10_100.7463 
MediaSDK2019R1
intel_sdk_for_opencl_applications_2019.5.345
 
last windows update 11.12.2019
 
Emby Premium
Bevorzugte Hardware-Decoder
MPEG-2
 
QuickSync Intel® UHD Graphics 605 - MPEG-2
QuickSync Intel® UHD Graphics 605 - D3D11 - MPEG-2
DX11VA Intel® UHD Graphics 605 - MPEG-2
 
VC-1
QuickSync Intel® UHD Graphics 605 - VC-1
QuickSync Intel® UHD Graphics 605 - D3D11 - VC-1
DX11VA Intel® UHD Graphics 605 - VC-1
 
H.264 (AVC)
QuickSync Intel® UHD Graphics 605 - H.264 (AVC)
QuickSync Intel® UHD Graphics 605 - D3D11 - H.264 (AVC)
DX11VA Intel® UHD Graphics 605 - H.264 (AVC)
 
H.265 (HEVC)
QuickSync Intel® UHD Graphics 605 - H.265 (HEVC)
QuickSync Intel® UHD Graphics 605 - D3D11 - H.265 (HEVC)
DX11VA Intel® UHD Graphics 605 - H.265 (HEVC)
 
VP8
QuickSync Intel® UHD Graphics 605 - D3D11 - VP8
 
VP9
DX11VA Intel® UHD Graphics 605 - VP9
 
Bevorzugte Hardware-Encoder
H.264 (AVC)
 
QuickSync Intel® UHD Graphics 605 - H.264 (AVC)
QuickSync Intel® UHD Graphics 605 - D3D11 - H.264 (AVC)
 
 
all checked

 

embyserver.txt

ffmpeg-transcode-e3628d22-3f62-4bb9-bc2e-7ac59148985c_1.txt

hardware_detection-63711682129.txt

Link to comment
Share on other sites

bi0h4zard

yes checked it 3 times. the only thing confusing me is

 

 

 

  • Emby currently does not support headless operation with Intel QuickSync You will either need to connect a physical monitor to the video output or you can acquire a "dummy monitor plug" to make the GPU think that a monitor is connected

 

i also read on an other site it was supported now .....if this is the problem...how can i fix this? i only use remoute desktop, no monitor.

Link to comment
Share on other sites

Happy2Play

I can assume you RDP into the box hosting Emby, as you should not see all of those option.  Or at least that is what I see on my system when I RDP.  If I have not remote connected to my server I only see D3D11 and DX11VA options.

 

So I guess a question would be does this situation create confusion within Emby or does Emby try all three methods when displayed?  Or should the user manually disable options via advanced.

 

 

Also this would appear to be only a decoding issue.  

Error while decoding stream #0:0: Operation not permitted
Link to comment
Share on other sites

bi0h4zard

i only checked with rdp if the quicksync was running on the system.(because no monitor)...i run emby via web browser. i disabled some decoder/encoder  and used only one decoder/encoder . same problem.

Link to comment
Share on other sites

bi0h4zard

today i only can choose (i did not do anything since yesterday)

 

Bevorzugte Hardware-Encoder

H.264 (AVC)
QuickSync Intel® UHD Graphics 605 - D3D11 - H.264 (AVC)

post-552361-0-01817100-1576153847_thumb.png

 

 

and transcoding works with h.264

 

 

post-552361-0-87471500-1576153968_thumb.png

 

 

h.265 do not work

Link to comment
Share on other sites

bi0h4zard

now i see what´s happen

 

if i start my emby with rdp i see

 

post-552361-0-07083900-1576155830_thumb.png

 

but only software is working

 

if i start emby without rdp

 

i see nothing in the hardware acc.

only software is working.

 

if i put a monitor on

only h.264 is working with quicksync

 

i try to get a hdmi dummy and keep trying some other testing stuff too

Edited by bi0h4zard
Link to comment
Share on other sites

Happy2Play

now i see what´s happen

 

if i start my emby with rdp i see

 

attachicon.gifrdp.png

 

but only software is working

 

if i start emby without rdp

 

i see nothing in the hardware acc.

only software is working.

 

if i put a monitor on

only h.264 is working with quicksync

 

i try to get a hdmi dummy and keep trying some other testing stuff too

 

I would assume Emby is not trying all the displayed enabled methods then.

 

You need to re-sort the available decoders and encoders to have the options at the top as when you have not rdp'd into your machine, or disable all the option that do not appear when you have not rdp'd into the system.

Link to comment
Share on other sites

yes checked it 3 times. the only thing confusing me is

 

 

i also read on an other site it was supported now .....if this is the problem...how can i fix this? i only use remoute desktop, no monitor.

 

Yes, it's supported now. But you need to move codecs having both 'QuickSync' and 'D3D11' in their name.

 

Only the D3D11 variants are working without a connected monitor.

 

Without a connected monitor, the non-D3D11 QuickSync variants shouldn't even be visible, but I guess that there has been a monitor connection at the time when Emby was started?

 

 

@@softworkz will clarify and update the wiki if needed. Thanks.

 

Oh right, the wiki is outdated...

Link to comment
Share on other sites

bi0h4zard

if i start my emby server without monitor and without rdp i got this

 

post-552361-0-38387500-1576246334_thumb.png

 

nothing shows up but it works 

 

 

post-552361-0-50259800-1576246631_thumb.png

 

more confused

 

 

if i see the encoders / decoders nothing works

 

if i can not see them, all works fine

 

post-552361-0-89538000-1576247524_thumb.png

Edited by bi0h4zard
Link to comment
Share on other sites

bi0h4zard

every time i connect via rdp to the machine where emby is running the HARDWARE qicksync changes automaticly to SOFTWARE

 

there is always a new "hardware_detection_log" is there a way to disable this? 

Edited by bi0h4zard
Link to comment
Share on other sites

@@bi0h4zard - The list of hw acceleration codecs takes a while to be populated after starting the server. You need to wait 1-2 min before looking at it.

 

Have you tried moving the D3D11 variants to the top of the list as I have suggested?

Link to comment
Share on other sites

bi0h4zard

 

 

The list of hw acceleration codecs takes a while to be populated after starting the server. You need to wait 1-2 min before looking at it.

 

 

yes this works very fine.but if i connect via rdp again it does a new hardware detection and the next file transcodes in software again ...if i disconnect the rdp the next file uses quicksync.

 

so can i disable this hardware_detection or can i set some defaults?

Link to comment
Share on other sites

The hardware detection accesses QuickSync in the exact same way as ffmpeg does.

That means that when the detection cannot access QuickSync, ffmpeg won't be able as well.

So it's not a problem with the detection.

 

I think you're seeing this because you're RDP'ing into the same user session in which Emby is running.

 

There are two ways to solve this: 

  • Either run Emby as service
    (information about this can be found in the Wiki)
    .
  • Or run Emby in a different session
    There are several ways to do this:
    • Login locally under a different user account and start Emby there
      Then use 'fast-user-switching' and log on like you do usually
      .
    • Login from remote, using a different user account
      Start Emby in this session
      Disconnect (don't log off)
      Connect via RDP normally
      .
    • It is also possible to create a new session with the same user account
      (This is the default behavior with Windows server)
      But you need to look up the RDP command line arguments to do that (look for "console session", you don't want to connect to it)
      I would not recommend this for regular use because you can loose user profile settings because the last session logging off "wins"
Link to comment
Share on other sites

Happy2Play

Wouldn't the easiest fix be the user disable the options that are enabled by accident do to RDP session?  So HWA continues to work no matter if you RDP or not.  I know this works for me.

 

5dfb6879a262c_trans.jpg

Link to comment
Share on other sites

@@Happy2Play - That's was my first suggestion.

 

But it appears that in his case, logging in via RDP even disables DirectX11 access to the hardware in his user session. 

We could spend a lot of time now, finding out why it is different in his case - but orchestrating an investigation remotely, that's a bit off limit for our support.

You are welcome to check up with the user directly, what both of your setups have in common and what is different.

 

Even when you'd find out, it doesn't necessarily mean that it's something that he can change.

Link to comment
Share on other sites

  • 1 month later...

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...