Problem getting Nvidia GPU going
See original GitHub issueDescribe the bug As soon as I put Nvidia GPU FFMPEG arguments either as input_args or hwaccel_args my Frigate goes into error:
ffmpeg sent a broken frame. something is wrong.
CPU only works perfectly. Nvidia arguments have been passed to the Docker container and I can see the GPU with nvidia-smi command in the container console.
Version of frigate What version are you using?
Config file Include your full config file wrapped in triple back ticks.
mqtt:
# Required: host name
host: 192.168.31.xxx
# Optional: port (default: shown below)
port: 1883
# Optional: topic prefix (default: shown below)
# WARNING: must be unique if you are running multiple instances
topic_prefix: frigate
client_id: frigate
# Optional: user
user: mqtt_hassio
password:
# Optional: Global configuration for saving clips
save_clips:
max_seconds: 300
clips_dir: /clips
cache_dir: /cache
# Optional: Global ffmpeg args
# "ffmpeg" + global_args + input_args + "-i" + input + output_args
ffmpeg:
hwaccel_args:
- -c:v
- h264_cuvid
# Optional: Global object filters for all cameras.
# NOTE: can be overridden at the camera level
objects:
# Optional: list of objects to track from labelmap.txt (default: shown below)
track:
- person
# Optional: filters to reduce false positives for specific object types
filters:
person:
min_area: 5000
max_area: 100000
min_score: 0.5
threshold: 0.85
# Required: configuration section for cameras
cameras:
workingroom:
ffmpeg:
input: rtsp://192.168.31.2:7447/8LNA6xWhMAV8hv9Y
height: 576
width: 1024
fps: 5
Logs
ffmpeg -hide_banner -loglevel panic -c:v h264_cuvid -i rtsp://192.168.31.2:7447/8LNA6xWhMAV8hv9Y -r 5 -filter:v fps=fps=5 pipe:
workingroom: ffmpeg sent a broken frame. something is wrong.
workingroom: ffmpeg process is not running. exiting capture thread...
Frigate debug stats
Output from frigate's /debug/stats endpoint
FFprobe from your camera
Run the following command and paste output below
# ffprobe rtsp://192.168.31.2:7447/8LNA6xWhMAV8hv9Y
ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-fontconfig --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libbluray --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
[rtsp @ 0x55799e8b3b80] decoding for stream 1 failed
Input #0, rtsp, from 'rtsp://192.168.31.2:7447/8LNA6xWhMAV8hv9Y':
Metadata:
title : F09FC22F20A0_1
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: aac, 11025 Hz, mono, fltp
Stream #0:1: Video: h264, yuvj420p(pc, bt709, progressive), 1024x576 [SAR 189:190 DAR 168:95], 15 fps, 15 tbr, 90k tbn, 30 tbc
#
Screenshots If applicable, add screenshots to help explain your problem.
Computer Hardware
- OS: Unraid
- Virtualization: Docker
- Coral Version: N/A
- Network Setup: Wired
Camera Info:
- Manufacturer: Ubiquiti
- Model: UVC-G3-bullet
- Resolution: 576p
- FPS: 5
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (2 by maintainers)
Top Results From Across the Web
How to Fix Nvidia Graphics Card Problems
1. Disable background applications · 2. Check PCI slot of Nvidia graphics card · 3. Clean the dust inside your PC · 4....
Read more >A Complete Guide to Fix Nvidia Graphics Card Problems
To fix Nvidia Graphics Card problems caused due to this, you can just go to the Device Manager tool from the Start menu...
Read more >How To Fix Nvidia GPU Driver Issues Or Hardware ... - YouTube
NVIDIA # GPU #Drivers #PChelp #Windows # Geforce #RTXHow to fix Nvidia GPU driver issues or hardware not found Windows 11 Windows 10This...
Read more >5 Signs Your Graphics Card Has Problems and May Be Dying
When a graphics card starts going bad, you might see visual stuttering/freezing on the screen. However, malware, a dying hard drive, and even...
Read more >GPU Unknown Error? | NVIDIA GeForce Forums
Taking out my GPU, RAM and Network Adapter from it's ports and cleaning them. Under-clocking my CPU which came with the CPU from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The problem is that Coral USB is currently out of stock everywhere at least in France.
change the detectors section your config.yml file to this:
And now that you are on the 0.8.0 release branch you will have to read the rest of the docs as well in this link https://github.com/blakeblackshear/frigate/tree/release-0.8.0
There are some other breaking changes like “save_clips” is now “clips” and so on…