Closed zjd1988 closed 11 months ago
Could you post the content of your docker_compose.yml file and the output of uname -a
and cat /proc/device-tree/compatible
It will be good to provide go2rtc logs as the go2rtc restream is reporting 404. Also the wrong input_args are being used.
Hi @MarcA711 @NickM-27 thanks you guys reply. docker_compose.yml
version: "3.3"
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:0.13.0-beta6-rk
network_mode: host
group_add:
- "106" # render
- "44" # video
- "46" # plugdev
shm_size: "64mb" # 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
- /dev/dri/card0:/dev/dri/card0
- /dev/rga
- /dev/video-dec0:/dev/video-dec0
- /dev/video-enc0:/dev/video-enc0
volumes:
- /etc/localtime:/etc/localtime:ro
- /data/github_codes/frigate_test/config/config.yml:/config/config.yml
- /data/github_codes/frigate_test/videos:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
- "1883:1883" # mqtt
environment:
FRIGATE_RTSP_PASSWORD: "password"
uname -a
Linux orangepi5b 5.10.110-rockchip-rk3588 #1.0.4 SMP Fri Apr 21 10:36:45 CST 2023 aarch64 aarch64 aarch64 GNU/Linux
cat /proc/device-tree/compatible
rockchip,rk3588s-orangepi-5rockchip,rk3588
how to export go2rtc logs? what's the correct input_args?
Go2rtc logs are visible in the webUI
Input args should be preset-rtsp-restream
@NickM-27 I change config.yaml wih preset-rtsp-restream and rerun frigate docker, nothing changed.
I checked the webUi log, and not found anything about go2rtc log
2023-12-01 08:56:41.252127235 [INFO] Preparing Frigate...
2023-12-01 08:56:41.272080243 [INFO] Starting Frigate...
2023-12-01 08:56:42.867685641 [2023-12-01 08:56:42] frigate.app INFO : Starting Frigate (0.13.0-614a36a)
2023-12-01 08:56:42.889341649 [2023-12-01 08:56:42] peewee_migrate.logs INFO : Starting migrations
2023-12-01 08:56:42.894730642 [2023-12-01 08:56:42] peewee_migrate.logs INFO : There is nothing to migrate
2023-12-01 08:56:42.900090760 [2023-12-01 08:56:42] frigate.app INFO : Recording process started: 452
2023-12-01 08:56:42.902559657 [2023-12-01 08:56:42] frigate.app INFO : go2rtc process pid: 90
2023-12-01 08:56:42.928063529 [2023-12-01 08:56:42] frigate.app INFO : Output process started: 462
2023-12-01 08:56:42.929399912 [2023-12-01 08:56:42] detector.rknn INFO : Starting detection process: 460
2023-12-01 08:56:42.939798740 [2023-12-01 08:56:42] frigate.app INFO : Camera processor started for test: 467
2023-12-01 08:56:42.946998646 [2023-12-01 08:56:42] frigate.app INFO : Capture process started for test: 469
2023-12-01 08:56:43.237140414 I RKNN: [08:56:43.237] RKNN Runtime Information: librknnrt version: 1.5.2 (c6b7b351a@2023-08-23T15:28:22)
2023-12-01 08:56:43.237272244 I RKNN: [08:56:43.237] RKNN Driver Information: version: 0.8.2
2023-12-01 08:56:43.237357700 W RKNN: [08:56:43.237] Current driver version: 0.8.2, recommend to upgrade the driver to the new version: >= 0.8.8
2023-12-01 08:56:43.238006351 I RKNN: [08:56:43.237] RKNN Model Information: version: 6, toolkit version: 1.5.2+b642f30c(compiler version: 1.5.2 (c6b7b351a@2023-08-23T07:39:01)), target: RKNPU v2, target platform: rk3588, framework name: ONNX, framework layout: NCHW, model inference type: static_shape
2023-12-01 08:57:02.983773506 [2023-12-01 08:57:02] watchdog.test INFO : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 08:57:02.989222871 [2023-12-01 08:57:02] watchdog.test INFO : Waiting for ffmpeg to exit gracefully...
2023-12-01 08:57:33.014697393 [2023-12-01 08:57:33] watchdog.test INFO : FFmpeg did not exit. Force killing...
2023-12-01 08:57:33.027505910 [2023-12-01 08:57:33] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 08:57:33.033577094 [2023-12-01 08:57:33] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:57:37.971740350 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f6c00ad80] moov atom not found
2023-12-01 08:57:37.995511766 [ERROR:0@55.980] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2023-12-01 08:57:37.995530140
2023-12-01 08:57:37.995544431 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2023-12-01 08:57:37.995550265
2023-12-01 08:57:37.995559014
2023-12-01 08:57:38.449351441 [2023-12-01 08:57:38] frigate.record.maintainer WARNING : Failed to probe corrupt segment /tmp/cache/test@20231201085644+0800.mp4
2023-12-01 08:57:38.450857863 [2023-12-01 08:57:38] frigate.record.maintainer WARNING : Discarding a corrupt recording segment: /tmp/cache/test@20231201085644+0800.mp4
2023-12-01 08:57:43.064113987 [2023-12-01 08:57:43] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:57:43.067515028 [2023-12-01 08:57:43] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:57:48.286335264 [2023-12-01 08:57:48] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 08:57:48.287370947 [2023-12-01 08:57:48] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:57:53.116196396 [2023-12-01 08:57:53] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:57:53.116703592 [2023-12-01 08:57:53] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:57:53.118054267 [2023-12-01 08:57:53] ffmpeg.test.detect ERROR : [rtsp @ 0x55a1001d70] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
2023-12-01 08:57:53.118060392 [2023-12-01 08:57:53] ffmpeg.test.detect ERROR : Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
2023-12-01 08:57:53.118064767 [2023-12-01 08:57:53] ffmpeg.test.detect ERROR : [out#0/segment @ 0x55a100de70] Output file does not contain any stream
2023-12-01 08:57:53.171726906 [2023-12-01 08:57:53] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 08:57:53.173506029 [2023-12-01 08:57:53] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:58:03.145326412 [2023-12-01 08:58:03] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:58:03.146598339 [2023-12-01 08:58:03] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:58:03.147399819 [2023-12-01 08:58:03] ffmpeg.test.detect ERROR : [rtsp @ 0x55bdbadd70] method DESCRIBE failed: 404 Not Found
2023-12-01 08:58:03.148117885 [2023-12-01 08:58:03] ffmpeg.test.detect ERROR : rtsp://127.0.0.1:8554/rtsp_cam: Server returned 404 Not Found
2023-12-01 08:58:03.194781654 [2023-12-01 08:58:03] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 08:58:03.195866627 [2023-12-01 08:58:03] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:58:13.175155826 [2023-12-01 08:58:13] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:58:13.176412587 [2023-12-01 08:58:13] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:58:13.177263650 [2023-12-01 08:58:13] ffmpeg.test.detect ERROR : [rtsp @ 0x559d398d70] method DESCRIBE failed: 404 Not Found
2023-12-01 08:58:13.178040047 [2023-12-01 08:58:13] ffmpeg.test.detect ERROR : rtsp://127.0.0.1:8554/rtsp_cam: Server returned 404 Not Found
2023-12-01 08:58:13.225382800 [2023-12-01 08:58:13] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 08:58:13.226630811 [2023-12-01 08:58:13] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:58:23.206685616 [2023-12-01 08:58:23] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:58:23.206699324 [2023-12-01 08:58:23] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:58:23.206703407 [2023-12-01 08:58:23] ffmpeg.test.detect ERROR : [rtsp @ 0x556ec6bd70] method DESCRIBE failed: 404 Not Found
2023-12-01 08:58:23.206707491 [2023-12-01 08:58:23] ffmpeg.test.detect ERROR : rtsp://127.0.0.1:8554/rtsp_cam: Server returned 404 Not Found
2023-12-01 08:58:23.261456645 [2023-12-01 08:58:23] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 08:58:23.262680156 [2023-12-01 08:58:23] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:58:33.235089941 [2023-12-01 08:58:33] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:58:33.236163540 [2023-12-01 08:58:33] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:58:33.237071184 [2023-12-01 08:58:33] ffmpeg.test.detect ERROR : [rtsp @ 0x5586d06d70] method DESCRIBE failed: 404 Not Found
2023-12-01 08:58:33.237825416 [2023-12-01 08:58:33] ffmpeg.test.detect ERROR : rtsp://127.0.0.1:8554/rtsp_cam: Server returned 404 Not Found
2023-12-01 08:58:33.287059872 [2023-12-01 08:58:33] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 08:58:33.287922017 [2023-12-01 08:58:33] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:58:43.254329866 [2023-12-01 08:58:43] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:58:43.254342991 [2023-12-01 08:58:43] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:58:43.254347074 [2023-12-01 08:58:43] ffmpeg.test.detect ERROR : [rtsp @ 0x55b6dead70] method DESCRIBE failed: 404 Not Found
2023-12-01 08:58:43.254351158 [2023-12-01 08:58:43] ffmpeg.test.detect ERROR : rtsp://127.0.0.1:8554/rtsp_cam: Server returned 404 Not Found
2023-12-01 08:59:03.283607360 [2023-12-01 08:59:03] watchdog.test INFO : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 08:59:03.283619318 [2023-12-01 08:59:03] watchdog.test INFO : Waiting for ffmpeg to exit gracefully...
2023-12-01 08:59:03.304899378 [2023-12-01 08:59:03] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 08:59:03.305607819 [2023-12-01 08:59:03] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:59:13.310693717 [2023-12-01 08:59:13] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:59:13.351320135 [2023-12-01 08:59:13] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:59:13.355183165 [2023-12-01 08:59:13] ffmpeg.test.detect ERROR : [vost#1:0/rawvideo @ 0x55857da9b0] Finishing stream without any data written to it.
2023-12-01 08:59:33.397738540 [2023-12-01 08:59:33] watchdog.test INFO : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 08:59:33.400742342 [2023-12-01 08:59:33] watchdog.test INFO : Waiting for ffmpeg to exit gracefully...
2023-12-01 08:59:33.462592238 [2023-12-01 08:59:33] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 08:59:33.466746344 [2023-12-01 08:59:33] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 08:59:43.465646728 [2023-12-01 08:59:43] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 08:59:43.465660144 [2023-12-01 08:59:43] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 08:59:43.465664810 [2023-12-01 08:59:43] ffmpeg.test.detect ERROR : [vost#1:0/rawvideo @ 0x558b49daf0] Finishing stream without any data written to it.
2023-12-01 09:00:03.497671242 [2023-12-01 09:00:03] watchdog.test INFO : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 09:00:03.497696325 [2023-12-01 09:00:03] watchdog.test INFO : Waiting for ffmpeg to exit gracefully...
2023-12-01 09:00:03.529196432 [2023-12-01 09:00:03] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 09:00:03.531250882 [2023-12-01 09:00:03] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:00:13.531849390 [2023-12-01 09:00:13] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:00:13.532220381 [2023-12-01 09:00:13] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:00:13.532866115 [2023-12-01 09:00:13] ffmpeg.test.detect ERROR : [vost#1:0/rawvideo @ 0x5580c16820] Finishing stream without any data written to it.
2023-12-01 09:00:33.561437006 [2023-12-01 09:00:33] watchdog.test INFO : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 09:00:33.561450131 [2023-12-01 09:00:33] watchdog.test INFO : Waiting for ffmpeg to exit gracefully...
2023-12-01 09:01:03.591728753 [2023-12-01 09:01:03] watchdog.test INFO : FFmpeg did not exit. Force killing...
2023-12-01 09:01:03.599829306 [2023-12-01 09:01:03] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 09:01:03.600542413 [2023-12-01 09:01:03] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 09:01:03.601471641 [2023-12-01 09:01:03] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:01:07.994202857 [2023-12-01 09:01:07] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for test. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-01 09:01:08.021880473 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f6c2d2bd0] moov atom not found
2023-12-01 09:01:08.024063253 [ERROR:0@266.009] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2023-12-01 09:01:08.024079878
2023-12-01 09:01:08.024100586 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2023-12-01 09:01:08.024109044
2023-12-01 09:01:08.024117210
2023-12-01 09:01:08.127721684 [2023-12-01 09:01:08] frigate.record.maintainer WARNING : Failed to probe corrupt segment /tmp/cache/test@20231201090016+0800.mp4
2023-12-01 09:01:08.129294604 [2023-12-01 09:01:08] frigate.record.maintainer WARNING : Discarding a corrupt recording segment: /tmp/cache/test@20231201090016+0800.mp4
2023-12-01 09:01:13.603249704 [2023-12-01 09:01:13] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:01:13.603262537 [2023-12-01 09:01:13] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:01:33.636307360 [2023-12-01 09:01:33] watchdog.test INFO : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 09:01:33.636333027 [2023-12-01 09:01:33] watchdog.test INFO : Waiting for ffmpeg to exit gracefully...
2023-12-01 09:01:33.686905335 [2023-12-01 09:01:33] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 09:01:33.686931293 [2023-12-01 09:01:33] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:01:37.952850934 [2023-12-01 09:01:37] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for test. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-01 09:01:43.686173459 [2023-12-01 09:01:43] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:01:43.697732219 [2023-12-01 09:01:43] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:01:43.698268581 [2023-12-01 09:01:43] ffmpeg.test.detect ERROR : [vost#1:0/rawvideo @ 0x559362ce80] Finishing stream without any data written to it.
2023-12-01 09:01:48.872378201 [2023-12-01 09:01:48] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 09:01:48.873188140 [2023-12-01 09:01:48] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:01:53.716592907 [2023-12-01 09:01:53] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:01:53.728002921 [2023-12-01 09:01:53] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:01:53.729180934 [2023-12-01 09:01:53] ffmpeg.test.detect ERROR : [rtsp @ 0x55a3bebd70] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
2023-12-01 09:01:53.730018871 [2023-12-01 09:01:53] ffmpeg.test.detect ERROR : Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
2023-12-01 09:01:53.730638065 [2023-12-01 09:01:53] ffmpeg.test.detect ERROR : [out#0/segment @ 0x55a3bf7e70] Output file does not contain any stream
2023-12-01 09:01:53.781380994 [2023-12-01 09:01:53] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 09:01:53.782170516 [2023-12-01 09:01:53] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:02:03.757660512 [2023-12-01 09:02:03] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:02:03.758609864 [2023-12-01 09:02:03] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:02:03.759173059 [2023-12-01 09:02:03] ffmpeg.test.detect ERROR : [rtsp @ 0x55a28a0d70] method DESCRIBE failed: 404 Not Found
2023-12-01 09:02:03.759986789 [2023-12-01 09:02:03] ffmpeg.test.detect ERROR : rtsp://127.0.0.1:8554/rtsp_cam: Server returned 404 Not Found
2023-12-01 09:02:17.990608731 [2023-12-01 09:02:17] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for test. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-01 09:02:23.777323662 [2023-12-01 09:02:23] watchdog.test INFO : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 09:02:23.777336203 [2023-12-01 09:02:23] watchdog.test INFO : Waiting for ffmpeg to exit gracefully...
2023-12-01 09:02:23.794558700 [2023-12-01 09:02:23] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 09:02:23.795732921 [2023-12-01 09:02:23] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:02:28.001144622 [2023-12-01 09:02:27] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for test. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-01 09:02:33.836512908 [2023-12-01 09:02:33] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:02:33.838358530 [2023-12-01 09:02:33] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:02:33.839626958 [2023-12-01 09:02:33] ffmpeg.test.detect ERROR : [vost#1:0/rawvideo @ 0x559ccc53f0] Finishing stream without any data written to it.
2023-12-01 09:02:53.878168689 [2023-12-01 09:02:53] watchdog.test INFO : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 09:02:53.878181522 [2023-12-01 09:02:53] watchdog.test INFO : Waiting for ffmpeg to exit gracefully...
2023-12-01 09:03:23.897535036 [2023-12-01 09:03:23] watchdog.test INFO : FFmpeg did not exit. Force killing...
2023-12-01 09:03:23.903473807 [2023-12-01 09:03:23] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 09:03:23.904951063 [2023-12-01 09:03:23] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 09:03:23.906388361 [2023-12-01 09:03:23] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 09:03:23.906396236 [2023-12-01 09:03:23] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:03:28.007245361 [2023-12-01 09:03:28] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for test. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-01 09:03:28.037558705 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f6c114320] moov atom not found
2023-12-01 09:03:28.040560757 [ERROR:0@406.025] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2023-12-01 09:03:28.040579715
2023-12-01 09:03:28.040600714 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2023-12-01 09:03:28.040609173
2023-12-01 09:03:28.040617339
2023-12-01 09:03:28.138214501 [2023-12-01 09:03:28] frigate.record.maintainer WARNING : Failed to probe corrupt segment /tmp/cache/test@20231201090236+0800.mp4
2023-12-01 09:03:28.139830878 [2023-12-01 09:03:28] frigate.record.maintainer WARNING : Discarding a corrupt recording segment: /tmp/cache/test@20231201090236+0800.mp4
2023-12-01 09:03:33.906150598 [2023-12-01 09:03:33] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:03:33.906909205 [2023-12-01 09:03:33] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:03:53.952480432 [2023-12-01 09:03:53] watchdog.test INFO : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 09:03:53.952505223 [2023-12-01 09:03:53] watchdog.test INFO : Waiting for ffmpeg to exit gracefully...
2023-12-01 09:03:54.041477720 [2023-12-01 09:03:54] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 09:03:54.043988825 [2023-12-01 09:03:54] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:03:58.011027296 [2023-12-01 09:03:58] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for test. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-01 09:04:04.090977369 [2023-12-01 09:04:04] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:04:04.091013826 [2023-12-01 09:04:04] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:04:04.091034534 [2023-12-01 09:04:04] ffmpeg.test.detect ERROR : [vost#1:0/rawvideo @ 0x5580c9c500] Finishing stream without any data written to it.
2023-12-01 09:04:24.151281570 [2023-12-01 09:04:24] watchdog.test INFO : No frames received from test in 20 seconds. Exiting ffmpeg...
2023-12-01 09:04:24.151294694 [2023-12-01 09:04:24] watchdog.test INFO : Waiting for ffmpeg to exit gracefully...
2023-12-01 09:04:54.183357106 [2023-12-01 09:04:54] watchdog.test INFO : FFmpeg did not exit. Force killing...
2023-12-01 09:04:54.188144406 [2023-12-01 09:04:54] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 09:04:54.189581705 [2023-12-01 09:04:54] frigate.video ERROR : test: Unable to read frames from ffmpeg process.
2023-12-01 09:04:54.190472725 [2023-12-01 09:04:54] frigate.video ERROR : test: ffmpeg process is not running. exiting capture thread...
2023-12-01 09:04:58.015117627 [2023-12-01 09:04:58] frigate.record.maintainer WARNING : Unable to keep up with recording segments in cache for test. Keeping the 6 most recent segments out of 7 and discarding the rest...
2023-12-01 09:04:58.041903348 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f6c2ee4c0] moov atom not found
2023-12-01 09:04:58.043807302 [ERROR:0@496.029] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2023-12-01 09:04:58.043824218
2023-12-01 09:04:58.043844926 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2023-12-01 09:04:58.043853384
2023-12-01 09:04:58.043861259
2023-12-01 09:04:58.166561267 [2023-12-01 09:04:58] frigate.record.maintainer WARNING : Failed to probe corrupt segment /tmp/cache/test@20231201090406+0800.mp4
2023-12-01 09:04:58.168208268 [2023-12-01 09:04:58] frigate.record.maintainer WARNING : Discarding a corrupt recording segment: /tmp/cache/test@20231201090406+0800.mp4
2023-12-01 09:05:04.203241270 [2023-12-01 09:05:04] watchdog.test ERROR : Ffmpeg process crashed unexpectedly for test.
2023-12-01 09:05:04.204251870 [2023-12-01 09:05:04] watchdog.test ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-01 09:05:04.205052475 [2023-12-01 09:05:04] ffmpeg.test.detect ERROR : [h264 @ 0x55a12da180] Missing reference picture, default is 0
WebUI has a selector in the top right where you can choose go2rtc
@NickM-27
2023-12-01 09:27:11.898970855 [INFO] Preparing new go2rtc config...
2023-12-01 09:27:12.342265996 [INFO] Starting go2rtc...
2023-12-01 09:27:12.461811132 09:27:12.461 INF go2rtc version 1.8.4 linux/arm64
2023-12-01 09:27:12.462346619 09:27:12.462 INF [rtsp] listen addr=:8554
2023-12-01 09:27:12.462382201 09:27:12.462 INF [api] listen addr=:1984
2023-12-01 09:27:12.462512865 09:27:12.462 INF [webrtc] listen addr=:8555
2023-12-01 09:27:13.675296552 09:27:13.675 WRN [rtsp] error="streams: wrong response on DESCRIBE" stream=rtsp_cam
2023-12-01 09:27:21.901340141 [INFO] Starting go2rtc healthcheck service...
Looks like go2rtc is getting unexpected response
Hi @NickM-27 @MarcA711 I changed a new rtsp stream, works well. how to confirm ffmpeg use hw accl, ffmpeg used 50% cpu, is that normal
With hwaccel args it will be, 1920x1080 is somewhat high detect resolution, does the camera not have a sub stream
A screenshot of the system page would be better to see
@NickM-27 the camera have no sub stream. In my opinion, hard decoder should not cost so much cpu percent, can I set cpu decoder for comparison?
Yes, just remove the ffmpeg: hwaccel_args:
lines to use the CPU detector.
@MarcA711 Comment out these line,ffmpeg CPU utilization remains unchanged.
@zjd1988 My Orange Pi 5B run 0.13.0-beta6-rk without problems.
Can you try change the go2rtc like below to see if this can solve your issue?
go2rtc:
streams:
rtsp_cam: # <- for RTSP streams
- "ffmpeg:rtsp://10.0.79.32:8554/mystream"
Because my go2rtc can not work before in 0.12.1, and then figure out that I have to add ffmpeg:
in the front of my rtsp url.
My both rtsp streams are H265 camera.
mqtt:
enabled: True
host: 192.168.0.220
port: 1883
user: xxxxx
password: xxxxxx
detectors:
rknn1:
type: rknn
core_mask: 0
rknn2:
type: rknn
core_mask: 0
database:
path: /db/frigate.db
model:
path: default-yolov8m
input_pixel_format: bgr
birdseye:
enabled: True
width: 1280
height: 720
quality: 16
mode: continuous
ffmpeg:
hwaccel_args: preset-rk-h265
output_args:
record: preset-record-generic-audio-aac
detect:
width: 1280
height: 720
fps: 5
enabled: True
max_disappeared: 25
stationary:
interval: 10
threshold: 50
objects:
track:
- person
record:
enabled: True
retain:
days: 10
mode: all
events:
pre_capture: 5
post_capture: 5
objects:
- person
retain:
default: 10
mode: motion
objects:
person: 10
snapshots:
enabled: True
retain:
default: 10
objects:
person: 10
rtmp:
enabled: False
go2rtc:
streams:
Garage:
- "ffmpeg:rtsp://xxx:xxx@192.168.0.102:554"
Home:
- "ffmpeg:rtsp://xxx:xxx@192.168.0.104:554"
# Garage_H264_webrtc:
# - "ffmpeg:rtsp://xxx:xxx@192.168.0.102:554#video=h264/rk#audio=opus"
# Home_H264_webrtc:
# - "ffmpeg:rtsp://xxx:xxx@192.168.0.104:554#video=h264/rk#audio=opus"
# webrtc:
# candidates:
# - 192.168.0.220:8555
# - stun:8555
timestamp_style:
position: "bl"
format: "%Y-%m-%d %H:%M:%S"
cameras:
Garage:
enabled: True
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Garage
input_args: preset-rtsp-restream
roles:
- record
- detect
objects:
track:
- person
- car
- motorcycle
- bicycle
- cat
- dog
- bus
record:
enabled: True
events:
objects:
- person
- car
- motorcycle
- bicycle
- cat
- dog
- bus
retain:
default: 10
mode: motion
objects:
person: 10
car: 10
motorcycle: 10
bicycle: 10
cat: 10
dog: 10
bus: 10
snapshots:
enabled: True
retain:
default: 10
objects:
person: 10
car: 10
motorcycle: 10
bicycle: 10
cat: 10
dog: 10
bus: 10
ui:
order: 0
dashboard: True
live:
stream_name: Garage
Home:
enabled: True
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Home
input_args: preset-rtsp-restream
roles:
- record
- detect
ui:
order: 1
dashboard: True
live:
stream_name: Home
ui:
live_mode: mse
timezone: Asia/Kuala_Lumpur
time_format: 24hour
date_style: full
time_style: full
# DateTime Format
# Year-Month-Date Hour(12hour):Minute:Second AM/PM Timezone = "%Y-%m-%d %I:%M:%S %p %z"
# Year-Month-Date Hour(24hour):Minute:Second Timezone = "%Y-%m-%d %H:%M:%S %z"
strftime_fmt: "%Y-%m-%d %H:%M:%S %z"
telemetry:
version_check: True
#logger:
# default: info
# logs:
# frigate.record: debug
Hi @hardtosay123,thanks for your reply, I changed a rtsp stream and it worked normal.I wonder how much cpu percent cost when hard decode, can you share you top result.
Hi @hardtosay123,thanks for your reply, I changed a rtsp stream and it worked normal.I wonder how much cpu percent cost when hard decode, can you share you top result.
@zjd1988 My top process here:
@hardtosay123 Is that normal, ffmpeg process use 50+% cpu. It remained unchange, when i commented
ffmpeg:
hwaccel_args: preset-rk-h264
can you have a try?
@hardtosay123 Is that normal, ffmpeg process use 50+% cpu. It remained unchange, when i commented
ffmpeg: hwaccel_args: preset-rk-h264
can you have a try?
hmm... I have try commented out the hardware acceleration, the cpu use the same 50+%, remained unchange.
@hardtosay123 I'm confused whether ffmpeg use hw for accelerating video decodeing.I will download a ffmpeg-cpu docker image, and pull a rtsp stream to verify the cpu usage.
@hardtosay123 @MarcA711 I pull mwader/static-ffmpeg:latest cpu use only 7%
Could you try to change your go2rtc stream to:
go2rtc:
streams:
rtsp_cam: # <- for RTSP streams
- ffmpeg:rtsp://10.0.79.32:8554/mystream#video=copy#audio=copy # <- stream which supports video & aac audio
Hi @MarcA711, this rtsp://10.0.79.32:8554/mystream is not work in frigate, but I can pull it from simple ffmpeg cmd
ffmpeg -i rtsp://10.0.79.32:8554/mystream -c copy -f mp4 output.mp4
frigate ffmpeg cmd
ffmpeg -hide_banner -loglevel warning -threads 2 -c:v hevc_rkmpp_decoder -user_agent FFmpeg Frigate/0.13.0-614a36a -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://*:*@10.2.230.20:554/Streaming/Channels/101?transportmode=unicast -r 5 -vf fps=5,scale=1920:1080 -threads 2 -f rawvideo -pix_fmt yuv420p pipe:
Is frigate ffmpeg cmd cost much more cpu than simple ffmpeg cmd?
Your kernel seems to be rather old. Could you try to install this ubuntu and see if it works? https://github.com/Joshua-Riek/ubuntu-rockchip
@MarcA711 Ok, I will install latest ubuntu and have a try, I close this issue for now and reopen this when run into problems.
Describe the problem you are having
cannot get rtsp stream in web ui
Version
Frigate/0.13.0-614a36a
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
Operating system
Debian
Install method
Docker Compose
Coral version
Other
Network connection
Wired
Camera make and model
rtsp stream
Any other information that may be helpful
No response