keylase / nvidia-patch

This patch removes restriction on maximum number of simultaneous NVENC video encoding sessions imposed by Nvidia to consumer-grade GPUs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Works with Plex Media Server!

niXta1 opened this issue · comments

Environment (please complete the following information):

  • OS: Ubuntu 18.04 (Windows not tested)
  • GPU model: GTX 1050Ti

Additional context
Plex has updated ffmpeg with the v1.15 (plexpass) release and the patch now works perfectly!
Pair it with this script for full HW transcoding:
https://forums.plex.tv/t/hardware-accelerated-decode-nvidia-for-linux/233510/172

Can't wait for this to hit the docker image

Thank you, @niXta1!

Merged PR #52 which reflects info collected by you in main doc file. I'll keep this issue open for a while to let people know.

Can't wait for this to hit the docker image

@edasque here is a pre scripted (hw nvdec added) docker image: https://hub.docker.com/r/adnanklink/plex-norelay-hwdecoding

I tried this for 418.81 on Windows 10 64 bits and is not working. ...

@imayo We would need to know the arguments for the ffmpeg. Some info can be acquired by using debug and looking in the console.
Can you confirm which ffmpeg version it is?

ffmpeg directly, emby and plex on linux works, so it feels like it should work - if plex really uses nvdec+nvenc...

Right now it’s behaving exacly as before the update, this makes me think that it might still use dxva2+mf on windows.

At this moment it is still unclear if mentioned above technique works for Plex on Windows. If it has NVENC/NVDEC-capable ffmpeg and it is possible to make similar wrapper enabling required FFmpeg options, then full HW support can be achieved. If it hasn't - sad, but nothing to do here, it's Plex issue.

Either way I consider work on this issue completed.

At this moment it is still unclear if mentioned above technique works for Plex on Windows. If it has NVENC/NVDEC-capable ffmpeg and it is possible to make similar wrapper enabling required FFmpeg options, then full HW support can be achieved. If it hasn't - sad, but nothing to do here, it's Plex issue. ...

@Snawoot I've got an answer on plex forums that it's still using dxva2+mf. It should be possible to use a script to force NVDEC/ENC but that is outside the scope of this patch.
All in all, Great Success!