Jump to content

hardware acceleration when RDP to server


Go to solution Solved by softworkz,

Recommended Posts

justinrh
Posted
17 hours ago, softworkz said:
19 hours ago, justinrh said:

Plex will use HW encoding, even with the minimal GPU driver installed. 

REALLY?

Yes, REALLY.

I did my testing while logged in at the console, not RDP.

Posted
4 minutes ago, justinrh said:

Yes, REALLY.

I did my testing while logged in at the console, not RDP.

I'm afraid, that's not what I meant 🙂

What I meant was that I got some doubts about whether Plex would be able to do hw transcoding in the exact same situation.

justinrh
Posted
17 hours ago, cayars said:

Can you try playing something back in Plex then posting the ffmpeg command line used from their log file?

Plex doesn't use FFmpeg, and I couldn't find the parameters used for their own transcoder, but I did find this:

DEBUG - [Transcode] Codecs: testing h264_mf (encoder)
INFO - [Transcode] [FFMPEG] - MFT name: 'AMDh264Encoder'
DEBUG - [Transcode] Codecs: testing mpeg2video (decoder) with hwdevice nvdec
DEBUG - [Transcode] Codecs: hardware transcoding: testing API nvdec
DEBUG - [Transcode] Codecs: testing mpeg2video (decoder) with hwdevice dxva2
DEBUG - [Transcode] Codecs: hardware transcoding: testing API dxva2
DEBUG - [Transcode] Codecs: Testing with profile 'Main'
DEBUG - [Transcode] Scaled up video bitrate to 3934Kbps based on 1.500000x fudge factor.
DEBUG - [Transcode] Codecs: testing aac_mf (encoder)
INFO - [Transcode] [FFMPEG] - MFT name: 'Microsoft AAC Audio Encoder MFT'
DEBUG - [Transcode] MDE: Selected protocol dash; container: mp4
DEBUG - [Transcode] Codecs: testing h264_nvenc (encoder)
DEBUG - [Transcode] Codecs: testing h264_mf (encoder)
INFO - [Transcode] [FFMPEG] - MFT name: 'AMDh264Encoder'
DEBUG - [Transcode] MDE: Cannot direct stream video stream due to profile or setting limitations
DEBUG - [Transcode] Codecs: testing mpeg2video (decoder) with hwdevice nvdec
DEBUG - [Transcode] Codecs: testing mpeg2video (decoder) with hwdevice dxva2
DEBUG - [Transcode] Codecs: hardware transcoding: testing API dxva2

Posted
1 minute ago, justinrh said:

Plex doesn't use FFmpeg

Yes they do. Those are all components of ffmpeg you see in those log lines there.

Posted
2 minutes ago, justinrh said:

Plex doesn't use FFmpeg,

Oh yes, they to. The executable has just a different name.

 

Posted
3 minutes ago, justinrh said:

INFO - [Transcode] [FFMPEG] - MFT name: 'AMDh264Encoder'

They are using Windows Media Foundation for encoding, what we don't do - so you're right and they are in fact able to do hw encoding while we can't (inside service and or RDP).

Though I need to say that this is the first time in years that I'm seeing such situation....
(just a little anomaly in the statistics...)

justinrh
Posted
3 minutes ago, Luke said:

Yes they do. Those are all components of ffmpeg you see in those log lines there.

Right - they might use it but it is not visible to the user.  Maybe it is just under a diff name.

Posted
1 minute ago, justinrh said:

Right - they might use it but it is not visible to the user.  Maybe it is just under a diff name.

Plex Transcoder.exe = ffmpeg.exe

justinrh
Posted
2 minutes ago, cayars said:

Plex Transcoder.exe = ffmpeg.exe

I didn't know their EXE was just FFmpeg (and maybe it is not just FFmpeg, I don't know 🙂 ).

I did find the params:

"C:\Plex Media Server\Plex Transcoder.exe" -codec:#0x100 mpeg2video -hwaccel:#0x100 dxva2 -hwaccel_fallback_threshold:#0x100 10 -codec:#0x101 ac3 -analyzeduration 20000000 -probesize 20000000 -i "D:\media\Recorded TV\Wanted (2008)\Wanted (2008).ts" -filter_complex [0:#0x100]yadif[0];[0]scale=w=852:h=480[1];[1]format=pix_fmts=nv12[2] -map [2] -codec:0 h264_mf -b:0 3934k -hw_encoding:0 1 -r:0 29.969999999999999 -force_key_frames:0 expr:gte(t,n_forced*8) -filter_complex "[0:#0x101] aresample=async=1:ocl='stereo':rematrix_maxval=0.000000dB:osr=48000[3]" -map [3] -metadata:s:1 language=eng -codec:1 aac_mf -b:1 256k -f dash -seg_duration 8 -init_seg_name init-stream$RepresentationID$.m4s -media_seg_name chunk-stream$RepresentationID$-$Number%05d$.m4s -window_size 5 -delete_removed false -skip_to_segment 1 -time_delta 0.0625 -manifest_name http://127.0.0.1:32400/video/:/transcode/session/2nl7wu9t8x736ca7x05ym2e4/4415d62f-38d7-483a-be0b-59a74c09db0a/manifest?X-Plex-Http-Pipeline=infinite -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -start_at_zero -copyts -vsync cfr -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/2nl7wu9t8x736ca7x05ym2e4/4415d62f-38d7-483a-be0b-59a74c09db0a/progress

justinrh
Posted
1 minute ago, softworkz said:

They are using Windows Media Foundation for encoding, what we don't do - so you're right and they are in fact able to do hw encoding while we can't (inside service and or RDP).

OK.  So, Emby has no solution for me now and no expected solution in the future - is that a correct assessment?

Just to summarize the situation:
I do have D3D11, tested at the console (so monitor is online 🙂 ), Plex is doing something different and able to use HW encoding.

Posted
10 minutes ago, justinrh said:

OK.  So, Emby has no solution for me now and no expected solution in the future - is that a correct assessment?

Just to summarize the situation:
I do have D3D11, tested at the console (so monitor is online 🙂 ), Plex is doing something different and able to use HW encoding.

Without RDP and without running Emby as service but starting normally, what hw codecs to you see in Emby?

 

justinrh
Posted
1 hour ago, softworkz said:

Without RDP and without running Emby as service but starting normally, what hw codecs to you see in Emby?

The same as shown above.

  • Solution
Posted

OK, then it's probably really the driver being to old. I'm afraid that I don't have any better news.

Could you possibly replace your $5 CPU with a  $10 CPU (slightly newer)? I don't know your motherboard..

justinrh
Posted

Not really.  There wouldn't be a better iGPU for my MB, and CPUs for it are hard to find anyway.  I'd have to upgrade the system or add a GPU, which I'm reluctant to do because I want to keep the thermal load down.

I appreciate everyone's help.

Posted (edited)

NVM

Edited by mbo
  • 2 weeks later...
Posted

Has this helped resolve your issue?

justinrh
Posted
4 hours ago, Luke said:

Has this helped resolve your issue?

Well...  I got an answer as to why I don't get HWA.  So, I reluctantly answer 'yes', Luke.  I'd like to have found a way to get HWA working 😬

I marked softworkz's post as an answer.

Posted
On 3/25/2021 at 6:07 PM, justinrh said:

Well...  I got an answer as to why I don't get HWA.  So, I reluctantly answer 'yes', Luke.  I'd like to have found a way to get HWA working 😬

I marked softworkz's post as an answer.

Well you can, just outside from RDP, right?

justinrh
Posted (edited)
22 hours ago, Luke said:

Well you can, just outside from RDP, right?

Nope.  I'm told my hardware is not appropriate for Emby to support it.  But that other media server can, so I was surprised Emby wouldn't.

correction:  added the 'not' for appropriate!

Edited by justinrh
Posted
9 minutes ago, justinrh said:

Nope.  I'm told my hardware is appropriate for Emby to support it.  But that other media server can, so I was surprised Emby wouldn't.

Yea, that's the one-in-a-million case, I'm afraid. Normally, it's the other way round.

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