Code Monkey home page Code Monkey logo

nvencsessionlimitbump's Introduction

Nvenc Session Limit Bump

When using the patch from https://github.com/keylase/nvidia-patch/ on Windows the NvEnc session limit is raised for CUDA encoding sessions, but not for other surface types. There is however a work-around. When you first 'enable' the sessions using CUDA surface based encoders, they will remain enabled for other types of surfaces until a reboot.

This program creates a configurable amount of sessions on a Nvidia GPU so the session limit is changed until the next reboot.

Usage

The default operation is to enable 32 encoding sessions on all Nvidia GPU's. Arguments:

 -h, --help
      Print help and exit
 -g, --gpu
     The GPU id to bump the limit on (default: all)
 -s, --sessions
     The number of encoding sessions to unlock (default: 32)

Compiling

A Visual Studio 2017 project is included in the code. Windows only. x64 only.

Dependencies

Nvidia Cuda Toolkit needs to installed: https://developer.nvidia.com/cuda-downloads Nvidia Video Codec SDK needs to be installed: https://developer.nvidia.com/nvidia-video-codec-sdk#Download

A nice command line parser is used for... parsing the arguments. File is include in the code, original can be found here: https://github.com/vietjtnguyen/argagg

nvencsessionlimitbump's People

Contributors

jantenhove avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nvencsessionlimitbump's Issues

Use in Linux?

Hi,
This is exactly what I'm looking for to limit the number of GPU transcodes on a patched Nvidia card, only problem is I'm running it in a Linux docker, is there anyway to run this from Linux?

Thanks in advance!

Detalied Instructions

Are the dependencies only needed for compling? I've installed the nvidia-patch and need to limit my NVENC encodes to the cards actual capability "5" so plex switches to software encoding when it hits the set limit. Everytime I run it I get the below output saying succeeded. But testing with ffmpeg still allows me to excedded the set limit. I went ahead and installed the cuda toolkit but not sure what todo with the sdk.

NvencSessionLimitBump -s 5
NVENC Session limit bump for Direct3D.
You need to have the patch from https://github.com/keylase/nvidia-patch applied on your system before running this program.

Trying to increase the session limit on GPU: 0 to 5...
Session limit on GPU: 0 is: 5. Bump succeeded.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.