Hardware Transcoding Not Working? Maybe?

It looks like it fell back to software transcoding because the hardware was not ready

Jul 04, 2018 15:09:57.100 [14292] DEBUG - Request: [127.0.0.1:60021 (Loopback)] PUT /video/:/transcode/session/F0B3514C-E9D8-49A5-AA99-B0F4B2FA34B9/312cce2f-f937-4406-ab7e-aafa4ebde58d/progress?progress=0.0&size=-22&remaining=5946&vdec_packets=13&vdec_hw_ok=2&speed=1.4&vdec_hw_status=1 (17 live) Signed-in Token (wesman)
Jul 04, 2018 15:09:57.100 [12600] DEBUG - Completed: [127.0.0.1:60021] 206 PUT /video/:/transcode/session/F0B3514C-E9D8-49A5-AA99-B0F4B2FA34B9/312cce2f-f937-4406-ab7e-aafa4ebde58d/progress?progress=0.0&size=-22&remaining=5946&vdec_packets=13&vdec_hw_ok=2&speed=1.4&vdec_hw_status=1 (17 live) 0ms 326 bytes (range: bytes=0-) 
Jul 04, 2018 15:09:57.329 [11804] ERROR - [Transcoder] [h264_qsv @ 024f1a40] Error during encoding: device failed (-17)
Jul 04, 2018 15:09:57.330 [14292] ERROR - [Transcoder] Video encoding failed
Jul 04, 2018 15:09:57.405 [13852] DEBUG - Jobs: 'C:\Program Files (x86)\Plex\Plex Media Server\PlexTranscoder.exe' exit code for process 17072 is 1 (failure)
Jul 04, 2018 15:09:57.405 [12504] DEBUG - Streaming Resource: Changing client to use software decoding

I don’t why. Have you activated video thumbnail generation to start immediately after adding a new movie? This might have been running in the background.
Or you didn’t wait long enough for one of the previous playback sessions to get properly cleared (I’m just assuming here)

Wait a little longer, then repeat the test with your new remuxed file.
With disabled subtitles.

I think I do have Generate Thumbnail immediately and schedules

I recommend setting that to ‘scheduled’ only. Otherwise it interferes all the time when you want to check something really quick and grabs resources from your server.

Good to know,

Am I to also understand that 1 GPU = 1 HW Transcode?

I was seriously considering something like the NVIDIA GeForce Titan X Pascal for my Media Server. My Server is AWESOME for everything but 4K Transcodes, and at this point, all of my new movies are 4K, and are GENERALLY what all my users want to watch…

But 4K Transcodes are Crushing my i7-7700, I was thinking that linked GPU above would be able to handled several Transcodes at the same time, is that not true?

I’m not 100% sure on the stuff below, but am reasonably comfortable with these answers.

Intel GPU’s can do multiple encodes/decodes at once. I’m not comfortable giving exact numbers on how many. It may depend on the CPU. Perhaps someone who knows more about it than I do.

Most consumer nVidia video cards can handle two hardware encoding sessions. Period. If you want more than two with nVidia, The Quadro 2000 seems to be the preferred choice. I’m currently using Intel so I haven’t done much investigation into it. If you search the forums for Quadro 2000, there are some other posts about it.

Some nVidia cards can’t handle any. I believe the 1030 (which is otherwise awesome for a HTPC) has hardware encoding disabled.

Where is the point if those users lack the bandwidth or the screen to watch in 4K?

For now, I recommend adding a 1080p version and share only that with outside users.
Or tell them to select ‘play version’ if they want to see it stutter-free.

Thanks, As I mentioned, my upload can handle it (one person at a time, possibly two) but its the Transcoding that is the death of me, that is why I was allowing the Original format to remote locations. My family members all have 4K TV’s and fast downloads, if not fast uploads themselves.

I was hoping the Hardware Accelerator be the answer (and it is, as long as they don’t enable PGS Subtitles). but your comment about the Hardware Accelerator Transcode Failing if Thumbnails was being generated at the same time tells me that the onboard GPU can only handle one Transcode at a time.

@OttoKerner Can I ask your opinion on the following setup:

a:) I don’t want the hassle of having Multiple versions of the same file nor SRT’s, but it seems I can not control IF and WHEN users turn on Subtitles (and Crush my CPU) So, I’ll set the following

b.) Limit remote stream bitrate to 8 Mbps 1080P, and create the 8 Mbps versions.

My Question is: if they use a device that requests 720P will it transcode based off the 1080P version or go back to the original 4K version and Crush my CPU Again?

If FFMPG support PGS subtitles with Hardware Acceleration, I’ll just delete the 1080P version. and Add a graphics card that will support at least 2 additional streams (3 total with the GPU, which should solve all my problems.)

Based in user reports it is the latter, unfortunately.
Hence my recommendation to not share the 4K versions at all.

Well, that’s not awesome… do you know, is there any reason that FFMPEG doesn’t support PGS but does SRT? I know you don’t work there but just wondering if there is a reason? I understand PGS’s are images that are overlaid, so perhaps they can’t do that… or just haven’t yet…

if it wasn’t for the PGS subtitles… it would be all sunshine and rainbows!

Sorry, no. I would now know how to interpret it if I even managed to reach the relevant part of the source code. :slight_smile:

The fact that these are images instead of text might play a role here. At least that’s what I have gathered from remarks by developers on occasion.

@OttoKerner I just noticed that when a friend of mine with a i7 Intel Nuc plays one of my 4K movies, it transcodes with (HW) but the Subtitles are ON and listed as “Direct Stream”.

If its supported, does the remote device overlay the subtitles?

You mean he uses the NUC as a plex client?
If so, then yes, he probably uses PMP embedded or Kodi.
Both can overlay any type of subtitles natively.

Yes its the i7 NUC running the Embedded Client. Its good to know it hand handle the subtitles it self.

that is the criteria for being able to do that? the Plex Client has to support hardware encoding?

The playback engine. Usually all Plex clients use what comes natively with the particular device. Including the restrictions and that come with these players.

In the case of the Nvidia shield, the abilities of the native player are bigger than on most other devices.

And in the case of PMP embedded and Kodi, the abilities are not really restricted at all, so these play virtually everything without requiring transcoding on the server.

@OttoKerner Regarding PGS Subs, I still haven’t been able to figure out how much “extra” power is needed to successfully transcode videos with forced PGS on. I thought I saw somewhere there it depends how much subtitles there are in any given video. But basically, curious here as non-PGS subs aren’t an option for me.

The most important restriction is that the code which burns these into the picture is only running on one cpu core. (‘single-threaded’)

So I recommend you to prefer a cpu, which has fewer cores but a high ‘single-thread rating’, rather than a cpu which has more cores but lower single-thread rating.
This single-thread rating is therefore a very important classification.

You can find it beside the overall ‘passmark score’ for most cpu types on this website:
https://www.cpubenchmark.net/

i think one of the main things you’re missing here is usability of the 4k videos. Yes can a 7700k play a 4k video. no doubt about it. yes do you have the sufficient upload bandwidth to send that 4k stream. yes. (here is the biggest caveat) Does the person who is downloading the video have the sufficient bandwidth to actually support and download the stream. this is the biggest issue i found with most of my remote users.

I have gigabit at home so bandwidth is not much of an issue for me, but for my remote users the bandwidth varies between 20mbps all the way to 200mpbs. Even then it has to be a stable connection in order to handle all that data in one hit. Yes i know that transcodes and sending of videos happens in chunks as opposed to all at once, but still we’re talking about probably 1 or 2 gb of data at once per chunk.

I would do what the mod has suggested create a completely new video in a 1080p format with a high bitrate. Honestly the chances of the reciprocating side realizing that its not a true native 4k video are pretty low to be honest. unless the video is smashing down to like 720p or something obnoxiously low. haha.

interesting, I don’t know anyone that doesn’t have at least gigabit download

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