1050Ti GPU not working in QNAP TS-1677XU-RP

Server Version#: 1.25.3.5409

I recently installed a GeForce GTX 1050Ti GPU in my QNAP TS-1677XU-RP NAS. However, when I attempt to use h/w transcoding in Plex, I get the following error message in the logs:

Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Input/output error

QNAP contacted Plex as a matter of course, and suggested that Plex indicated it was an issue with PMS, not the QNAP. Starting a thread here with the hope that one of you might be able to help.

Thanks!

@rmdonnelly

Would you please be kind enough to capture what’s happening?

  1. Verify DEBUG logging is enabled ; VERBOSE is disabled ; SAVE if changes

  2. Start the playback

  3. Let play until known failure point.

  4. Stop Playback

  5. Wait 20 seconds for logs to flush to disk

  6. Download logs ZIP file

  7. Attach for us to review

We have a GT-1050TI in our TS-877 in the HQ NAS lab which is the 8 bay version of your 16 bay machine.

Here you go, thanks for the help!
plex-logs.zip (5.0 MB)

Hi @ChuckPa. Was this enough data to help diagnose the issue?

Thanks!

Hi,
Yes, that’s enough to show me what’s happening.

Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] MDE: Selected protocol dash; container: mp4
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] MDE: analyzing media item 1966871
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] MDE: Avengers: Endgame (2019): Direct Play is disabled
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] MDE: Avengers: Endgame (2019): media must be transcoded in order to use the dash protocol
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] MDE: Avengers: Endgame (2019): no direct play video profile exists for http/mkv/hevc
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] MDE: Avengers: Endgame (2019): no direct play video profile exists for http/mkv/hevc/truehd
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] MDE: Avengers: Endgame (2019): no direct play video profile exists for http/mkv/hevc/ac3
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] MDE: Avengers: Endgame (2019): no direct play video profile exists for http/mkv/hevc/ac3
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Avengers: Endgame - video.bitDepth limitation applies: 10 > 8
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Avengers: Endgame - audio.channels limitation applies: 8 > 6
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] MDE: Avengers: Endgame (2019): Direct Streaming is disabled, so video stream will be transcoded
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] MDE: Avengers: Endgame (2019): no remuxable profile found, so video stream will be transcoded
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Codecs: testing h264_nvenc (encoder)
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Codecs: hardware transcoding: testing API nvenc
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] ERROR - [Transcode/et7gkcp95w9ak7et8547exad] [FFMPEG] - Cannot load libcuda.so.1
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] ERROR - [Transcode/et7gkcp95w9ak7et8547exad] [FFMPEG] - Could not dynamically load CUDA
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Could not create hardware context for h264_nvenc
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] MDE: Cannot direct stream video stream due to profile or setting limitations
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Codecs: testing hevc (decoder) with hwdevice vaapi
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Codecs: hardware transcoding: testing API vaapi
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] ERROR - [Transcode/et7gkcp95w9ak7et8547exad] [FFMPEG] - libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] ERROR - [Transcode/et7gkcp95w9ak7et8547exad] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: I/O error
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Could not create hardware context for hevc
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Codecs: testing hevc (decoder) with hwdevice nvdec
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Codecs: hardware transcoding: testing API nvdec
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] ERROR - [Transcode/et7gkcp95w9ak7et8547exad] [FFMPEG] - Cannot load libcuda.so.1
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] ERROR - [Transcode/et7gkcp95w9ak7et8547exad] [FFMPEG] - Could not dynamically load CUDA
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Could not create hardware context for hevc
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Scaled up video bitrate to 184594Kbps based on 4.500000x fudge factor.
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] Scaled maximum bitrate for resolution reduction to 64835Kbps.
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] MDE: Avengers: Endgame (2019): Audio Direct Streaming is disabled, so video's audio stream will be transcoded
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] MDE: Cannot direct stream audio stream due to profile or setting limitations
Jan 25, 2022 17:04:14.518 [0x7f6178cd2b38] DEBUG - [Transcode/et7gkcp95w9ak7et8547exad] MDE: Avengers: Endgame (2019): selected media 2 / 1966871

If you’re comfortable SSH into the QNAP as admin (must be ‘root’).

  1. Verify QTS sees the card
/sbin/gpuhal_app -l
  1. Look at the ID value (the hex digit in the first column of the output)
gpuhal_app -s ID_NUMBER_HERE
  1. It will return
    driver_installed=1 status if a valid driver is found
    real_status=2 status if the card is in QTS mode.

  2. When both conditions are satisfied, the path to the drivers is given to PMS (for the CUDA drivers)

  3. PMS will then know how to access it.

@ChuckPa Here you go:

[~] # /sbin/gpuhal_app -l

b:NVIDIA Corporation:GP107 [GeForce GTX 1050 Ti]:external:7

[~] # /sbin/gpuhal_app -s b

active_status=2,real_status=2,driverqpkg=NVIDIA_GPU_DRV,driver_installed=1,in_used=none,transcode=1,display=1,pcie_slot=4,pcie_vp=1,va_type=none

[~] #

That’s correct with the exception of transcode=1.

I don’t know if that’s what QNAP changed regarding their media apps using the card for Video Station.

Our lab is currently down for maintenance (a few hours).
When it’s back online, I’ll be able to look at our TS-877

Got back into our lab.

[~] # gpuhal_app -l
f:NVIDIA Corporation:GP107 [GeForce GTX 1050 Ti]:external:7
[~] # gpuhal_app -s f
active_status=2,real_status=2,driverqpkg=NVIDIA_GPU_DRV,driver_installed=1,in_used=none,transcode=1,display=1,pcie_slot=1,pcie_vp=1,va_type=none
[~] # gpuhal_app -l
f:NVIDIA Corporation:GP107 [GeForce GTX 1050 Ti]:external:7
[~] # gpuhal_app -s f
active_status=2,real_status=2,driverqpkg=NVIDIA_GPU_DRV,driver_installed=1,in_used=none,transcode=1,display=1,pcie_slot=1,pcie_vp=1,va_type=none
[~] # uname -a Linux QNAP-TS877 5.10.60-qnap #1 SMP Tue Dec 21 01:48:55 CST 2021 x86_64 GNU/Linux
[~] #

This is definitely a question for QNAP.

@ChuckPa

OK thanks, I’ll push this thread back to them. The issue is that the transcode=1 flag is preventing the driver path from being passed to PMS?

Question before you go.

Is the card in an 8x slot ?

No, the flag is not blocking Plex. I just ran a transcode test successfully

I only check for QTS mode and driver availability in order to pass to PMS.
I don’t look at anything else.

I think it’s an 8x slot (attaching picture to confirm).

Also, @chuckpa, can you confirm the firmware on your lab box? I am running 5.0.0.1891.

Yes, am running 5.0.0.1891

I’m 3000 miles away from our lab. Does that 1050 Ti need the extra power lead hooked up?

My TVS-1282 has one available if I need it.

As far as I can tell, the ASUS version of the 1050Ti doesn’t have an additional power input. I did double check and the fan is spinning, just with the power from the pcie slot.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.