Closed hellomynameisleo closed 9 months ago
camera is timing out, which is common for reolink rtsp. This is why the docs have a recommended reolink config https://docs.frigate.video/configuration/camera_specific#reolink-cameras
camera is timing out, which is common for reolink rtsp. This is why the docs have a recommended reolink config https://docs.frigate.video/configuration/camera_specific#reolink-cameras
thanks for this, but still getting errors below when I've changes the config to http video stream.
2023-12-24 01:40:54.398235735 [2023-12-24 01:40:54] frigate.video ERROR : bedroom: ffmpeg process is not running. exiting capture thread...
2023-12-24 01:41:03.169224333 [2023-12-24 01:41:03] watchdog.bedroom ERROR : Ffmpeg process crashed unexpectedly for bedroom.
2023-12-24 01:41:03.169354976 [2023-12-24 01:41:03] watchdog.bedroom ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-24 01:41:03.169503500 [2023-12-24 01:41:03] ffmpeg.bedroom.detect ERROR : [flv @ 0x56104c600f80] Packet corrupt (stream = 0, dts = 553143), dropping it.
2023-12-24 01:41:03.169551800 [2023-12-24 01:41:03] ffmpeg.bedroom.detect ERROR : http://192.168.4.183/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=*&password=* Connection timed out
here is the new config I've set
mqtt:
enabled: False
detectors:
cpu1:
type: cpu
num_threads: 16
go2rtc:
streams:
bedroom:
- http://192.168.4.183/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password={FRIGATE_RTSP_PASSWORD}
cameras:
bedroom:
enabled: True
ffmpeg:
inputs:
- path: http://192.168.4.183/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password={FRIGATE_RTSP_PASSWORD}
input_args: preset-http-reolink
roles:
- record
- path: http://192.168.4.183/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=admin&password={FRIGATE_RTSP_PASSWORD}
input_args: preset-http-reolink
roles:
- detect
detect:
enabled: True
width: 640
height: 480
fps: 5
record:
enabled: True
retain:
days: 10
mode: all
events:
retain:
mode: motion
default: 30
birdseye:
enabled: True
restream: False
width: 640
height: 480
quality: 12
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
Looks like camera is timing out
Looks like camera is timing out Looks good now, just not timing out frequently, guessing its a reolink camera issue.
I've enable hardware acceleration for my gpu rtx 2060 and it has reduced filesize by about 80% but this causes the timestamps on frigate and the video recording to go out of sync, also the video recordings are now in only 8 or 16 seconds whereas before they was all 10 seconds long, is there something in the ffmpeg encoding config causing these issues?
2023-12-26 23:00:20.332778254 [2023-12-26 23:00:20] watchdog.bedroom ERROR : No new recording segments were created for bedroom in the last 120s. restarting the ffmpeg record process...
2023-12-26 23:00:20.332881015 [2023-12-26 23:00:20] watchdog.bedroom INFO : Terminating the existing ffmpeg process...
2023-12-26 23:00:20.332935245 [2023-12-26 23:00:20] watchdog.bedroom INFO : Waiting for ffmpeg to exit gracefully...
mqtt:
enabled: False
detectors:
cpu1:
type: cpu
num_threads: 6
go2rtc:
streams:
bedroom:
- http://192.168.4.183/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password={FRIGATE_RTSP_PASSWORD}
cameras:
bedroom:
enabled: True
ffmpeg:
inputs:
- path: http://192.168.4.183/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password={FRIGATE_RTSP_PASSWORD}
input_args: preset-http-reolink
roles:
- record
- path: http://192.168.4.183/flv?port=1935&app=bcs&stream=channel0_sub.bcs&user=admin&password={FRIGATE_RTSP_PASSWORD}
input_args: preset-http-reolink
roles:
- detect
detect:
enabled: True
width: 640
height: 480
fps: 5
record:
enabled: True
retain:
days: 10
mode: all
events:
retain:
mode: motion
default: 20
birdseye:
enabled: True
restream: False
width: 640
height: 480
quality: 12
ffmpeg:
hwaccel_args: preset-nvidia-h264
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v h264_nvenc -preset medium -c:a copy
found out my cctv is out of sync with ntp since I disconnected it from the internet, did a quick reconnect and synced it up again
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
Sometimes the video will look corrupted part way through or disconnect, my frigate logs constantly outputs error messages such as "corrupt decoded frame in stream 0", "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", "Connection timed out" and "corrupt decoded frame in stream 0".
Version
0.12.1-367d724
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
No response
Operating system
UNRAID
Install method
Docker Compose
Coral version
CPU (no coral)
Network connection
Wired
Camera make and model
Reolink RLC-520a
Any other information that may be helpful
No response