[Support]: Amcrest ad410 Unable to read frames from ffmpeg process / no frames have been received #15502
-
Describe the problem you are havingHi all, Camera's are online as they work on VLC but I get a lot of errors and I don't see any playback/recording. Version0.14.1-f4f3cfa What browser(s) are you using?Version 131.0.6778.109 (Official Build) (arm64) Frigate config filemqtt:
enabled: true
host: 192.168.178.33
detectors:
coral:
type: edgetpu
device: usb
ffmpeg:
hwaccel_args: preset-vaapi
go2rtc:
restream:
force_audio: false
streams:
3b:
- rtsp://***@192.168.178.63:554/cam/realmonitor?channel=1&subtype=0#backchannel=0
- ffmpeg:3b#audio=aac
- rtsp://***@192.168.178.63:554/cam/realmonitor?channel=1&subtype=1
3b_sub:
- rtsp://***@192.168.178.63:554/cam/realmonitor?channel=1&subtype=1#backchannel=0
3a:
- rtsp://***@192.168.178.67:554/cam/realmonitor?channel=1&subtype=0#backchannel=0
- ffmpeg:3a#audio=aac
- rtsp://***@192.168.178.67:554/cam/realmonitor?channel=1&subtype=1
3a_sub:
- rtsp://***@192.168.178.67:554/cam/realmonitor?channel=1&subtype=1#backchannel=0
cameras:
3b:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/3b_sub
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/3b
input_args: preset-rtsp-restream
roles:
- record
detect:
width: 640
height: 480
fps: 5
objects:
track:
- person
filters:
person:
min_score: 0.4
threshold: 0.5
min_area: 700
snapshots:
enabled: true
timestamp: true
bounding_box: true
required_zones:
- 3bfrontzone
crop: true
height: 500
retain:
default: 3
zones:
3bfrontzone:
coordinates: 1,0.742,1,1,0.402,1,0.402,0.956,0.713,0.904
inertia: 3
loitering_time: 0
objects: person
motion:
threshold: 20
contour_area: 15
record:
enabled: true
retain:
days: 2
#mode: active_objects
events:
retain:
default: 5
mode: motion
pre_capture: 3
post_capture: 10
3a:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/3a_sub
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/3a
input_args: preset-rtsp-restream
roles:
- record
output_args:
record: preset-record-generic-audio-aac
detect:
width: 640
height: 480
fps: 5
objects:
track:
- person
filters:
person:
min_score: 0.4
threshold: 0.5
min_area: 700
snapshots:
enabled: true
timestamp: true
bounding_box: true
required_zones:
- 3afrontzone
crop: true
height: 500
retain:
default: 3
zones:
3afrontzone:
coordinates: 0.614,0.877,1,0.79,1,1,0.15,1,0.206,0.833
inertia: 3
loitering_time: 0
objects: person
motion:
threshold: 20
contour_area: 15
record:
enabled: true
retain:
days: 2
#mode: active_objects
events:
retain:
default: 5
mode: motion
pre_capture: 3
post_capture: 10
version: 0.14 Relevant Frigate log output2024-12-13 20:34:08.417897051 [2024-12-13 20:34:08] watchdog.3b INFO : Terminating the existing ffmpeg process...
2024-12-13 20:34:08.417949503 [2024-12-13 20:34:08] watchdog.3b INFO : Waiting for ffmpeg to exit gracefully...
2024-12-13 20:34:08.426335022 [2024-12-13 20:34:08] frigate.video ERROR : 3b: Unable to read frames from ffmpeg process.
2024-12-13 20:34:08.426620810 [2024-12-13 20:34:08] frigate.video ERROR : 3b: ffmpeg process is not running. exiting capture thread...
2024-12-13 20:34:18.377072770 [2024-12-13 20:34:18] watchdog.3a ERROR : Ffmpeg process crashed unexpectedly for 3a.
2024-12-13 20:34:18.377361308 [2024-12-13 20:34:18] watchdog.3a ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-13 20:34:18.377365068 [2024-12-13 20:34:18] ffmpeg.3a.detect ERROR : [tcp @ 0x560458684fc0] Connection to tcp://192.168.178.67:8554?timeout=5000000 failed: Connection refused
2024-12-13 20:34:18.377367348 [2024-12-13 20:34:18] ffmpeg.3a.detect ERROR : rtsp://192.168.178.67:8554/3a_sub: Connection refused
2024-12-13 20:34:18.399133570 [2024-12-13 20:34:18] watchdog.3a ERROR : No new recording segments were created for 3a in the last 120s. restarting the ffmpeg record process...
2024-12-13 20:34:18.399226545 [2024-12-13 20:34:18] watchdog.3a INFO : Terminating the existing ffmpeg process...
2024-12-13 20:34:18.399310729 [2024-12-13 20:34:18] watchdog.3a INFO : Waiting for ffmpeg to exit gracefully...
2024-12-13 20:34:18.402045648 [2024-12-13 20:34:18] frigate.video ERROR : 3a: Unable to read frames from ffmpeg process.
2024-12-13 20:34:18.402321977 [2024-12-13 20:34:18] frigate.video ERROR : 3a: ffmpeg process is not running. exiting capture thread...
2024-12-13 20:34:18.432859533 [2024-12-13 20:34:18] watchdog.3b ERROR : Ffmpeg process crashed unexpectedly for 3b.
2024-12-13 20:34:18.433237621 [2024-12-13 20:34:18] watchdog.3b ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-13 20:34:18.433241517 [2024-12-13 20:34:18] ffmpeg.3b.detect ERROR : [tcp @ 0x55e451712fc0] Connection to tcp://192.168.178.63:8554?timeout=5000000 failed: Connection refused
2024-12-13 20:34:18.433243773 [2024-12-13 20:34:18] ffmpeg.3b.detect ERROR : rtsp://192.168.178.63:8554/3b_sub: Connection refused
2024-12-13 20:34:18.454536159 [2024-12-13 20:34:18] watchdog.3b ERROR : No new recording segments were created for 3b in the last 120s. restarting the ffmpeg record process...
2024-12-13 20:34:18.454904398 [2024-12-13 20:34:18] watchdog.3b INFO : Terminating the existing ffmpeg process...
2024-12-13 20:34:18.454907828 [2024-12-13 20:34:18] watchdog.3b INFO : Waiting for ffmpeg to exit gracefully...
2024-12-13 20:34:18.457804831 [2024-12-13 20:34:18] frigate.video ERROR : 3b: Unable to read frames from ffmpeg process.
2024-12-13 20:34:18.457981529 [2024-12-13 20:34:18] frigate.video ERROR : 3b: ffmpeg process is not running. exiting capture thread...
2024-12-13 20:34:28.408553797 [2024-12-13 20:34:28] watchdog.3a ERROR : Ffmpeg process crashed unexpectedly for 3a.
2024-12-13 20:34:28.408850113 [2024-12-13 20:34:28] watchdog.3a ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-13 20:34:28.408853778 [2024-12-13 20:34:28] ffmpeg.3a.detect ERROR : [tcp @ 0x55580de78fc0] Connection to tcp://192.168.178.67:8554?timeout=5000000 failed: Connection refused
2024-12-13 20:34:28.414380748 [2024-12-13 20:34:28] ffmpeg.3a.detect ERROR : rtsp://192.168.178.67:8554/3a_sub: Connection refused
2024-12-13 20:34:28.429896965 [2024-12-13 20:34:28] watchdog.3a ERROR : No new recording segments were created for 3a in the last 120s. restarting the ffmpeg record process...
2024-12-13 20:34:28.430056391 [2024-12-13 20:34:28] watchdog.3a INFO : Terminating the existing ffmpeg process...
2024-12-13 20:34:28.430170853 [2024-12-13 20:34:28] watchdog.3a INFO : Waiting for ffmpeg to exit gracefully...
2024-12-13 20:34:28.434868336 [2024-12-13 20:34:28] frigate.video ERROR : 3a: Unable to read frames from ffmpeg process.
2024-12-13 20:34:28.434972739 [2024-12-13 20:34:28] frigate.video ERROR : 3a: ffmpeg process is not running. exiting capture thread...
2024-12-13 20:34:28.463556076 [2024-12-13 20:34:28] watchdog.3b ERROR : Ffmpeg process crashed unexpectedly for 3b.
2024-12-13 20:34:28.463738801 [2024-12-13 20:34:28] watchdog.3b ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-13 20:34:28.463866616 [2024-12-13 20:34:28] ffmpeg.3b.detect ERROR : [tcp @ 0x561040d0dfc0] Connection to tcp://192.168.178.63:8554?timeout=5000000 failed: Connection refused
2024-12-13 20:34:28.469511063 [2024-12-13 20:34:28] ffmpeg.3b.detect ERROR : rtsp://192.168.178.63:8554/3b_sub: Connection refused
2024-12-13 20:34:28.485091248 [2024-12-13 20:34:28] watchdog.3b ERROR : No new recording segments were created for 3b in the last 120s. restarting the ffmpeg record process...
2024-12-13 20:34:28.485237640 [2024-12-13 20:34:28] watchdog.3b INFO : Terminating the existing ffmpeg process...
2024-12-13 20:34:28.485321699 [2024-12-13 20:34:28] watchdog.3b INFO : Waiting for ffmpeg to exit gracefully...
2024-12-13 20:34:28.488515549 [2024-12-13 20:34:28] frigate.video ERROR : 3b: Unable to read frames from ffmpeg process.
2024-12-13 20:34:28.488738419 [2024-12-13 20:34:28] frigate.video ERROR : 3b: ffmpeg process is not running. exiting capture thread... Relevant go2rtc log output2024-12-13 20:16:46.684904810 [INFO] Preparing new go2rtc config...
2024-12-13 20:16:55.218097320 [INFO] Starting go2rtc healthcheck service...
2024-12-13 20:17:14.111176695 [INFO] Starting go2rtc...
2024-12-13 20:17:14.356360475 20:17:14.356 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2024-12-13 20:17:14.356433643 20:17:14.356 INF config path=/dev/shm/go2rtc.yaml
2024-12-13 20:17:14.357240125 20:17:14.357 INF [rtsp] listen addr=:8554
2024-12-13 20:17:14.357421402 20:17:14.357 INF [api] listen addr=:1984
2024-12-13 20:17:14.357477221 20:17:14.357 INF [webrtc] listen addr=:8555/tcp FFprobe output from your cameraroot@cba8e9aa1add:/opt/frigate# ffprobe rtsp://127.0.0.1:8554/3b
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
[rtsp @ 0x55e7284bb140] method SETUP failed: 461 Unsupported transport
Input #0, rtsp, from 'rtsp://127.0.0.1:8554/3b':
Metadata:
title : go2rtc/1.9.2
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p(progressive), 2560x1920, 15 fps, 100 tbr, 90k tbn
Stream #0:1: Audio: aac (LC), 8000 Hz, mono, fltp Frigate stats{"cameras":{"3a":{"audio_dBFS":0.0,"audio_rms":0.0,"camera_fps":0.0,"capture_pid":439,"detection_enabled":true,"detection_fps":0.0,"ffmpeg_pid":3013,"pid":429,"process_fps":0.0,"skipped_fps":0.0},"3b":{"audio_dBFS":0.0,"audio_rms":0.0,"camera_fps":0.0,"capture_pid":433,"detection_enabled":true,"detection_fps":0.0,"ffmpeg_pid":3016,"pid":428,"process_fps":0.0,"skipped_fps":0.0}},"cpu_usages":{"1":{"cmdline":"/package/admin/s6/command/s6-svscan -d4 -- /run/service","cpu":"0.0","cpu_average":"0","mem":"0.0"},"115":{"cmdline":"/usr/local/go2rtc/bin/go2rtc -config=/dev/shm/go2rtc.yaml","cpu":"0.1","cpu_average":"0","mem":"0.1"},"123":{"cmdline":"bash ./run.user go2rtc-healthcheck","cpu":"0.0","cpu_average":"0","mem":"0.0"},"124":{"cmdline":"python3 -u -m frigate","cpu":"0.6","cpu_average":"0","mem":"1.5"},"133":{"cmdline":"nginx: master process nginx","cpu":"0.0","cpu_average":"0","mem":"0.1"},"16":{"cmdline":"s6-supervise s6-linux-init-shutdownd","cpu":"0.0","cpu_average":"0","mem":"0.0"},"173":{"cmdline":"nginx: worker process","cpu":"0.0","cpu_average":"0","mem":"0.0"},"174":{"cmdline":"nginx: worker process","cpu":"0.0","cpu_average":"0","mem":"0.0"},"175":{"cmdline":"nginx: worker process","cpu":"0.0","cpu_average":"0","mem":"0.0"},"176":{"cmdline":"nginx: worker process","cpu":"0.1","cpu_average":"0","mem":"0.0"},"177":{"cmdline":"nginx: cache manager process","cpu":"0.0","cpu_average":"0","mem":"0.0"},"22":{"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 s6rc-oneshot-runner","cpu":"0.0","cpu_average":"0","mem":"0.0"},"26":{"cmdline":"s6-supervise s6rc-fdholder","cpu":"0.0","cpu_average":"0","mem":"0.0"},"2616":{"cmdline":"bash","cpu":"0.0","cpu_average":"0","mem":"0.0"},"27":{"cmdline":"s6-supervise certsync","cpu":"0.0","cpu_average":"0","mem":"0.0"},"28":{"cmdline":"s6-supervise certsync-log","cpu":"0.0","cpu_average":"0","mem":"0.0"},"29":{"cmdline":"s6-supervise frigate","cpu":"0.0","cpu_average":"0","mem":"0.0"},"30":{"cmdline":"s6-supervise frigate-log","cpu":"0.0","cpu_average":"0","mem":"0.0"},"3006":{"cmdline":"sleep 30s","cpu":"0.0","cpu_average":"0","mem":"0.0"},"3026":{"cmdline":"sleep 60","cpu":"0.0","cpu_average":"0","mem":"0.0"},"31":{"cmdline":"s6-supervise go2rtc","cpu":"0.0","cpu_average":"0","mem":"0.0"},"313":{"cmdline":"bash ./run.user certsync","cpu":"0.0","cpu_average":"0","mem":"0.0"},"32":{"cmdline":"s6-supervise go2rtc-healthcheck","cpu":"0.0","cpu_average":"0","mem":"0.0"},"33":{"cmdline":"s6-supervise go2rtc-log","cpu":"0.0","cpu_average":"0","mem":"0.0"},"34":{"cmdline":"s6-supervise nginx","cpu":"0.0","cpu_average":"0","mem":"0.0"},"35":{"cmdline":"s6-supervise nginx-log","cpu":"0.0","cpu_average":"0","mem":"0.0"},"361":{"cmdline":"frigate.logger ","cpu":"0.1","cpu_average":"0","mem":"0.6"},"363":{"cmdline":"frigate.recording_manager","cpu":"0.1","cpu_average":"0","mem":"0.6"},"364":{"cmdline":"frigate.review_segment_manager","cpu":"0.0","cpu_average":"0","mem":"0.6"},"391":{"cmdline":"/usr/bin/python3 -c from multiprocessing.resource_tracker import main;main(59)","cpu":"0.0","cpu_average":"0","mem":"0.1"},"392":{"cmdline":"frigate.detector.coral","cpu":"0.1","cpu_average":"0","mem":"0.7"},"394":{"cmdline":"frigate.output ","cpu":"0.2","cpu_average":"0","mem":"0.7"},"399":{"cmdline":"ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -threads 1 -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.1"},"404":{"cmdline":"ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 640x480 -i pipe: -threads 1 -f mpegts -s 960x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.1"},"409":{"cmdline":"ffmpeg -threads 1 -f rawvideo -pix_fmt yuv420p -video_size 1280x720 -i pipe: -threads 1 -f mpegts -s 1280x720 -codec:v mpeg1video -q 8 -bf 0 pipe:","cpu":"0.0","cpu_average":"0","mem":"0.1"},"428":{"cmdline":"frigate.process:3b ","cpu":"0.0","cpu_average":"0","mem":"0.7"},"429":{"cmdline":"frigate.process:3a ","cpu":"0.0","cpu_average":"0","mem":"0.7"},"433":{"cmdline":"frigate.capture:3b ","cpu":"0.3","cpu_average":"0","mem":"0.7"},"439":{"cmdline":"frigate.capture:3a ","cpu":"0.2","cpu_average":"0","mem":"0.7"},"46":{"cmdline":"/package/admin/s6-2.11.3.2/command/s6-fdholderd -1 -i data/rules","cpu":"0.0","cpu_average":"0","mem":"0.0"},"47":{"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"},"87":{"cmdline":"s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/frigate","cpu":"0.0","cpu_average":"0","mem":"0.0"},"88":{"cmdline":"s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/go2rtc","cpu":"0.0","cpu_average":"0","mem":"0.0"},"89":{"cmdline":"s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/nginx","cpu":"0.0","cpu_average":"0","mem":"0.0"},"91":{"cmdline":"s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/certsync","cpu":"0.0","cpu_average":"0","mem":"0.0"},"frigate.full_system":{"cpu":"5.4","mem":"18.2"}},"detection_fps":0.0,"detectors":{"coral":{"detection_start":0.0,"inference_speed":10.0,"pid":392}},"gpu_usages":{"error-gpu":{"gpu":"","mem":""}},"processes":{"go2rtc":{"pid":115},"logger":{"pid":361},"recording":{"pid":363},"review_segment":{"pid":364}},"service":{"last_updated":1734122402,"latest_version":"0.14.1","storage":{"/dev/shm":{"free":148.9,"mount_type":"tmpfs","total":150.0,"used":1.1},"/media/frigate/clips":{"free":23446188.5,"mount_type":"btrfs","total":38423101.4,"used":14976913.0},"/media/frigate/recordings":{"free":23446188.5,"mount_type":"btrfs","total":38423101.4,"used":14976913.0},"/tmp/cache":{"free":953.7,"mount_type":"tmpfs","total":953.7,"used":0.0}},"temperatures":{},"uptime":1347,"version":"0.14.1-f4f3cfa"}} Install methodDocker Compose docker-compose file or Docker CLI commandversion: "3.9"
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "150mb" # update for your cameras based on calculation above
devices:
- /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
- /dev/apex_0:/dev/apex_0 # passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux
- /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
volumes:
- ./config:/config
- ./storage:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5002:5000"
- "8554:8554" # RTSP feeds Object DetectorCoral Network connectionWireless Camera make and modelAmcrest ad410 Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Answered by
Alex12358795
Dec 18, 2024
Replies: 2 comments 7 replies
-
The logs don't line up with the config here, something is wrong. |
Beta Was this translation helpful? Give feedback.
7 replies
-
Might be related to one camera having a weak wifi signal |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Alex12358795
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Might be related to one camera having a weak wifi signal