Jump to content

Recommended Posts

Posted

Hi Everyone,

I setup an Emby server on a dedicated windows 10 desktop which has an NVIDIA NVEC compatible GPU. I am able to watch and transcode videos up to 4K when using the CPU/Software transcoding method when connecting directly over a LAN IP and publicly through a WAN IP and even with an SSL secured domain. Now the next step was hardware transcoding with the GPU. I set this up with a Premiere license and it works great on everything except when connecting publicly through a WAN IP and domain. I can watch and transcode video up to 4K by connecting through the local IP though. My internet connection is fast enough that I am able to watch 4K videos without transcoding in their original quality, this I discovered when I was using the CPU/Software transcoding method. The same issue also happened when trying Jellyfin. For the sake of getting the server setup and troubleshooting it, it is currently not going through any VPNs, Clouldflare products. or any thing special like that. The GPU is running the latest NVIDIA software and Windows 10 is completely up to date.

I would be happy to send over any logs or further information to hopefully get this resolved.

Thanks so much!

Posted

Hello _CAP_,

** This is an auto reply **

Please wait for someone from staff support or our members to reply to you.

It's recommended to provide more info, as it explain in this thread:


Thank you.

Emby Team

Posted

I am using the Brave browser which is essentially Chrome.

Did not get any error messages on the user end, however I did see an error entered into the file named 'Log'.

I have attached the main log as well as some transcoding logs as well.

hardware_detection-63836610646.txt Log.txt ffmpeg-transcode-e33b9306-5dc3-4366-b494-cd395cb141b6_1.txt ffmpeg-transcode-aadb2bd5-56aa-40de-b325-792a77e2a456_1.txt ffmpeg-transcode-d801f418-2028-422e-a007-6ebc93bc6cc4_1.txt

Posted

Can you try Chrome or MS Edge and see how that compares? Over the years we've seen lots of quirks with brave.

Posted

Just gave Chrome and Edge a go, same issue sadly.

GrimReaper
Posted

Not sure where your issue lies, as all three transcoding logs show your Quadro being used with no errors/fallback to transcoding in software:

Quote
>>>>>>  Hardware Decoders for h264
        [X] NVDEC Quadro P620 - H.264 (AVC)
        [X] QuickSync Intel UHD Graphics 630 - D3D11 [1] - H.264 (AVC)
        [X] DX11VA NVIDIA Quadro P620 - H.264 (AVC)
        [X] DX11VA Intel(R) UHD Graphics 630 [1] - H.264 (AVC)

>>>>>>  Hardware Encoders for h264
        [X] NVENC Quadro P620 - H.264 (AVC)
        [X] QuickSync Intel UHD Graphics 630 - D3D11 [1] - H.264 (AVC)

>>>>>>  Selected Codecs
Decoder NVDEC Quadro P620 - H.264 (AVC)
        Adapter #0: 'Quadro P620' ComputeCapability: 6.1
        Max Bitrate: 234 Mbit/s - Frame Sizes: 48x16...4096x4096 - Width Alignment: 2 - Height Alignment: 2
        Color Formats: NV12 - Bit Depths: 8
        Profiles: Constrained Baseline Profile (Level 6), Baseline Profile (Level 6), Main Profile (Level 6), High Profile (Level 6), Constrained High Profile (Level 6), Progressive High Profile (Level 6)

Encoder NVENC Quadro P620 - H.264 (AVC)
        Adapter #0: 'Quadro P620' ComputeCapability: 6.1
        Max Bitrate: 781 Mbit/s - Frame Sizes: max 4096x4096 - Width Alignment: 2 - Height Alignment: 2
        Color Formats: NV12, P010, P016 - Bit Depths: 8, 10, 12, 14, 16
        Profiles: Baseline Profile (Level 6.2), Main Profile (Level 6.2), High Profile (Level 6.2), High 4:4:4 Predictive Profile (Level 6.2)


>>>>>>  FindVideoEncoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Automatic
Info    Checking: 'NVENC Quadro P620 - H.264 (AVC)'
Info    Check successful - selecting 'NVENC Quadro P620 - H.264 (AVC)'

>>>>>>  FindVideoDecoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Automatic
Info    Checking: 'NVDEC Quadro P620 - H.264 (AVC)'
Info    Check successful - selecting 'NVDEC Quadro P620 - H.264 (AVC)'

>>>>>>  Processing Plan
        Name                                        CanDoInHW  WillDoInHW  Reason                                                 
        NVDEC Quadro P620 - H.264 (AVC)          >> True       True        Hardware Codec                                          
        VideoInput                               >> True       True        Matching hardware context                               
        VideoOutput                              >> True       True        Hardware encoder                                        
        NVENC Quadro P620 - H.264 (AVC)          >> True       True        Hardware Codec                                          

>>>>>>  Video Processing Steps for [0:0]: H.264 (AVC)
        Step                    HW-Context   Format       SW-Format           Size   Next
        H264                 >> CUDA         cuda         nv12           3840x2160 >> 
Quote
>>>>>>  Hardware Decoders for h264
        [X] NVDEC Quadro P620 - H.264 (AVC)
        [X] QuickSync Intel UHD Graphics 630 - D3D11 [1] - H.264 (AVC)
        [X] DX11VA NVIDIA Quadro P620 - H.264 (AVC)
        [X] DX11VA Intel(R) UHD Graphics 630 [1] - H.264 (AVC)

>>>>>>  Hardware Encoders for h264
        [X] NVENC Quadro P620 - H.264 (AVC)
        [X] QuickSync Intel UHD Graphics 630 - D3D11 [1] - H.264 (AVC)

>>>>>>  Selected Codecs
Decoder NVDEC Quadro P620 - H.264 (AVC)
        Adapter #0: 'Quadro P620' ComputeCapability: 6.1
        Max Bitrate: 234 Mbit/s - Frame Sizes: 48x16...4096x4096 - Width Alignment: 2 - Height Alignment: 2
        Color Formats: NV12 - Bit Depths: 8
        Profiles: Constrained Baseline Profile (Level 6), Baseline Profile (Level 6), Main Profile (Level 6), High Profile (Level 6), Constrained High Profile (Level 6), Progressive High Profile (Level 6)

Encoder NVENC Quadro P620 - H.264 (AVC)
        Adapter #0: 'Quadro P620' ComputeCapability: 6.1
        Max Bitrate: 781 Mbit/s - Frame Sizes: max 4096x4096 - Width Alignment: 2 - Height Alignment: 2
        Color Formats: NV12, P010, P016 - Bit Depths: 8, 10, 12, 14, 16
        Profiles: Baseline Profile (Level 6.2), Main Profile (Level 6.2), High Profile (Level 6.2), High 4:4:4 Predictive Profile (Level 6.2)


>>>>>>  FindVideoEncoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Automatic
Info    Checking: 'NVENC Quadro P620 - H.264 (AVC)'
Info    Check successful - selecting 'NVENC Quadro P620 - H.264 (AVC)'

>>>>>>  FindVideoDecoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Automatic
Info    Checking: 'NVDEC Quadro P620 - H.264 (AVC)'
Info    Check successful - selecting 'NVDEC Quadro P620 - H.264 (AVC)'

>>>>>>  Processing Plan
        Name                                        CanDoInHW  WillDoInHW  Reason                                                 
        NVDEC Quadro P620 - H.264 (AVC)          >> True       True        Hardware Codec                                          
        VideoInput                               >> True       True        Matching hardware context                               
        VideoOutput                              >> True       True        Hardware encoder                                        
        NVENC Quadro P620 - H.264 (AVC)          >> True       True        Hardware Codec                                          

>>>>>>  Video Processing Steps for [0:0]: H.264 (AVC)
        Step                    HW-Context   Format       SW-Format           Size   Next
        H264                 >> CUDA         cuda         nv12           3840x2160 >>
Quote
>>>>>>  Hardware Decoders for h264
        [X] NVDEC Quadro P620 - H.264 (AVC)
        [X] QuickSync Intel UHD Graphics 630 - D3D11 [1] - H.264 (AVC)
        [X] DX11VA NVIDIA Quadro P620 - H.264 (AVC)
        [X] DX11VA Intel(R) UHD Graphics 630 [1] - H.264 (AVC)

>>>>>>  Hardware Encoders for h264
        [X] NVENC Quadro P620 - H.264 (AVC)
        [X] QuickSync Intel UHD Graphics 630 - D3D11 [1] - H.264 (AVC)

>>>>>>  Selected Codecs
Decoder NVDEC Quadro P620 - H.264 (AVC)
        Adapter #0: 'Quadro P620' ComputeCapability: 6.1
        Max Bitrate: 234 Mbit/s - Frame Sizes: 48x16...4096x4096 - Width Alignment: 2 - Height Alignment: 2
        Color Formats: NV12 - Bit Depths: 8
        Profiles: Constrained Baseline Profile (Level 6), Baseline Profile (Level 6), Main Profile (Level 6), High Profile (Level 6), Constrained High Profile (Level 6), Progressive High Profile (Level 6)

Encoder NVENC Quadro P620 - H.264 (AVC)
        Adapter #0: 'Quadro P620' ComputeCapability: 6.1
        Max Bitrate: 781 Mbit/s - Frame Sizes: max 4096x4096 - Width Alignment: 2 - Height Alignment: 2
        Color Formats: NV12, P010, P016 - Bit Depths: 8, 10, 12, 14, 16
        Profiles: Baseline Profile (Level 6.2), Main Profile (Level 6.2), High Profile (Level 6.2), High 4:4:4 Predictive Profile (Level 6.2)


>>>>>>  FindVideoEncoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Automatic
Info    Checking: 'NVENC Quadro P620 - H.264 (AVC)'
Info    Check successful - selecting 'NVENC Quadro P620 - H.264 (AVC)'

>>>>>>  FindVideoDecoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Automatic
Info    Checking: 'NVDEC Quadro P620 - H.264 (AVC)'
Info    Check successful - selecting 'NVDEC Quadro P620 - H.264 (AVC)'

>>>>>>  Processing Plan
        Name                                        CanDoInHW  WillDoInHW  Reason                                                 
        NVDEC Quadro P620 - H.264 (AVC)          >> True       True        Hardware Codec                                          
        VideoInput                               >> True       True        Matching hardware context                               
        Scaling                                  >> True       True                                                                
        VideoOutput                              >> True       True        Hardware encoder                                        
        NVENC Quadro P620 - H.264 (AVC)          >> True       True        Hardware Codec                                          

>>>>>>  Video Processing Steps for [0:0]: H.264 (AVC)
        Step                    HW-Context   Format       SW-Format           Size   Next
        H264                 >> CUDA         cuda         nv12           3840x2160 >> superscale_cuda
        superscale_cuda      >> CUDA         cuda         nv12             720x404 >> setsar

Can you share a log where you feel only CPU was used for transcoding? 

GrimReaper
Posted

Yes, that sessions was transcoded in software only:

Quote
>>>>>>  Selected Codecs
Decoder Automatic software decoder


Encoder x264 Software Encoder
        Max Bitrate: 781 Mbit/s
        Color Formats: YUV420P, YUVJ420P, YUV422P, YUVJ422P, YUV444P, YUVJ444P, NV12, NV16, NV21, YUV420P10, YUV422P10, YUV444P10, NV20, GRAY8, GRAY10 - Bit Depths: 8, 10, 12, 14
        Profiles: Baseline Profile (Level 6.2), Main Profile (Level 6.2), High Profile (Level 6.2), High 10 Profile (Level 6.2), High 4:2:2 Profile (Level 6.2), High 4:4:4 Predictive Profile (Level 6.2)


>>>>>>  FindVideoEncoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Disabled
Info    Checking: 'x264 Software Encoder'
Info    Check successful - selecting 'x264 Software Encoder'

>>>>>>  FindVideoDecoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Disabled
Info    Checking: 'Automatic software decoder'
Info    Check successful - selecting 'Automatic software decoder'

>>>>>>  Processing Plan
        Name                                        CanDoInHW  WillDoInHW  Reason                                                 
        Automatic software decoder               >> False      False       Software Codec                                          
        VideoInput                               >> False      False       Not a hardware decoder                                  
        VideoOutput                              >> False      False       Not a hardware encoder                                  
        x264 Software Encoder                    >> False      False       Software Codec                                          

>>>>>>  Video Processing Steps for [0:0]: H.264 (AVC)
        Step                    HW-Context   Format       SW-Format           Size   Next
        H264                 >> -            yuv420p      yuv420p     

But your HWA appears disabled:

Quote

>>>>>> FindVideoDecoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Disabled

Quote

>>>>>> FindVideoDecoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Disabled

What do you have set under Settings> Transcoding "Use hardware accelleration..." field? 

Also, if you go to Settings>Premiere tab (where you enter your Premiere key), does it return your subscription as valid? 

Posted

Yes I disabled HWA for that test to create that long I sent in. I checked the subscription and its valid.

For the settings I tried both yes and advanced mode. With advanced mode on I made sure to put the GPU and NVEC at the top of all preferred hardware decoders and enabled it.

GrimReaper
Posted
1 minute ago, _CAP_ said:

Yes I disabled HWA for that test to create that long I sent in

Then I obviously misunderstood your query, as topic title says:

Quote

CPU Transcoding works on WAN, GPU does not.

I thought your GPU was not used for WAN transcoding. 

Can you explain what is the issue then? 

Posted

The first log I sent in was with the GPU handling the transcoding. The second set of logs I sent in was with the CPU handling it.

The CPU works fine with transcoding over the WAN/Domain but the GPU does not, it freezes every few seconds.

GrimReaper
Posted (edited)

You sent two sets of logs:

1. Here:

Here there are 3 transcoding logs, all three handled by GPU

2. And here:

HWA was disabled so GPU cannot be utilised. 

So, I still don't get where are you encountering issues that you're trying to describe/what the actual issue is. 

Edited by GrimReaper
Posted

I am encountering the issue with the GPU transcoding and that's the first set of logs, the second set of logs I sent was when I switched it back to the CPU to create a CPU transcoding log. 

The issue I face is with GPU transcoding set to on and connecting through a WAN connection. When GPU transcoding is on that's where the playback issue starts. When using the CPU to transcode over a WAN the problem goes away. My end goal is to use the GPU to transcode but it being stopped by this issue.

Hope this clear up any confusion.

GrimReaper
Posted
6 minutes ago, _CAP_ said:

I am encountering the issue with the GPU transcoding and that's the first set of logs

 

6 minutes ago, _CAP_ said:

The issue I face is with GPU transcoding set to on and connecting through a WAN connection. When GPU transcoding is on that's where the playback issue starts

Ok, so what are the issues you're encountering? Buffering, artefacts, stuttering? As neither of those logs throws any error, you're getting speeds between 1.3x and 4x and FPS>24 depending on the media played, all of which generally indicate uninterrupted playback. 

Posted

Ah my apologies for not being more clear in regards to playback. No Artifacts or buffering but just stuttering. The video will start to play then freeze for a moment then continue. There is no on screen indicator to show that loading is happening during this time either. This is only happening on 4K videos. The player will automatically drop the video down to 1080p at 15 Mbps. I know that it can playback at a higher quality through the same connection as it was able to when running through the CPU. 1080p content will actually play at a quality higher than 15 Mbps when running through the GPU on WAN.

GrimReaper
Posted (edited)

I'd say your entry-level Pascal Quadro P620 (same architecture as used in GTX10x series) is simply underpowered/borderline powerful enough to go 1:1 4K transcode. 

Session 1: GPU decode 4K, GPU encode 4K:

Quote
>>>>>>  FindVideoEncoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Automatic
Info    Checking: 'NVENC Quadro P620 - H.264 (AVC)'
Info    Check successful - selecting 'NVENC Quadro P620 - H.264 (AVC)'

>>>>>>  FindVideoDecoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Automatic
Info    Checking: 'NVDEC Quadro P620 - H.264 (AVC)'
Info    Check successful - selecting 'NVDEC Quadro P620 - H.264 (AVC)'

>>>>>>  Processing Plan
        Name                                        CanDoInHW  WillDoInHW  Reason                                                 
        NVDEC Quadro P620 - H.264 (AVC)          >> True       True        Hardware Codec                                          
        VideoInput                               >> True       True        Matching hardware context                               
        VideoOutput                              >> True       True        Hardware encoder                                        
        NVENC Quadro P620 - H.264 (AVC)          >> True       True        Hardware Codec                                          

>>>>>>  Video Processing Steps for [0:0]: H.264 (AVC)
        Step                    HW-Context   Format       SW-Format           Size   Next
        H264                 >> CUDA         cuda         nv12           3840x2160 >>

Transcoding speeds avg. ~1.3x, FPS ~34.

Quote
15:52:13.007 elapsed=00:00:13.39 frame=  444 fps= 33 q=21.0 size=N/A time=00:00:18.34 bitrate=N/A throttle=off speed=1.37x    

Session 2: GPU decode 4K, GPU encode 4K:

Same as above. 

Session 3: GPU decode 4K, GPU encode 720p:

Quote
>>>>>>  FindVideoEncoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Automatic
Info    Checking: 'NVENC Quadro P620 - H.264 (AVC)'
Info    Check successful - selecting 'NVENC Quadro P620 - H.264 (AVC)'

>>>>>>  FindVideoDecoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Automatic
Info    Checking: 'NVDEC Quadro P620 - H.264 (AVC)'
Info    Check successful - selecting 'NVDEC Quadro P620 - H.264 (AVC)'

>>>>>>  Processing Plan
        Name                                        CanDoInHW  WillDoInHW  Reason                                                 
        NVDEC Quadro P620 - H.264 (AVC)          >> True       True        Hardware Codec                                          
        VideoInput                               >> True       True        Matching hardware context                               
        Scaling                                  >> True       True                                                                
        VideoOutput                              >> True       True        Hardware encoder                                        
        NVENC Quadro P620 - H.264 (AVC)          >> True       True        Hardware Codec                                          

>>>>>>  Video Processing Steps for [0:0]: H.264 (AVC)
        Step                    HW-Context   Format       SW-Format           Size   Next
        H264                 >> CUDA         cuda         nv12           3840x2160 >> superscale_cuda
        superscale_cuda      >> CUDA         cuda         nv12             720x404 >> setsar
        setsar               >> CUDA         cuda         nv12             720x404 >>

Transcoding speeds avg. 4x+, FPS 100+:

Quote
15:51:52.695 elapsed=00:00:09.81 frame= 1049 fps=107 q=27.0 size=N/A time=00:00:43.79 bitrate=N/A throttle=off speed=4.46x

Session 4: CPU decode 4K, CPU encode 4K:

Quote
>>>>>>  FindVideoEncoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Disabled
Info    Checking: 'x264 Software Encoder'
Info    Check successful - selecting 'x264 Software Encoder'

>>>>>>  FindVideoDecoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Disabled
Info    Checking: 'Automatic software decoder'
Info    Check successful - selecting 'Automatic software decoder'

>>>>>>  Processing Plan
        Name                                        CanDoInHW  WillDoInHW  Reason                                                 
        Automatic software decoder               >> False      False       Software Codec                                          
        VideoInput                               >> False      False       Not a hardware decoder                                  
        VideoOutput                              >> False      False       Not a hardware encoder                                  
        x264 Software Encoder                    >> False      False       Software Codec                                          

>>>>>>  Video Processing Steps for [0:0]: H.264 (AVC)
        Step                    HW-Context   Format       SW-Format           Size   Next
        H264                 >> -            yuv420p      yuv420p        3840x2160 >>

Transcoding speeds avg. ~2.7x+, FPS 60+

Quote
20:57:08.130 elapsed=00:00:03.10 frame=  210 fps= 68 q=28.0 size=N/A time=00:00:08.76 bitrate=N/A throttle=off speed=2.82x

Based on above, your CPU is powerful enough to give you comfortable buffer on 4K transcode while P620 is barely keeping up unless quality lowered. Try putting QS UHD630 on top of preffered decoders and/or encoders (or make a combination of P620 decode and UHD630 encode or vice-versa) and see how does that compare. 

Edited by GrimReaper
Posted

Huh interesting, and connecting through a WAN would make a difference? I am able to transcode when connecting to the local IP on the LAN.

GrimReaper
Posted

The only difference would be network-related (latency, quality). What do you have set for Streaming quality under client Playback settings? 

GrimReaper
Posted

Btw, you should really go with:

6 hours ago, Luke said:

Can you try Chrome or MS Edge and see how that compares? Over the years we've seen lots of quirks with brave.

Enable "Use hardware accelleration where available" in browser Settings>System tab and you'd likely be able to DirectPlay that content. 

Posted

On the client side I have the quality set to the lowest 4K option, 4k 40 Mbps, the issue also persists at HD level settings.

Hardware acceleration is enabled in browser settings too.

GrimReaper
Posted
1 minute ago, _CAP_ said:

On the client side I have the quality set to the lowest 4K option, 4k 40 Mbps

You should increase that as you're playing 80+ Mbps item and limiting bandwidth, hence transcoding:

Quote
&TranscodeReasons=ContainerBitrateExceedsLimit

 

Posted

Just tired increasing playback quality on video player on the client side, it causes the frequency of freezing during playback to increase.

GrimReaper
Posted

Was that DirectPlaying or Transcoding? 

Posted

When trying to playback over WAN it does not give me the option for direct, however over LAN it does when selecting the Auto setting under playback quality.

To try and find a close direct mode I connected over LAN, maxed the quality out and opened up Stats for Nerds. It says the source content is 84 mbps. So on the WAN connection I set the client playback to 100 Mbps and stats for nerds then reports its doing Direct play as it will not transcode up.

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