February 20, 20251 yr Evening - Trying to get Nvidia hw-acceleration running on the shinobi docker. After a lot of tinkering, I'm reaching out for help Goal: Update ffmpeg to the latest version Update the CUDA version from 12.7 to the latest. I believe Nvidia driver version 565.57.01 is the latest of this writing per the Nvidia Driver plugin GPU: Nvidia Quadro P4000 TLDR: If this is not what is needed to get Nvidia drivers working with Shinobi - What must I do to get it working? Details and references are below numbered 1 - 7. 1. When attempting to update FFMPEG - here's the terminal output 2. Inside Shinobi input settings, here's what I have available - it seems the container recognizes that the Nvidia drivers are available/accessible however when switching to an Nvidia decoder option, the camera feed crashes, will not recover due to the following error , and must be reset to Auto, essentially reverting to CPU I assume. This error is repeatable, with all options in the Video decoder listed below. 3. Accelerator is set to "Yes" 4. Acceleration Engine is set to "Auto" however the following options are available: (I've attempted all variations/combinations, no GPU related HW works) vdpau vaapi (VA-API) DRM Object Sharing 5. Video Decoder is set to "Auto(Recommended)", however, the available options are available: 6. While in the Shinobi docker terminal console, the ffmpeg -version command reports the following: ffmpeg version 4.1.6-1~deb10u1 Copyright (c) 2000-2020 the FFmpeg developers 7. When running the nvidia-smi command in the shinobi docker terminal console, this is what is reported: Edited February 20, 20251 yr by Optico89 removed duplicate picture
June 13, 20251 yr Hi, good eveningSince a long time ago, I always have this issue with the Docker "shinobi-pro-cctv" - and it'd happened again last night, when I've updated my dockers with new network parameters - So, you are right in your inquiry.About the issue: the FFmpeg build inside the aforementioned shinobi docker version does not have ANY hardware acceleration for our nvidia gpus (you'll can check with the command "ffmpeg -codecs" inside your docker console).About the solution for this issue, you'll have to (if you have the same docker):Disable any kind of autoupdate for this docker. If it eventually does update, you'll have to do inject the FFmpeg build again;"Inject" a FFmpeg build that was compiled with hardware acceleration in mind;This is simple if you search for a compatible already compiled FFmpeg build from around the same date of your nvidia driver plugin. For example, my driver is:Nvidia Driver Version: 550.67.Date: 2024.01.19So, my FFmpeg build is from around:autobuild-2024-01-31-12-54Put your FFmpeg build in the same share folder that you informed in your docker as shinobi config, since you'll have to access inside Docker. For example, mine is registered as: "/mnt/user/appdata/shinobi";Now, in the aforementioned Shinobi Docker console, you'll have to:stop cameras with:pm2 stop camera.jscopy your corrected FFmpeg build to overwrite the other one. Obs.: change YOURBUILDHERE with the name that its your FFmpeg build folder:cp /config/YOURBUILDHERE/bin/* /usr/bin/For example, in my docker I used: cp /config/shinobi/bin/* /usr/bin/ Obs: "/usr/bin/" is where the FFmpeg is located in this Docker. You can check yours with the command "which ffmpeg".Restart those cameras with:pm2 start camera.jsObs.: you'll have to use a FFmpeg build from around the same date, because the FFmpeg build has a minimum nvidia driver request that works.Now, with that out of the way, you can check with the command ffmpeg -codecs if it worked. Mine is reported as:And, like that, it'll work as it should.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.