Closed RobertusIT closed 2 years ago
Which camera is the one having the issue? Seems to be the ad410. I have that camera as well and don't see any issues with the default settings.
Is this camera connected with 2.4 GHz or 5 GHz WiFi network and how is the signal strength? WiFi devices can have issues at times if the data is not being transmitted well.
Which camera is the one having the issue? Seems to be the ad410. I have that camera as well and don't see any issues with the default settings.
Is this camera connected with 2.4 GHz or 5 GHz WiFi network and how is the signal strength? WiFi devices can have issues at times if the data is not being transmitted well.
Yes is an AD410, is connected via Wifi 5ghz and signal is very strong, because router is other side the door, so very very close
But frigate restart every time and isn't stable.
My settings are wrong ?
For my AD410 are:
campanello:
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
input_args:
-avoid_negative_ts make_zero
-fflags +genpts+discardcorrupt
-rtsp_transport tcp
-stimeout 5000000
-use_wallclock_as_timestamps 1
output_args:
detect: -f rawvideo -pix_fmt yuv420p
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
rtmp: -c copy -f flv
inputs:
- path: rtsp://admin:mypass@192.168.178.46:554/cam/realmonitor?channel=1&subtype=0
roles:
- detect
- record
- rtmp
detect:
enabled: true
width: 2560
height: 1920
fps: 5
I would recommend disabling RTMP for the doorbell camera (remove the - rtmp role and set
rtmp:
enabled: false
for the doorbell camera. Just for now as a test since it seems that may be what is causing the issue.
Also I would still recommend the 2.4 GHz over 5GHz as even multiple camera streams will not saturate 2.4 GHz bandwidth.
I would recommend disabling RTMP for the doorbell camera (remove the - rtmp role and set
rtmp: enabled: false
for the doorbell camera. Just for now as a test since it seems that may be what is causing the issue.
Also I would still recommend the 2.4 GHz over 5GHz as even multiple camera streams will not saturate 2.4 GHz bandwidth.
I'm trying in this way, like you said:
campanello:
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
input_args:
-avoid_negative_ts make_zero
-fflags +genpts+discardcorrupt
-rtsp_transport tcp
-stimeout 5000000
-use_wallclock_as_timestamps 1
output_args:
detect: -f rawvideo -pix_fmt yuv420p
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
rtmp: -c copy -f flv
inputs:
- path: rtsp://admin:pass@192.168.178.46:554/cam/realmonitor?channel=1&subtype=0
roles:
- detect
- record
# - rtmp
detect:
enabled: true
width: 2560
height: 1920
fps: 5
rtmp:
enabled: false
Looks correct, have things improved?
Looks correct, have things improved?
not for now, is random and not always that there is an event, so need to test for a day or two
Looks correct, have things improved?
I see some errors, below are the log:
[2022-06-04 05:07:48] ffmpeg.ingresso.record_rtmp ERROR : [flv @ 0x55b8ba154e80] Packet mismatch -1448812582 131679 1694968087
[2022-06-04 05:07:48] ffmpeg.ingresso.record_rtmp ERROR : [flv @ 0x55b8ba154e80] Packet mismatch -1687275790 2559327 1697527414
[2022-06-04 05:07:48] ffmpeg.ingresso.record_rtmp ERROR : [flv @ 0x55b8ba154e80] Packet mismatch 1801154498 76895 1697604309
[2022-06-04 05:07:48] ffmpeg.ingresso.record_rtmp ERROR : [flv @ 0x55b8ba154e80] Packet mismatch 345582608 2609759 1700214068
[2022-06-04 05:07:48] ffmpeg.ingresso.record_rtmp ERROR : [flv @ 0x55b8ba154e80] Packet mismatch -1759033204 131679 1700345747
[2022-06-04 05:07:48] ffmpeg.ingresso.record_rtmp ERROR : [flv @ 0x55b8ba154e80] Unable to seek to the next packet
[2022-06-04 05:07:48] ffmpeg.ingresso.record_rtmp ERROR : http://192.168.178.35/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=pass: Invalid data found when processing input
[2022-06-04 05:07:48] ffmpeg.ingresso.record_rtmp ERROR : [flv @ 0x55b8ba34e740] Failed to update header with correct duration.
[2022-06-04 05:07:48] ffmpeg.ingresso.record_rtmp ERROR : [flv @ 0x55b8ba34e740] Failed to update header with correct filesize.
[2022-06-04 05:07:48] watchdog.ingresso INFO : Terminating the existing ffmpeg process...
[2022-06-04 05:07:48] watchdog.ingresso INFO : Waiting for ffmpeg to exit gracefully...
[2022-06-04 05:07:52] frigate.video ERROR : ingresso: Unable to read frames from ffmpeg process.
[2022-06-04 05:07:52] frigate.video ERROR : ingresso: ffmpeg process is not running. exiting capture thread...
[2022-06-04 05:07:58] watchdog.ingresso ERROR : Ffmpeg process crashed unexpectedly for ingresso.
[2022-06-04 05:07:58] watchdog.ingresso ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-06-04 05:07:58] ffmpeg.ingresso.detect ERROR : http://192.168.178.35/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=pass: Connection timed out
[2022-06-04 05:07:58] ffmpeg.ingresso.record_rtmp ERROR : [tcp @ 0x55f808612040] Connection to tcp://192.168.178.35:80 failed: Connection timed out
[2022-06-04 05:07:58] ffmpeg.ingresso.record_rtmp ERROR : http://192.168.178.35/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=pass: Connection timed out
[2022-06-04 05:07:58] watchdog.ingresso INFO : Terminating the existing ffmpeg process...
[2022-06-04 05:07:58] watchdog.ingresso INFO : Waiting for ffmpeg to exit gracefully...
[2022-06-04 05:08:13] frigate.video ERROR : campanello: Unable to read frames from ffmpeg process.
[2022-06-04 05:08:13] frigate.video ERROR : campanello: ffmpeg process is not running. exiting capture thread...
[2022-06-04 05:08:19] watchdog.campanello ERROR : Ffmpeg process crashed unexpectedly for campanello.
[2022-06-04 05:08:19] watchdog.campanello ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-06-04 05:08:19] ffmpeg.campanello.detect ERROR : [aac @ 0x55b77f796780] Too many bits 8832.000000 > 6144 per frame requested, clamping to max
[2022-06-05 02:00:12] frigate.video ERROR : ingresso: Unable to read frames from ffmpeg process.
[2022-06-05 02:00:12] frigate.video ERROR : ingresso: ffmpeg process is not running. exiting capture thread...
[2022-06-05 02:00:20] watchdog.ingresso ERROR : Ffmpeg process crashed unexpectedly for ingresso.
[2022-06-05 02:00:20] watchdog.ingresso ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-06-05 02:00:20] ffmpeg.ingresso.detect ERROR : http://192.168.178.35/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=pass: Connection timed out
[2022-06-05 02:00:20] ffmpeg.ingresso.record_rtmp ERROR : http://192.168.178.35/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=pass: Connection timed out
[2022-06-05 02:00:20] ffmpeg.ingresso.record_rtmp ERROR : [flv @ 0x561bf69fcd80] Failed to update header with correct duration.
[2022-06-05 02:00:20] ffmpeg.ingresso.record_rtmp ERROR : [flv @ 0x561bf69fcd80] Failed to update header with correct filesize.
[2022-06-05 02:00:20] watchdog.ingresso INFO : Terminating the existing ffmpeg process...
[2022-06-05 02:00:20] watchdog.ingresso INFO : Waiting for ffmpeg to exit gracefully...
[2022-06-05 02:00:25] frigate.video ERROR : ingresso: Unable to read frames from ffmpeg process.
[2022-06-05 02:00:25] frigate.video ERROR : ingresso: ffmpeg process is not running. exiting capture thread...
[2022-06-05 02:00:30] watchdog.ingresso ERROR : Ffmpeg process crashed unexpectedly for ingresso.
[2022-06-05 02:00:30] watchdog.ingresso ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-06-05 02:00:30] ffmpeg.ingresso.detect ERROR : [tcp @ 0x560de21c5dc0] Connection to tcp://192.168.178.35:80 failed: Connection timed out
[2022-06-05 02:00:30] ffmpeg.ingresso.detect ERROR : http://192.168.178.35/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=pass: Connection timed out
[2022-06-05 02:00:30] ffmpeg.ingresso.record_rtmp ERROR : [tcp @ 0x559d4ae23040] Connection to tcp://192.168.178.35:80 failed: Connection timed out
[2022-06-05 02:00:30] ffmpeg.ingresso.record_rtmp ERROR : http://192.168.178.35/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=pass: Connection timed out
[2022-06-05 02:00:30] watchdog.ingresso INFO : Terminating the existing ffmpeg process...
[2022-06-05 02:00:30] watchdog.ingresso INFO : Waiting for ffmpeg to exit gracefully...
[2022-06-05 02:00:35] frigate.video ERROR : ingresso: Unable to read frames from ffmpeg process.
[2022-06-05 02:00:35] frigate.video ERROR : ingresso: ffmpeg process is not running. exiting capture thread...
[2022-06-05 02:00:40] watchdog.ingresso ERROR : Ffmpeg process crashed unexpectedly for ingresso.
[2022-06-05 02:00:40] watchdog.ingresso ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-06-05 02:00:40] ffmpeg.ingresso.detect ERROR : [tcp @ 0x55aba068adc0] Connection to tcp://192.168.178.35:80 failed: Connection timed out
[2022-06-05 02:00:40] ffmpeg.ingresso.detect ERROR : http://192.168.178.35/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=pass: Connection timed out
[2022-06-05 02:00:40] ffmpeg.ingresso.record_rtmp ERROR : [tcp @ 0x559eae5f8040] Connection to tcp://192.168.178.35:80 failed: Connection timed out
[2022-06-05 02:00:40] ffmpeg.ingresso.record_rtmp ERROR : http://192.168.178.35/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=pass: Connection timed out
[2022-06-05 02:00:40] watchdog.ingresso INFO : Terminating the existing ffmpeg process...
[2022-06-05 02:00:40] watchdog.ingresso INFO : Waiting for ffmpeg to exit gracefully...
[2022-06-05 05:17:46] frigate.video ERROR : ingresso: Unable to read frames from ffmpeg process.
[2022-06-05 05:17:46] frigate.video ERROR : ingresso: ffmpeg process is not running. exiting capture thread...
[2022-06-05 05:17:50] watchdog.ingresso ERROR : Ffmpeg process crashed unexpectedly for ingresso.
[2022-06-05 05:17:50] watchdog.ingresso ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-06-05 05:17:50] ffmpeg.ingresso.detect ERROR : http://192.168.178.35/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=pass: Connection timed out
[2022-06-05 05:17:50] ffmpeg.ingresso.record_rtmp ERROR : http://192.168.178.35/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=pass: Connection timed out
[2022-06-05 05:17:50] ffmpeg.ingresso.record_rtmp ERROR : [flv @ 0x559d4e453d00] Failed to update header with correct duration.
[2022-06-05 05:17:50] ffmpeg.ingresso.record_rtmp ERROR : [flv @ 0x559d4e453d00] Failed to update header with correct filesize.
[2022-06-05 05:17:50] watchdog.ingresso INFO : Terminating the existing ffmpeg process...
[2022-06-05 05:17:50] watchdog.ingresso INFO : Waiting for ffmpeg to exit gracefully...
[2022-06-05 05:18:10] watchdog.campanello INFO : No frames received from campanello in 20 seconds. Exiting ffmpeg...
[2022-06-05 05:18:10] watchdog.campanello INFO : Waiting for ffmpeg to exit gracefully...
[2022-06-05 05:18:10] frigate.video ERROR : campanello: Unable to read frames from ffmpeg process.
[2022-06-05 05:18:10] frigate.video ERROR : campanello: ffmpeg process is not running. exiting capture thread...
[2022-06-05 05:18:20] watchdog.campanello ERROR : Ffmpeg process crashed unexpectedly for campanello.
[2022-06-05 05:18:20] watchdog.campanello ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-06-05 05:18:20] ffmpeg.campanello.detect ERROR : [aac @ 0x56042c3b17c0] Too many bits 8832.000000 > 6144 per frame requested, clamping to max
[2022-06-05 05:18:20] ffmpeg.campanello.detect ERROR : [rtsp @ 0x56042c38ad00] CSeq 2903 expected, 0 received.
[2022-06-05 05:18:20] ffmpeg.campanello.detect ERROR : [segment @ 0x56042c3ac800] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-06-05 05:18:20] ffmpeg.campanello.detect ERROR : [segment @ 0x56042c3ac800] Non-monotonous DTS in output stream 0:0; previous: 1335859801, current: 1335859801; changing to 1335859802. This may result in incorrect timestamps in the output file.
[2022-06-05 05:18:20] ffmpeg.campanello.detect ERROR : [segment @ 0x56042c3ac800] Non-monotonous DTS in output stream 0:0; previous: 1335861284, current: 1335861284; changing to 1335861285. This may result in incorrect timestamps in the output file.
[2022-06-05 05:18:20] ffmpeg.campanello.detect ERROR : [segment @ 0x56042c3ac800] Non-monotonous DTS in output stream 0:0; previous: 1335861310, current: 1335861310; changing to 1335861311. This may result in incorrect timestamps in the output file.
[2022-06-05 05:18:20] ffmpeg.campanello.detect ERROR : [segment @ 0x56042c3ac800] Non-monotonous DTS in output stream 0:0; previous: 1335863857, current: 1335863857; changing to 1335863858. This may result in incorrect timestamps in the output file.
[2022-06-05 05:18:20] ffmpeg.campanello.detect ERROR : [segment @ 0x56042c3ac800] Non-monotonous DTS in output stream 0:0; previous: 1335871493, current: 1335871493; changing to 1335871494. This may result in incorrect timestamps in the output file.
[2022-06-06 00:15:14] ws4py INFO : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:46194]
[2022-06-06 00:16:42] ws4py INFO : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:46194]
[2022-06-06 09:03:58] frigate.video ERROR : ingresso: Unable to read frames from ffmpeg process.
[2022-06-06 09:03:58] frigate.video ERROR : ingresso: ffmpeg process is not running. exiting capture thread...
[2022-06-06 09:04:02] watchdog.ingresso ERROR : Ffmpeg process crashed unexpectedly for ingresso.
[2022-06-06 09:04:02] watchdog.ingresso ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-06-06 09:04:02] ffmpeg.ingresso.detect ERROR : http://192.168.178.35/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=pass: Connection timed out
[2022-06-06 09:04:07] frigate.video ERROR : ingresso: Unable to read frames from ffmpeg process.
[2022-06-06 09:04:07] frigate.video ERROR : ingresso: ffmpeg process is not running. exiting capture thread...
[2022-06-06 09:04:12] watchdog.ingresso ERROR : Ffmpeg process crashed unexpectedly for ingresso.
[2022-06-06 09:04:12] watchdog.ingresso ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-06-06 09:04:12] ffmpeg.ingresso.detect ERROR : http://192.168.178.35/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=pass: Connection timed out
[2022-06-06 09:04:12] watchdog.campanello INFO : No frames received from campanello in 20 seconds. Exiting ffmpeg...
[2022-06-06 09:04:12] watchdog.campanello INFO : Waiting for ffmpeg to exit gracefully...
[2022-06-06 09:04:12] frigate.video ERROR : campanello: Unable to read frames from ffmpeg process.
[2022-06-06 09:04:12] frigate.video ERROR : campanello: ffmpeg process is not running. exiting capture thread...
[2022-06-06 09:04:22] watchdog.campanello ERROR : Ffmpeg process crashed unexpectedly for campanello.
[2022-06-06 09:04:22] watchdog.campanello ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-06-06 09:04:22] ffmpeg.campanello.detect ERROR : [aac @ 0x55a1f44bcc40] Too many bits 8832.000000 > 6144 per frame requested, clamping to max
[2022-06-06 09:04:22] ffmpeg.campanello.detect ERROR : [segment @ 0x55a1f44a4240] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-06-06 09:04:22] ffmpeg.campanello.detect ERROR : [rtsp @ 0x55a1f4441d00] RTP: PT=60: bad cseq 206b expected=092c
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the problem you are having
Frigate restart every time, and there are a lot of error for my camera.
Version
0.10.1-83481AF
Frigate config file
Relevant log output
Frigate stats
Operating system
Proxmox
Install method
Docker Compose
Coral version
USB
Any other information that may be helpful
Reolink RLC-410 and Amcrest ad410 Doorbell