[Camera Support]: #13659
-
Describe the problem you are havingI have a Reolink Duo 2 camera that stutters a lot and changes colors as in the attached picture. The image can also turn completely green sometimes. Stream directly from camera to VLC is ok. Any suggestions? What could be the cause of this? Version0.14.1 What browser(s) are you using?Home Assistant Frigate config fileversion: 0.14
mqtt:
host: xx.xx.xx.xx
port: xxx
user: xxx
password: xxx
client_id: stugan
topic_prefix: frigate_stugan
detectors:
coral_usb:
type: edgetpu
device: usb
model:
path: plus://c466b97b481c91142708328c638206a7
go2rtc:
streams:
stugan-car-park:
- rtsp://xxx:[email protected]:554/h264Preview_01_main
stugan-car-park_sub:
- rtsp://xxx:[email protected]:554/h264Preview_01_sub
stugan-car-park-zoomed:
- rtsp://xxx:[email protected]:554/h264Preview_02_main
stugan-car-park-zoomed_sub:
- rtsp://xxx:[email protected]:554/h264Preview_02_sub
stugan-entrance:
- rtsp://xxx.xxx.xxx.xxx:554/Streaming/Channels/101
- ffmpeg:stugan-front-yard#video=h264#audio=copy
stugan-entrance_sub:
- rtsp://xxx.xxx.xxx.xxx:554/Streaming/Channels/102
stugan-storage:
- ffmpeg:rtsp://xxx.xxx.xxx.xxx:8553/friggebod
stugan-terrace:
- ffmpeg:rtsp://xxx.xxx.xxx.xxz:8553/vstra-terrace
stugan-terrace_sub:
- ffmpeg:rtsp://xxx.xxx.xxx.xxx:8553/vstra-terrace-sub
stugan-backyard:
- ffmpeg:rtsp://xxx.xxx.xxx.xxx:8553/sder-terrace
webrtc:
candidates:
- xxx.xxx.xxx.xxx:8555
- stun:8555
ffmpeg:
output_args:
record: preset-record-generic-audio-aac
detect:
enabled: true
width: 640
height: 360
fps: 7
record:
enabled: true
retain:
days: 5
events:
pre_capture: 5
post_capture: 5
retain:
default: 2
mode: active_objects
objects:
animal: 2
person: 7
car: 15
cat: 5
dog: 5
snapshots:
bounding_box: true
enabled: true
retain:
default: 2
objects:
person: 15
cameras:
stugan-car-park:
ui:
order: 1
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/stugan-car-park
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/stugan-car-park_sub
input_args: preset-rtsp-restream
roles:
- detect
onvif:
host: xxx.xxx.xxx.xxx
port: 8000
user: xxx
password: xxx
detect:
width: 896
height: 512
fps: 6
motion:
threshold: 45
contour_area: 40
mask:
0,0,1,0,1,1,0.66,1,0.568,0.569,0.845,0.505,0.72,0.276,0.341,0.317,0.216,0.505,0.325,1,0,1
improve_contrast: 'true'
zones:
Car-park:
coordinates: 0.192,0.639,0.836,0.493,0.687,0.238,0.345,0.228,0.17,0.382
loitering_time: 0
Stig:
coordinates: 0.234,0.651,0.302,1,0.654,0.994,0.559,0.563
loitering_time: 0
review:
alerts:
required_zones:
- Car-park
- Stig
objects:
track:
- car
- person
- dog
- cat
- bicycle
- motorcycle
- license_plate
filters:
car:
mask: 0.303,0,0,0,0,1,1,1,1,0,0.511,0,0.545,0.579,0.318,0.586
stugan-car-park-Detailed:
ui:
order: 2
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/stugan-car-park-zoomed
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/stugan-car-park-zoomed_sub
input_args: preset-rtsp-restream
roles:
- detect
onvif:
host: xxx.xxx.xxx.xxx
port: 8000
user: xxx
password: xxx
detect:
enabled: False
width: 896
height: 512
fps: 6
stugan-entrance:
ui:
order: 3
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/stugan-entrance
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/stugan-entrance_sub
input_args: preset-rtsp-restream
roles:
- detect
detect:
width: 480
height: 640
fps: 6
motion:
mask:
0,0.626,0.108,0.448,0.073,0.391,0.166,0.406,0.17,0.566,0.58,0.835,1,0.771,1,0,0,0
threshold: 50
contour_area: 30
improve_contrast: 'true'
zones:
stigen:
coordinates: 0.486,0.772,0,0.831,0.001,0.379,0.151,0.387
loitering_time: 0
altan:
coordinates: 0,0.834,0.998,0.765,1,1,0,1
loitering_time: 0
objects:
track:
- person
- animal
- bicycle
- cat
- dog
- horse
- suitcase
- backpack
- knife
- bear
- motorcycle
- bird
- mouse
- package
- face
review:
alerts:
required_zones:
- altan
- stigen
detections: {}
stugan-storage:
ui:
order: 4
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/stugan-storage?video=copy&audio=copy
input_args: preset-rtsp-restream
roles:
- record
- detect
detect:
width: 1920
height: 1080
motion:
threshold: 60
contour_area: 45
mask:
- 0.711,1,0.979,1,0.975,0.931,0.715,0.931
- 0,0.667,0,0,1,0,0.302,0.355,0.117,0.532
improve_contrast: 'true'
objects:
track:
- person
- animal
- bicycle
- cat
- dog
- horse
- backpack
- knife
- bear
- bird
- mouse
- face
mask: 0,0.712,0.32,0.353,0.99,-0.009,0,0
zones:
altan:
coordinates: 0.557,0.497,0.551,0.578,0.956,1,1,0.729,1,0.51,0.789,0.419
loitering_time: 0
objects:
- animal
- backpack
- bear
- bicycle
- bird
- cat
- dog
- knife
- mouse
- person
inertia: 3
garden:
coordinates: 1,1,0.53,0.595,0.579,0.532,0.446,0.434,0.439,0.297,0.203,0.474,0,0.721,0.001,1
loitering_time: 0
inertia: 3
review:
alerts:
required_zones:
- altan
- garden
detections: {}
stugan-terrace:
ui:
order: 5
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/stugan-terrace?video=copy&audio=copy
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/stugan-terrace_sub?video=copy&audio=copy
input_args: preset-rtsp-restream
roles:
- detect
detect:
width: 640
height: 360
motion:
threshold: 40
mask:
- 0.975,0.94,0.972,0.983,0.779,0.983,0.78,0.935
- 0,1,0.083,0.996,0.105,0.657,0.189,0.618,0.189,0.166,0.253,0.155,0.275,1,0.503,1,0.541,0.581,0.833,0.918,0.903,0.561,0.747,0.375,0.752,0.346,1,0.516,1,0.593,0.891,0.616,0.977,1,1,1,1,0,0,0
contour_area: 35
improve_contrast: 'true'
objects:
track:
- person
- animal
- bicycle
- cat
- dog
- horse
- suitcase
- backpack
- knife
- bear
- bird
- mouse
- package
- face
filters:
person:
mask: 0.265,0,0.272,0.881,0.52,0.888,0.543,0.002
zones:
fotbollsplanen:
coordinates: 0.742,0.384,0.917,0.627,0.999,0.611,0.997,0.505,0.764,0.345
loitering_time: 0
altan:
coordinates: 0.264,0.311,0.305,0.295,0.835,0.916,0.842,1,0.079,0.998,0.145,0.38,0.27,0.364
loitering_time: 0
review:
alerts:
required_zones: altan
detections:
required_zones: fotbollsplanen
stugan-backyard:
ui:
order: 6
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/stugan-backyard?video=copy&audio=copy
input_args: preset-rtsp-restream
roles:
- record
- detect
detect:
width: 1920
height: 1080
motion:
threshold: 40
mask:
- 0.717,0.929,0.719,0.989,0.973,0.998,0.974,0.93
- 0,0,0,0.404,0.497,0.525,1,0.679,1,0
contour_area: 35
improve_contrast: 'true'
zones:
altan:
coordinates: 0.058,0.655,0.483,0.512,1,0.675,1,1,0.116,1
loitering_time: 0
skog:
coordinates: 1,0.666,0.001,0.409,-0.001,0.002,1,0
inertia: 3
loitering_time: 0
objects:
track:
- person
- animal
- bicycle
- cat
- dog
- horse
- suitcase
- backpack
- knife
- bear
- bird
- mouse
- package
- face
review:
alerts:
required_zones:
- altan
- skog Relevant Frigate log output2024-09-10 19:36:49.672269469 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : [aac @ 0x562fa2c4ab40] channel element 1.6 is not allocated
2024-09-10 19:36:49.672405311 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : Error while decoding stream #0:1: Invalid data found when processing input
2024-09-10 19:36:49.672552396 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : [aac @ 0x562fa2c4ab40] skip_data_stream_element: Input buffer exhausted before END element found
2024-09-10 19:36:49.672683069 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : Error while decoding stream #0:1: Invalid data found when processing input
2024-09-10 19:36:49.672815628 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : [aac @ 0x562fa2c4ab40] channel element 1.8 is not allocated
2024-09-10 19:36:49.672945533 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : Error while decoding stream #0:1: Invalid data found when processing input
2024-09-10 19:36:49.673073552 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : [aac @ 0x562fa2c4ab40] Input buffer exhausted before END element found
2024-09-10 19:36:49.673205482 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : Error while decoding stream #0:1: Invalid data found when processing input
2024-09-10 19:36:49.673341533 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : [aac @ 0x562fa2c4ab40] channel element 3.0 is not allocated
2024-09-10 19:36:49.673471158 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : Error while decoding stream #0:1: Invalid data found when processing input
2024-09-10 19:36:49.673643038 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : [aac @ 0x562fa2c4ab40] Input buffer exhausted before END element found
2024-09-10 19:36:49.673775736 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : Error while decoding stream #0:1: Invalid data found when processing input
2024-09-10 19:36:49.673901311 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : [aac @ 0x562fa2c4ab40] skip_data_stream_element: Input buffer exhausted before END element found
2024-09-10 19:36:49.674038968 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : Error while decoding stream #0:1: Invalid data found when processing input
2024-09-10 19:36:49.674172714 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : [aac @ 0x562fa2c4ab40] channel element 3.3 is not allocated
2024-09-10 19:36:49.674311489 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : Error while decoding stream #0:1: Invalid data found when processing input
2024-09-10 19:36:49.674441044 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : [aac @ 0x562fa2c4ab40] skip_data_stream_element: Input buffer exhausted before END element found
2024-09-10 19:36:49.674596301 [2024-09-10 19:36:49] ffmpeg.stugan-car-park.record ERROR : Error while decoding stream #0:1: Invalid data found when processing input
2024-09-10 19:36:49.674738708 [2024-09-10 19:36:49] watchdog.stugan-car-park INFO : Terminating the existing ffmpeg process...
2024-09-10 19:36:49.674878390 [2024-09-10 19:36:49] watchdog.stugan-car-park INFO : Waiting for ffmpeg to exit gracefully...
2024-09-10 19:36:54.756444838 [2024-09-10 19:36:54] watchdog.stugan-storage ERROR : Ffmpeg process crashed unexpectedly for stugan-storage.
2024-09-10 19:36:54.756571810 [2024-09-10 19:36:54] watchdog.stugan-storage ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-09-10 19:36:54.756669308 [2024-09-10 19:36:54] ffmpeg.stugan-storage.detect ERROR : [tcp @ 0x55d1c77d7100] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
2024-09-10 19:36:54.756763664 [2024-09-10 19:36:54] ffmpeg.stugan-storage.detect ERROR : rtsp://127.0.0.1:8554/stugan-storage?video=copy&audio=copy: Connection refused
2024-09-10 19:36:54.837136245 [2024-09-10 19:36:54] watchdog.stugan-backyard ERROR : Ffmpeg process crashed unexpectedly for stugan-backyard.
2024-09-10 19:36:54.837319019 [2024-09-10 19:36:54] watchdog.stugan-backyard ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-09-10 19:36:54.837470016 [2024-09-10 19:36:54] ffmpeg.stugan-backyard.detect ERROR : [tcp @ 0x5643b14b4100] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
2024-09-10 19:36:54.837627927 [2024-09-10 19:36:54] ffmpeg.stugan-backyard.detect ERROR : rtsp://127.0.0.1:8554/stugan-backyard?video=copy&audio=copy: Connection refused
2024-09-10 19:37:04.766421107 [h264 @ 0x14837c1b3340] mmco: unref short failure
2024-09-10 19:37:04.766440383 [h264 @ 0x14837c1b3340] illegal short term buffer state detected Relevant go2rtc log output2024-09-10 16:37:30.561712187 16:37:30.561 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://frigate:frigatE7098!@192.168.20.106:554/h264Preview_01_main
2024-09-10 16:41:45.796705484 16:41:45.796 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="size 64055 < 169092: RTP header size insufficient for extension" url=rtsp://frigate:frigatE7098!@192.168.20.106:554/h264Preview_02_main
2024-09-10 17:46:55.901842767 17:46:55.901 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://frigate:frigatE7098!@192.168.20.106:554/h264Preview_02_main
2024-09-10 18:24:50.029410235 18:24:50.029 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="size 124 < 164480: RTP header size insufficient for extension" url=rtsp://frigate:frigatE7098!@192.168.20.106:554/h264Preview_02_main
2024-09-10 18:33:28.061401956 18:33:28.061 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="size 11633 < 101228: RTP header size insufficient for extension" url=rtsp://frigate:frigatE7098!@192.168.20.106:554/h264Preview_02_main
2024-09-10 18:50:44.905447304 18:50:44.905 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="size 12707 < 108012: RTP header size insufficient for extension" url=rtsp://frigate:frigatE7098!@192.168.20.106:554/h264Preview_01_main
2024-09-10 19:03:39.027158332 19:03:39.026 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="size 124 < 190500: RTP header size insufficient for extension" url=rtsp://frigate:frigatE7098!@192.168.20.106:554/h264Preview_01_main
2024-09-10 19:03:50.989679265 19:03:50.989 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="size 289 < 59252: RTP header size insufficient for extension" url=rtsp://frigate:frigatE7098!@192.168.20.106:554/h264Preview_01_main
2024-09-10 19:36:15.078356793 19:36:15.078 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="RTSP wrong input" url=rtsp://frigate:frigatE7098!@192.168.20.106:554/h264Preview_01_main
2024-09-10 19:36:41.190708860 panic: runtime error: slice bounds out of range [7686:256]
2024-09-10 19:51:18.923232 2024-09-10 19:36:41.190723108
2024-09-10 19:36:41.190728555 goroutine 12816 [running]:
2024-09-10 19:36:41.190734282 github.com/AlexxIT/go2rtc/pkg/mp4.(*Consumer).AddTrack.RTPDepay.func4(0xc000b97050)
2024-09-10 19:36:41.190739800 github.com/AlexxIT/go2rtc/pkg/h265/rtp.go:57 +0x8eb
2024-09-10 19:36:41.190814460 github.com/AlexxIT/go2rtc/pkg/core.(*Sender).worker(0xc000ba51a0, 0xc00083a240)
2024-09-10 19:36:41.190818930 github.com/AlexxIT/go2rtc/pkg/core/track.go:158 +0x1f3
2024-09-10 19:36:41.190823539 created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 12815
2024-09-10 19:36:41.190828847 github.com/AlexxIT/go2rtc/pkg/core/track.go:117 +0x6b
2024-09-10 19:36:41.449364517 [INFO] The go2rtc service exited with code 2 (by signal 0)
2024-09-10 19:36:42.471340636 [INFO] Removing stale config from last run...
2024-09-10 19:36:42.478931685 [INFO] Preparing new go2rtc config...
2024-09-10 19:36:46.145389899 [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2024-09-10 19:36:46.183415963 [INFO] Starting go2rtc...
2024-09-10 19:36:46.345580230 19:36:46.345 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2024-09-10 19:36:46.345608725 19:36:46.345 INF config path=/dev/shm/go2rtc.yaml
2024-09-10 19:36:46.346154046 19:36:46.346 INF [rtsp] listen addr=:8554
2024-09-10 19:36:46.346158586 19:36:46.346 INF [api] listen addr=:1984
2024-09-10 19:36:46.346608154 19:36:46.346 INF [webrtc] listen addr=:8555
2024-09-10 19:37:51.218095305 19:37:51.217 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="buffer too small" url=rtsp://frigate:frigatE7098!@192.168.20.106:554/h264Preview_02_main
2024-09-10 19:42:42.334242136 19:42:42.334 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="size 497 < 27676: RTP header size insufficient for extension" url=rtsp://frigate:frigatE7098!@192.168.20.106:554/h264Preview_01_main FFprobe output from your cameraI will add asap Frigate statsNo response Operating systemUNRAID Install methodDocker Compose Object DetectorCoral Network connectionWired Camera make and modelReolink Duo 2 TrackMix Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
reolinks are known to have these kinds of issues, you may try to update to the latest firmware from their site. VLC uses udp by default, you could try that and see if it helps |
Beta Was this translation helpful? Give feedback.
-
Updating the camera software to the latest fixed the problem. |
Beta Was this translation helpful? Give feedback.
reolinks are known to have these kinds of issues, you may try to update to the latest firmware from their site.
VLC uses udp by default, you could try that and see if it helps