I couldn’t get scaling working correctly, when using the configure params from the original Plex Transcoder, so I just used as little as possible. Worked fine for me. I am currently working on getting hdr tonemapping working with opencl, so that it is actually possible when doing live transcodes (not sure if that’s really possible yet, but got 13fps on the cpu alone, so I am confident that I can get more than that using opencl).
When I have finished finding parameters that actually work, I plan on getting a working build script (there already is one in the branch, but the params are off) as well as a replacement for the transcoder that is customizable (i.e. enable disable replacement, only replace transcoding sessions, enable / disable hdr tonemapping, etc.)
What you may also notice, is that the current build script first downloads some codecs from the plex servers. The transcoder is built in a way, that uses as little codecs built into ffmpeg as possible, however, I gave up on that since it’s just to much work.
I recommend trying to build the fork in a “normal” way, i.e. like you would do normally for ffmpeg on your system. I am testing this on ubuntu.
Also, for hdr tonemapping, I have a seperate branch now, plex-changes-4.0.2. (actually the current one is probably broken, since I merged ffmpeg master in Commit b17dc695c904dbc9250aec345d7dc29249ed70c5 should still be fine.)
+1 For decoding on Nvidia in Linux (I have a p2000). I’m in a position now where I either have to switch to Windows, or upgrade my mb/cpu/ram to handle all the decoding my CPU (i7-3770) is doing for 4k. Id rather not throw hardware at a software limitation.
We need to have this. Emby can do it. I test earlier with my rig, Emby, using a P2000. I had 4 x H265 4K Movies with True-HD and DTS-HD Audio tracks playing, being transcoded to H264 1080P 15Mbps, and my CPU load was 3.
I’ve already starred and watched the git repo. Sadly I cannot provide any significant assistance on it but watching it like a hawk. If you guys manage to fully get Nvidia encode and decode with a bonus of tonemapping support, that’d be the holy grail IMHO and I’d gladly toss some funds your way.
I honestly don’t know why this is still an issue. They could have added this well over a year ago. All they had to do was add “–enable-decoder=cuvid” into the ffmpeg build parameters and it would hw decode on nvidia.
Hi, i am a AMD rzyen 2400G user , not commercial, i think no one will take me as a non-domestic user
even using AMD 580 、570 which is cheaper than others at same level performance
I’m using hardware transcoding on a Nvidia GT650M in linux just fine.
All I pretty much had to do was install the CUDA drivers and a small boot kernel config tweak and it worked straight away.
Since hw decoding isn’t working with nvdec yet, is it possible to have the Intel QSV do hw decode while the Nvidia nvenc does hw encode? I have an Nvidia P2000 and new Intel i5-9600k which should be a powerful combination. I’m only able to get hardware encoding though. The decode is being done by software. I’d love to get them both active at the same time since we don’t know when Plex will add support for full hw with Nvidia only.
Can you provide some more info other than saying it works? The last time I checked, plex’s transcoder (ffmpeg) simply does not support hw decode with nvidia on linux because it wasn’t built to support it
I want to try it both ways and test it out (Nvidia only, Intel only, and combination of both). However, I can’t get the Intel hw transcoding to work at all right now. I tried a bunch of things yesterday but it would cause Plex to crash every time it started to transcode anything. I suspect it is the same issue as reported over here with the new i5-9600k: https://forums.plex.tv/t/hw-trancoding-not-work-on-i5-9600k/331081
As far as I can tell, the Intel side should “just work” with Ubuntu 18.04 since the drivers are built into the kernel. However, that might not be the case with the newest Intel cpus.
That video shows hardware encoding, not hw decode.
If you look at the text in the windows at 10:08 https://youtu.be/bQLgbc9NFdU?t=608 you’ll see that it says Transcoding H264 to H264 (hw) Notice how the first H264 does not have a (hw) next to it. That means decode is software.
Full hw transcode would say Transcoding H264 (hw) to H264 (hw)
Anyway, here’s the build configuration of Plex’s ffmpeg for all interested: