Closed cybertza closed 3 years ago
Add this global ffmpeg arg (or on the camera's throwing errors):
global_args: -hide_banner -loglevel error
That will put the errors into the log. I had similar issue and found out that it was because I was trying to add audio and the cameras were not using a supported audio format.
Post the errors after adding that and I bet you'll have your answer.
Good Luck! DeadEnd
So this error starts around the time that my /tmp/cache fills up.
And then i would assume that error relates to the fact that it does not read valid data from the tmp/cache since it wasn't written.
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/loop2 40G 7.3G 33G 19% /
tmpfs 64M 0 64M 0% /dev
tmpfs 16G 0 16G 0% /sys/fs/cgroup
shm 4.0G 39M 4.0G 1% /dev/shm
rootfs 16G 1.2G 15G 8% /tmp
shfs 3.7T 2.3T 1.4T 62% /clips
/dev/loop2 40G 7.3G 33G 19% /etc/hosts
tmpfs 9.0G 9.0G 0 100% /tmp/cache
tmpfs 16G 12K 16G 1% /proc/driver/nvidia
tmpfs 16G 4.0K 16G 1% /etc/nvidia/nvidia-application-profiles-rc.d
devtmpfs 16G 0 16G 0% /dev/nvidia0
#
I changed the /tmp/cache +> size: 1000000000 aka 945mb, and it seems to be sitting stable at 50%
When there is no more room to write cache files, ffmpeg crashes and the ffmpeg sent a broken frame
occurs. I created #570 to improve this in the future.
Describe the bug Love the new web interface, Legend, awesome work you've done here!
frigate.video INFO : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures frigate.video INFO : Garage: ffmpeg process is not running. exiting capture thread... frigate.video INFO : Ridge_Left_Right: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures Version of frigate blakeblackshear/frigate:0.8.0-rc1-amd64nvidia
Config file Include your full config file wrapped in triple back ticks.
Logs
Frigate debug stats
FFprobe from your camera
Run the following command and paste output below
Screenshots If applicable, add screenshots to help explain your problem.
Computer Hardware
Camera Info:
Additional context Add any other context about the problem here. /tmp/cache => 100% full
Docker Flags --shm-size=4096m --runtime=nvidia --mount type=tmpfs,target=/tmp/cache,tmpfs-size=9128m
This is after reboot just for reference Filesystem Size Used Avail Use% Mounted on /dev/loop2 40G 7.3G 33G 19% / tmpfs 64M 0 64M 0% /dev tmpfs 16G 0 16G 0% /sys/fs/cgroup shm 4.0G 39M 4.0G 1% /dev/shm rootfs 16G 1.2G 15G 8% /tmp shfs 3.7T 2.3T 1.4T 62% /clips /dev/loop2 40G 7.3G 33G 19% /etc/hosts tmpfs 9.0G 176M 8.8G 2% /tmp/cache tmpfs 16G 12K 16G 1% /proc/driver/nvidia tmpfs 16G 4.0K 16G 1% /etc/nvidia/nvidia-application-profiles-rc.d
This doesn't seem to happen randomly, sometimes after quite some time of running. devtmpfs 16G 0 16G 0% /dev/nvidia0