[Support]: Frigate does not save moution clips #10302
Answered
by
NickM-27
melboyscout
asked this question in
General Support
-
Describe the problem you are havingThe system cannot save moution clips Version0.13.2-6476F8A Frigate config filemqtt:
host: mqtt.server.com
enabled: False
record:
enabled: True
retain:
days: 7
mode: motion
events:
retain:
default: 30
mode: motion
snapshots:
enabled: True
retain:
default: 30
detect:
enabled: True
motion:
mask:
- 388,720,635,720,970,720,979,630,1109,627,1150,570,907,30,762,63
cameras:
corridor:
enabled: True
ffmpeg:
inputs:
# - path: rtsp://***:***@192.168.68.21:554/stream2
# roles:
# - detect
- path: rtsp://***:***@192.168.68.123:554/Streaming/Channels/102
roles:
- detect
- path: rtsp://***:***@192.168.68.123:554/Streaming/Channels/101
roles:
- record Relevant log output2024-03-07 08:48:21.607672568
2024-03-07 08:48:21.638441304 [2024-03-07 08:48:21] frigate.record.maintainer WARNING : Failed to probe corrupt segment /tmp/cache/corridor@20240307084809+0000.mp4
2024-03-07 08:48:21.638449660 [2024-03-07 08:48:21] frigate.record.maintainer WARNING : Discarding a corrupt recording segment: /tmp/cache/corridor@20240307084809+0000.mp4
2024-03-07 08:48:31.606746588 [extract_extradata @ 0x7f72ac01cd80] No start code is found.
2024-03-07 08:48:31.607153694 [ WARN:[email protected]] global cap_ffmpeg_impl.hpp:1139 open Unable to read codec parameters from stream (Invalid data found when processing input)
2024-03-07 08:48:31.607448540 [ERROR:[email protected]] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2024-03-07 08:48:31.607455100
2024-03-07 08:48:31.607461780 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2024-03-07 08:48:31.607465619
2024-03-07 08:48:31.607469172
2024-03-07 08:48:31.637063191 [2024-03-07 08:48:31] frigate.record.maintainer WARNING : Failed to probe corrupt segment /tmp/cache/corridor@20240307084819+0000.mp4
2024-03-07 08:48:31.637071450 [2024-03-07 08:48:31] frigate.record.maintainer WARNING : Discarding a corrupt recording segment: /tmp/cache/corridor@20240307084819+0000.mp4
2024-03-07 08:48:41.608666391 [extract_extradata @ 0x7f72ac0fda80] No start code is found.
2024-03-07 08:48:41.609196045 [ WARN:[email protected]] global cap_ffmpeg_impl.hpp:1139 open Unable to read codec parameters from stream (Invalid data found when processing input)
2024-03-07 08:48:41.609591007 [ERROR:[email protected]] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2024-03-07 08:48:41.609598885
2024-03-07 08:48:41.609605581 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2024-03-07 08:48:41.609609405
2024-03-07 08:48:41.609612993
2024-03-07 08:48:41.638031042 [2024-03-07 08:48:41] frigate.record.maintainer WARNING : Failed to probe corrupt segment /tmp/cache/corridor@20240307084829+0000.mp4
2024-03-07 08:48:41.638038981 [2024-03-07 08:48:41] frigate.record.maintainer WARNING : Discarding a corrupt recording segment: /tmp/cache/corridor@20240307084829+0000.mp4
2024-03-07 08:48:51.608438213 [extract_extradata @ 0x7f72ac017fc0] No start code is found.
2024-03-07 08:48:51.608801818 [ WARN:[email protected]] global cap_ffmpeg_impl.hpp:1139 open Unable to read codec parameters from stream (Invalid data found when processing input)
2024-03-07 08:48:51.609076161 [ERROR:[email protected]] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2024-03-07 08:48:51.609082692
2024-03-07 08:48:51.609089267 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2024-03-07 08:48:51.609093071
2024-03-07 08:48:51.609096664
2024-03-07 08:48:51.638423144 [2024-03-07 08:48:51] frigate.record.maintainer WARNING : Failed to probe corrupt segment /tmp/cache/corridor@20240307084839+0000.mp4
2024-03-07 08:48:51.638430991 [2024-03-07 08:48:51] frigate.record.maintainer WARNING : Discarding a corrupt recording segment: /tmp/cache/corridor@20240307084839+0000.mp4
2024-03-07 08:49:01.610148049 [extract_extradata @ 0x7f72ac00c480] No start code is found.
2024-03-07 08:49:01.610567989 [ WARN:[email protected]] global cap_ffmpeg_impl.hpp:1139 open Unable to read codec parameters from stream (Invalid data found when processing input)
2024-03-07 08:49:01.610638211 [ERROR:[email protected]] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2024-03-07 08:49:01.610642616
2024-03-07 08:49:01.610648971 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern' FFprobe output from your cameraroot@frigate:/opt/frigate# ffprobe rtsp://***:***@192.168.68.123:554/Streaming/Channels/102
ffprobe version n5.1-2-g915ef932a3-20220731 Copyright (c) 2007-2022 the FFmpeg developers
built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
Input #0, rtsp, from 'rtsp://***:***@192.168.68.123:554/Streaming/Channels/102':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.040000, bitrate: N/A
Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 640x360, 25 tbr, 90k tbn
root@frigate:/opt/frigate# Frigate stats{
cameras: {
corridor: {
audio_dBFS: 0,
audio_rms: 0,
camera_fps: 5,
capture_pid: 244,
detection_enabled: 1,
detection_fps: 0,
ffmpeg_pid: 254,
pid: 242,
process_fps: 5,
skipped_fps: 0
}
},
cpu_usages: {
1: {
cmdline: "/package/admin/s6/command/s6-svscan -d4 -- /run/service",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
16: {
cmdline: "s6-supervise s6-linux-init-shutdownd",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
17: {
cmdline: "/package/admin/s6-linux-init/command/s6-linux-init-shutdownd -c /run/s6/basedir -g 3000 -C -B",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
25: {
cmdline: "s6-supervise nginx",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
26: {
cmdline: "s6-supervise s6rc-oneshot-runner",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
27: {
cmdline: "s6-supervise go2rtc",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
28: {
cmdline: "s6-supervise nginx-log",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
29: {
cmdline: "s6-supervise go2rtc-healthcheck",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
30: {
cmdline: "s6-supervise s6rc-fdholder",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
31: {
cmdline: "s6-supervise frigate-log",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
32: {
cmdline: "s6-supervise frigate",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
33: {
cmdline: "s6-supervise go2rtc-log",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
42: {
cmdline: "/package/admin/s6-2.11.3.2/command/s6-fdholderd -1 -i data/rules",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
43: {
cmdline: "/package/admin/s6/command/s6-ipcserverd -1 -- /package/admin/s6/command/s6-ipcserver-access -v0 -E -l0 -i data/rules -- /package/admin/s6/command/s6-sudod -t 30000 -- /package/admin/s6-rc/command/s6-rc-oneshot-run -l ../.. --",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
79: {
cmdline: "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/nginx",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
81: {
cmdline: "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/go2rtc",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
84: {
cmdline: "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/frigate",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
100: {
cmdline: "/usr/local/go2rtc/bin/go2rtc -config=/dev/shm/go2rtc.yaml",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
110: {
cmdline: "python3 -u -m frigate",
cpu: "0.9",
cpu_average: "0",
mem: "1.1"
},
114: {
cmdline: "bash ./run.user go2rtc-healthcheck",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
119: {
cmdline: "nginx: master process nginx",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
140: {
cmdline: "nginx: worker process",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
141: {
cmdline: "nginx: worker process",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
142: {
cmdline: "nginx: cache manager process",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
222: {
cmdline: "frigate.logger ",
cpu: "0.0",
cpu_average: "0",
mem: "0.4"
},
226: {
cmdline: "frigate.recording_manager",
cpu: "0.4",
cpu_average: "0",
mem: "0.5"
},
234: {
cmdline: "/usr/bin/python3 -c from multiprocessing.resource_tracker import main;main(38)",
cpu: "0.1",
cpu_average: "0",
mem: "0.0"
},
235: {
cmdline: "frigate.detector.cpu ",
cpu: "5.6",
cpu_average: "10",
mem: "0.5"
},
236: {
cmdline: "frigate.output ",
cpu: "0.5",
cpu_average: "0",
mem: "0.5"
},
241: {
cmdline: "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 640x360 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
cpu: "0.0",
cpu_average: "0",
mem: "0.2"
},
242: {
cmdline: "frigate.process:corridor",
cpu: "2.5",
cpu_average: "2",
mem: "0.5"
},
243: {
cmdline: "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1280x720 -i pipe: -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
244: {
cmdline: "frigate.capture:corridor",
cpu: "1.0",
cpu_average: "0",
mem: "0.4"
},
254: {
cmdline: "ffmpeg -hide_banner -loglevel warning -threads 2 -user_agent FFmpeg Frigate/0.13.2-6476f8a -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://*:*@192.168.68.123:554/Streaming/Channels/102 -r 5 -vf fps=5,scale=640:360 -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
cpu: "5.7",
cpu_average: "5",
mem: "0.1"
},
257: {
cmdline: "ffmpeg -hide_banner -loglevel warning -threads 2 -user_agent FFmpeg Frigate/0.13.2-6476f8a -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://*:*@192.168.68.123:554/Streaming/Channels/101 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/corridor@%Y%m%d%H%M%S%z.mp4",
cpu: "2.2",
cpu_average: "2",
mem: "0.0"
},
126782: {
cmdline: "bash",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
},
126846: {
cmdline: "sleep 30s",
cpu: "0.0",
cpu_average: "0",
mem: "0.0"
}
},
detection_fps: 0,
detectors: {
cpu: {
detection_start: 0,
inference_speed: 347.54,
pid: 235
}
},
processes: {
go2rtc: {
pid: 100
},
logger: {
pid: 222
},
recording: {
pid: 226
}
},
service: {
last_updated: 1709801850,
latest_version: "0.13.2",
storage: {
/dev/shm: {
free: 249.2,
mount_type: "tmpfs",
total: 256,
used: 6.8
},
/media/frigate/clips: {
free: 84922.4,
mount_type: "xfs",
total: 488146.8,
used: 403224.4
},
/media/frigate/recordings: {
free: 84922.4,
mount_type: "xfs",
total: 488146.8,
used: 403224.4
},
/tmp/cache: {
free: 949.9,
mount_type: "tmpfs",
total: 953.7,
used: 3.8
}
},
temperatures: { },
uptime: 156512,
version: "0.13.2-6476f8a"
}
} Operating systemDebian Install methodDocker Compose Coral versionCPU (no coral) Network connectionWired Camera make and modelHikvision DS-2CD1023G0-I Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Answered by
NickM-27
Mar 7, 2024
Replies: 1 comment
-
It is having trouble parsing the video files, meaning they are corrupt. If you have h265+ enabled you should disable it in the camera settings |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
melboyscout
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is having trouble parsing the video files, meaning they are corrupt. If you have h265+ enabled you should disable it in the camera settings