Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • N nvidia-patch
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 26
    • Issues 26
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Keylase
  • nvidia-patch
  • Wiki
  • Verify NVENC patch

Verify NVENC patch · Changes

Page history
from @reloxx13 authored Jun 30, 2022 by Jai Luthra's avatar Jai Luthra
Show whitespace changes
Inline Side-by-side
Verify-NVENC-patch.md
View page @ 55a2fc32
From [@lars18th](https://github.com/keylase/nvidia-patch/issues/491)
From [@lars18th](https://github.com/keylase/nvidia-patch/issues/491) and [@reloxx13](https://github.com/keylase/nvidia-patch/issues/544#issuecomment-1170310363)
Here a simple command to check if the patching works:
### Linux
```
ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda \
-f lavfi -i testsrc -t 50 \
......@@ -12,6 +12,19 @@ ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda \
This only requires to have installed a recent ffmpeg version compiled with nvenc enabled. Almost all distributions have it now.
### Windows
ffmpeg download https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z
```
ffmpeg.exe -y -hwaccel cuda -hwaccel_output_format cuda ^
-f lavfi -i testsrc -t 50 ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 4M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 1M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 8M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 6M -f null -
```
## Output
If you get a message like:
```
[h264_nvenc @ 0x55fc31535fc0] OpenEncodeSessionEx failed: out of memory (10): (no details)
......@@ -25,3 +38,8 @@ But if the ffmpeg starts to work and shows:
frame= 560 fps=329 q=8.0 Lq=8.0 q=8.0 q=8.0 size=N/A time=00:00:22.40 bitrate=N/A speed=13.2x
```
Then... Congratulations! The patch works.
![grafik](https://user-images.githubusercontent.com/14855001/176503179-35690ed4-b94a-410a-92e9-a3c1dc41de08.png)
Clone repository
  • Home
  • Verify NVENC patch