Hardware Transcoding Failing with Multiple OS with P2000

well there is this

Oct 16, 2019 07:04:08.456 [2244] DEBUG - TPU: hardware transcoding: enabled, but no hardware decode accelerator found
Oct 16, 2019 07:04:08.503 [2244] DEBUG - TPU: hardware transcoding: final decoder: , final encoder: 

Oct 16, 2019 07:04:25.788 [5612] DEBUG - Codecs: testing h264_qsv (encoder)
Oct 16, 2019 07:04:25.788 [5612] DEBUG - Codecs: hardware transcoding: testing API qsv
Oct 16, 2019 07:04:26.148 [5612] ERROR - [FFMPEG] - Error initializing an MFX session: -3.
Oct 16, 2019 07:04:26.164 [5612] DEBUG - Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred

this means that plex is not seeing your gpu, so no HW is even attempted.

since you are storing plex files not in their default location, you might want to double check the permissions on

  • D:\Plex Transcode\Transcode
  • D:\Plex Media Server\

is D drive a local drive? or a mapped network drive, or iscsi ?

are the videos LOCAL files, either on the same server or on a local nas ? or are they ‘cloud’ files ?

if not local, you should get some files stored locally on the same server.

But to me, the biggest problem is figuring out why plex is not seeing the gpu.

edit- is DIRECT X installed ? see if you can open start > run > dxdiag

@Patan32

here is what task manager should look similar to when HW transcoding is working

image

here are some logs of my windows desktop test server HW transcoding

Oct 15, 2019 20:46:09.655 [1120] INFO - [FFMPEG] - Initialized an internal MFX session using hardware accelerated implementation
Oct 15, 2019 20:46:09.726 [1120] WARN - [FFMPEG] - Encoder will work with partial HW acceleration
Oct 15, 2019 20:46:09.734 [1120] ERROR - [FFMPEG] - Error initializing the encoder: invalid video parameters (-15)
Oct 15, 2019 20:46:09.746 [1120] WARN - Codecs: avcodec_open2 returned -22 for encoder 'h264_qsv'
...
Oct 15, 2019 20:46:10.419 [1120] DEBUG - Codecs: 10-bit HEVC test succeeded
...
Oct 15, 2019 20:46:10.791 [4752] DEBUG - TPU: hardware transcoding: using hardware decode accelerator nvdec
...
Oct 15, 2019 20:46:11.807 [4752] DEBUG - TPU: hardware transcoding: zero-copy support not present
Oct 15, 2019 20:46:11.807 [4752] DEBUG - TPU: hardware transcoding: final decoder: nvdec, final encoder: nvenc

these entries appear normal after the stream is terminated (for whatever reason)

Oct 15, 2019 20:46:38.422 [4580] DEBUG - Jobs: 'D:\Program Files\Plex\Plex Transcoder.exe' exit code for process 2524 is -1059143458 (intentional termination)
Oct 15, 2019 20:46:38.422 [1120] WARN - Transcode runner appears to have died.
Oct 15, 2019 20:46:38.422 [4752] WARN - Transcode runner appears to have died.
Oct 15, 2019 20:46:38.422 [1388] DEBUG - Job was already killed, not killing again.
Oct 15, 2019 20:46:38.423 [1388] DEBUG - Stopping transcode session jgiv2ahrmoc0nzmhe11g1wxw

D drive is where the plex data is stored.

image

I have another server that I didn’t move the default location for the Plex library. Local files are mounted using network share and cloud is mounted using RaidDrive. I also tried copying files locally and trying it that way and the same issue.

image

Not sure what the hack is going on. Do you want to login to my 20 core server and try things on there? Why is the transcoder dying for no reason? I am pretty sure it’s got all permission since my other system is configured the same and works perfectly. I have Administrator in the Security permission and it’s got full rights.

Perhaps add Users to have full rights on those folders.

Not really sure what else to look at, it “just works” on my windows test box. and my main Debian server as well.

Are you able to play any 3D game that needs a gpu?

We need to have any better familiar with windows hw transcoding looking.

If i use Emby and any video transcoding software it uses the GPU if the software uses Nvidia.

I am not using user account but i can test it
 What CPU have you got? Do you want me to re-image with Windows 10 and you set it up?

What you mean by that?

Did some more testing and i found this. I set the quality to Convert Automatically and it started to transcode. As you can see in the logs it used the right gpu. Original quality is smaller than the transcoded (what’s going on here?).

Encode and Decode is working perfectly on Convert Automatically.

What now?

New System. This is the system i want to use.

OS: Windows 10 Pro
CPU: Xeon E5-2630L V3 8 Cores and 16 threads
Ram: 32GB EEC
Motherboard: Asus x99 RAMPAGE V EXTREME
Graphics Card: P400 - i know, i can do only two transcodes. This is for testing purpose only (can use unlocked drivers).
Plex Version: 1.18.0.1944
*Supermicro 8 bay with IPASS backplane. Adaptec 6805T raid card. I have also tried LSI cards. *
Use hardware acceleration when available - Ticked
*Nvidia Card is pimary GPU with latest drivers. *
Plex installed in default dir.



Monitor plugged in.

Direct x version

Media is in C drive under documents. I have copied some tv shows there. Video format is x264 720P.

Everything is running default and no changes made. Windows is upto date. This motherboard has got no built in HD graphics on the board or CPU. Primary GPU is Nvidia P400 and monitor is connected. Fresh install of Windows 10 Pro 1903 and latest version of Plex Server with new Nvidia drivers. There is no Hyper-V or any software installed. Windows 10 is the supported OS for Plex as i read on plex.tv. This is very basic setup with no network drives or apps installed. Everything is locally stored. Plex is not running as service.

Everything is running on bare metal. I think i have covered all the specs and details, let’s do the test and post the results.

Direct Play works perfect.


Transcoding : Here comes the problem.


Sometimes it finds the GPU and sometimes it doesn’t when you play around in qualty settings.

When set to convert automatically it works perfect. Why? How is it able to find the GPU then?




I need some answers and fix for the issue. What am i doing wrong here? I have given so much information now. I don’t know what the hell is going on here. I don’t want to buy new hardware and not knowing it will work either.

Emby time. I installed Emby on this same machine and use the same video file to test the transcoding and it works perfectly.

Same hardware and same software settings on windows 10 and Emby works perfect. What the hell is wrong with Plex? I think plex transcoder is crap and they need to fix it. This is nothing to do with Windows OS or Hardware i am using.

I have provided a lot of information and testing in this posts. I need help to fix this. Plex Devs help me fix this issue. There is lots of people with similar issue.

Yeah, I’m sorry I don’t have the answers, but that is definitely strange, and I don’t think you are doing anything wrong.

Have you tried watching videos on any other clients besides the web browser? To see if there is any differences in transcoding behavior.

In the first and second tests, the ones you showed with “Direct Stream” on the video, it wasn’t needing to transcode the video
 It was only transcoding the audio
 I’d recommend all further testing be done using those 720p files, but forcing a 480/SD transcode
 And see what results you get, is it still a mixed bag?

Good Morning,

yes i have and it does the same. Did you notice the plex dashboard reports wrong also when it can’t transcode? I have tried a a lot of stuff and nothing seems to work. I wished Plex Devs actually help people who are in need and fix the issue in hand and rather than focusing on stupid features that most people don’t use.

I am really frustrated at this point :frowning:

You are missing the point here, the files are 720P and i forced it to transcode to 480P/SD which it can’t and it reports wrong in Plex Dashboard. Search in this forums and you see people complain about that too. Wrong information showing on Plex dashboards. If you read my logs you can clearly see that i am transcoding both Audio and Video. Plex transcoder is broken and this is why it’s reporting rubbish information to the dashboard.

No further testing needs to be done. I have provided very detailed information in this posts. I have even shown the same file works perfect with Emby and it shows the right details on the dashboard.

To answer your last question i have done that also made no difference. I don’t know what to try at this point and just move to another platform. It’s a shame the Devs don’t seem to care.

Hello @Achilles

Can I get some help here from Devs? I am having the same issue and nothing has changed since the last comment I made on the previous posts.

Love to get this going.

can’t be of any help. I am not a Windows guy. Whatever is happening here exceeds what I know about windows and the hardware abstraction layer (HAL).

Hello,

Thanks for the reply. Do you know who else can help here?

Do you know if you can push this to the devs?

Update:
Ok, i did some tests. I used Ubuntu 18.04 LTS Desktop and installed Lastest beta version of Plex.

Transcoding doesn’t work on this same machine if i use Windows OS. (Any favor)
Server:
Supermicro Xeon 20 cores.
Ram: 128GB ECC
Graphics: Nvidia K2200 only can do unlimited H264.

I used the same video file in my previous test. The transcoder works perfect and it transcodes all video in different quality settings.

First it shows it can’t find the hardware but as soon as i change the quality it finds the hardware and transcodes. Not sure what is different in Windows since it never finds the hardware. I am guessing it’s coding issue in the transcoder.

Here is the log. @ChuckPa @TeknoJunky @Achilles

Clearly shows there is an issue in Windows transcoder. It’s not working well in Windows. I wonder if any libraries are missing in Windows. Can you pass the information onto the Devs or if they can contact me.

1 Like

Hello Jason,

Are you using Windows or Linux?

You asked me that already, read the 4th reply to this thread :wink:

But I am using Windows 10 Pro


Sorry my bad.

1 Like

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