Local realtime person detection for RTSP cameras

Hello

so far ,so good :grinning:
with Rc7

Thank’s you blakeblackshear :clap:

When it gets into the weird state, my frontdoor camera keeps streaming but my driveway camera stops. The image reloads the latest image whenever the following shows up in the logs

A restart of the container fixes it until it happens again.

btw…This is with a Wyze camera running the rtsp firmware.

[h264 @ 0x56171ac9b0c0] left block unavailable for requested intra mode1439244.3kbits/s speed=0.995x 39244.3kbits/s speed=0.995x
2020-03-03T12:09:54.776223400Z [h264 @ 0x56171ac9b0c0] error while decoding MB 0 11, bytestream 1103
No more output streams to write to, finishing.e=00:00:04.60 bitrate=497664.0kbits/s speed=0.0626x 39244.3kbits/s speed=0.995x
2020-03-03T12:09:59.899228011Z frame= 46 fps=0.6 q=-0.0 Lsize= 279450kB time=00:00:04.60 bitrate=497664.0kbits/s speed=0.0626x
2020-03-03T12:09:59.899444819Z video:279450kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
2020-03-03T12:09:59.900324303Z Total: 46 packets (286156800 bytes) muxed
2020-03-03T12:09:59.911640043Z driveway: ffmpeg_process exited unexpectedly with 0
2020-03-03T12:09:59.911836457Z Terminating the existing ffmpeg process…
ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developersts/s speed=0.995x 39244.3kbits/s speed=0.995x
2020-03-03T12:10:02.552939440Z built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
2020-03-03T12:10:02.553127952Z configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
2020-03-03T12:10:02.556830752Z Routing option strict to both codec and muxer layer
2020-03-03T12:10:02.584362821Z [rtsp @ 0x55734fdda740] SDP:
2020-03-03T12:10:02.584550628Z v=0
2020-03-03T12:10:02.584626726Z o=- 1583195221218158 1 IN IP4 10.0.0.32
2020-03-03T12:10:02.584690072Z s=Session streamed by “wyze”
2020-03-03T12:10:02.584916011Z i=live
2020-03-03T12:10:02.584997043Z t=0 0
2020-03-03T12:10:02.585056105Z a=tool:LIVE555 Streaming Media v2017.10.28
2020-03-03T12:10:02.585116087Z a=type:broadcast
2020-03-03T12:10:02.585180668Z a=control:*
2020-03-03T12:10:02.585231409Z a=range:npt=0-
2020-03-03T12:10:02.585290264Z a=x-qt-text-nam:Session streamed by “wyze”
2020-03-03T12:10:02.585348985Z a=x-qt-text-inf:live
2020-03-03T12:10:02.585407535Z m=video 0 RTP/AVP 96
2020-03-03T12:10:02.585470109Z c=IN IP4 0.0.0.0
2020-03-03T12:10:02.585520152Z b=AS:600
2020-03-03T12:10:02.585590971Z a=rtpmap:96 H264/90000
2020-03-03T12:10:02.585646619Z a=fmtp:96 packetization-mode=1;profile-level-id=4D4028;sprop-parameter-sets=Z01AKJ2oHgCJ+WEAAAMAAQAAAwAUhA==,aO48gA==
2020-03-03T12:10:02.585724437Z a=control:track1
2020-03-03T12:10:02.585776451Z m=audio 0 RTP/AVP 8
2020-03-03T12:10:02.585838760Z c=IN IP4 0.0.0.0
2020-03-03T12:10:02.585908613Z b=AS:64
2020-03-03T12:10:02.585960128Z a=control:track2
2020-03-03T12:10:02.586018247Z
2020-03-03T12:10:02.590864398Z [rtsp @ 0x55734fdda740] setting jitter buffer size to 0
Last message repeated 1 timesame=717771 fps= 20 q=-0.0 size=6279060708kB time=09:55:39.63 bitrate=1439244.3kbits/s speed=0.995x
2020-03-03T12:10:02.828730101Z [h264 @ 0x55734fdde320] Reinit context to 1920x1088, pix_fmt: yuv420p
Guessed Channel Layout for Input Stream #0.1 : mono09:55:40.73 bitrate=1439244.3kbits/s speed=0.995x 39244.3kbits/s speed=0.995x
2020-03-03T12:10:04.085386301Z Input #0, rtsp, from ‘rtsp://username:[email protected]/live’:
2020-03-03T12:10:04.085883043Z Metadata:
2020-03-03T12:10:04.086046748Z title : Session streamed by “wyze”
2020-03-03T12:10:04.086755677Z Stream mapping:
2020-03-03T12:10:04.086945102Z Stream #0:0#0:0 (h264 (native) → rawvideo (native))
2020-03-03T12:10:04.087036932Z Press [q] to stop, [?] for help
2020-03-03T12:10:04.147734855Z [h264 @ 0x55734fe39800] Reinit context to 1920x1088, pix_fmt: yuv420p
[graph 0 input from stream 0:0 @ 0x55734fdfb5a0] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:10/1 sar:0/1 sws_param:flags=2ed=0.995x
2020-03-03T12:10:04.772681254Z [auto_scaler_0 @ 0x55734febe740] w:iw h:ih flags:‘bicubic’ interl:0
2020-03-03T12:10:04.772848673Z [format @ 0x55734febc480] auto-inserting filter ‘auto_scaler_0’ between the filter ‘Parsed_null_0’ and the filter ‘format’
2020-03-03T12:10:04.773892643Z [auto_scaler_0 @ 0x55734febe740] w:1920 h:1080 fmt:yuv420p sar:0/1 → w:1920 h:1080 fmt:rgb24 sar:0/1 flags:0x4
2020-03-03T12:10:04.784396546Z Output #0, rawvideo, to ‘pipe:’:
2020-03-03T12:10:04.784784346Z Metadata:
2020-03-03T12:10:04.784896594Z title : Session streamed by “wyze”
2020-03-03T12:10:04.789801429Z [rawvideo @ 0x55734fe37900] Encoder did not produce proper pts, making some up.

[h264 @ 0x56171ac9b0c0] left block unavailable for requested intra mode1439244.3kbits/s speed=0.995x 39244.3kbits/s speed=0.995x
2020-03-03T12:09:54.776223400Z [h264 @ 0x56171ac9b0c0] error while decoding MB 0 11, bytestream 1103
No more output streams to write to, finishing.e=00:00:04.60 bitrate=497664.0kbits/s speed=0.0626x 39244.3kbits/s speed=0.995x
2020-03-03T12:09:59.899228011Z frame= 46 fps=0.6 q=-0.0 Lsize= 279450kB time=00:00:04.60 bitrate=497664.0kbits/s speed=0.0626x
2020-03-03T12:09:59.899444819Z video:279450kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
2020-03-03T12:09:59.900324303Z Total: 46 packets (286156800 bytes) muxed
2020-03-03T12:09:59.911640043Z driveway: ffmpeg_process exited unexpectedly with 0
2020-03-03T12:09:59.911836457Z Terminating the existing ffmpeg process…
ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developersts/s speed=0.995x 39244.3kbits/s speed=0.995x
2020-03-03T12:10:02.552939440Z built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
2020-03-03T12:10:02.553127952Z configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
2020-03-03T12:10:02.556830752Z Routing option strict to both codec and muxer layer
2020-03-03T12:10:02.584362821Z [rtsp @ 0x55734fdda740] SDP:
2020-03-03T12:10:02.584550628Z v=0
2020-03-03T12:10:02.584626726Z o=- 1583195221218158 1 IN IP4 10.0.0.32
2020-03-03T12:10:02.584690072Z s=Session streamed by “wyze”
2020-03-03T12:10:02.584916011Z i=live
2020-03-03T12:10:02.584997043Z t=0 0
2020-03-03T12:10:02.585056105Z a=tool:LIVE555 Streaming Media v2017.10.28
2020-03-03T12:10:02.585116087Z a=type:broadcast
2020-03-03T12:10:02.585180668Z a=control:*
2020-03-03T12:10:02.585231409Z a=range:npt=0-
2020-03-03T12:10:02.585290264Z a=x-qt-text-nam:Session streamed by “wyze”
2020-03-03T12:10:02.585348985Z a=x-qt-text-inf:live
2020-03-03T12:10:02.585407535Z m=video 0 RTP/AVP 96
2020-03-03T12:10:02.585470109Z c=IN IP4 0.0.0.0
2020-03-03T12:10:02.585520152Z b=AS:600
2020-03-03T12:10:02.585590971Z a=rtpmap:96 H264/90000
2020-03-03T12:10:02.585646619Z a=fmtp:96 packetization-mode=1;profile-level-id=4D4028;sprop-parameter-sets=Z01AKJ2oHgCJ+WEAAAMAAQAAAwAUhA==,aO48gA==
2020-03-03T12:10:02.585724437Z a=control:track1
2020-03-03T12:10:02.585776451Z m=audio 0 RTP/AVP 8
2020-03-03T12:10:02.585838760Z c=IN IP4 0.0.0.0
2020-03-03T12:10:02.585908613Z b=AS:64
2020-03-03T12:10:02.585960128Z a=control:track2
2020-03-03T12:10:02.586018247Z
2020-03-03T12:10:02.590864398Z [rtsp @ 0x55734fdda740] setting jitter buffer size to 0
Last message repeated 1 timesame=717771 fps= 20 q=-0.0 size=6279060708kB time=09:55:39.63 bitrate=1439244.3kbits/s speed=0.995x
2020-03-03T12:10:02.828730101Z [h264 @ 0x55734fdde320] Reinit context to 1920x1088, pix_fmt: yuv420p
Guessed Channel Layout for Input Stream #0.1 : mono09:55:40.73 bitrate=1439244.3kbits/s speed=0.995x 39244.3kbits/s speed=0.995x
2020-03-03T12:10:04.085386301Z Input #0, rtsp, from ‘rtsp://g6ev8v43:[email protected]/live’:
2020-03-03T12:10:04.085883043Z Metadata:
2020-03-03T12:10:04.086046748Z title : Session streamed by “wyze”
2020-03-03T12:10:04.086755677Z Stream mapping:
2020-03-03T12:10:04.086945102Z Stream #0:0#0:0 (h264 (native) → rawvideo (native))
2020-03-03T12:10:04.087036932Z Press [q] to stop, [?] for help
2020-03-03T12:10:04.147734855Z [h264 @ 0x55734fe39800] Reinit context to 1920x1088, pix_fmt: yuv420p
[graph 0 input from stream 0:0 @ 0x55734fdfb5a0] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:10/1 sar:0/1 sws_param:flags=2ed=0.995x
2020-03-03T12:10:04.772681254Z [auto_scaler_0 @ 0x55734febe740] w:iw h:ih flags:‘bicubic’ interl:0
2020-03-03T12:10:04.772848673Z [format @ 0x55734febc480] auto-inserting filter ‘auto_scaler_0’ between the filter ‘Parsed_null_0’ and the filter ‘format’
2020-03-03T12:10:04.773892643Z [auto_scaler_0 @ 0x55734febe740] w:1920 h:1080 fmt:yuv420p sar:0/1 → w:1920 h:1080 fmt:rgb24 sar:0/1 flags:0x4
2020-03-03T12:10:04.784396546Z Output #0, rawvideo, to ‘pipe:’:
2020-03-03T12:10:04.784784346Z Metadata:
2020-03-03T12:10:04.784896594Z title : Session streamed by “wyze”
2020-03-03T12:10:04.789801429Z [rawvideo @ 0x55734fe37900] Encoder did not produce proper pts, making some up.

Hi, I’d like to ask you if you plan to upload the latest release of Frigate built for Rpi4.
Thanks

I would set your ffmpeg logs back to panic instead of info. It is filling your logs with noise, and the issue is unlikely to be with ffmpeg.

Oh yes, good point! Hardcoding the width and the height in the config.yml skips the ffprobe and solves my black screen issue.

I have seen a timeout parameter for ffprobe but I will do some testing/troubleshooting later this weekend and let you know if I find something.
Thank you!

the 2nd camera had issues again. the 1st camera continues to work properly.
When this happens, I’m still able to stream the video with vlcplayer so the camera isn’t stuck.

here are the last logs

2020-03-03T22:23:53.482648980Z Terminating the existing ffmpeg process…
2020-03-03T22:23:53.482806301Z Waiting for ffmpeg to exit gracefully…
2020-03-03T22:23:53.482871254Z Creating ffmpeg process…
2020-03-03T22:23:53.482925855Z ffmpeg -loglevel panic -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -vsync drop -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://username:[email protected]/live -f rawvideo -pix_fmt rgb24 pipe:
2020-03-03T22:25:08.837648272Z driveway: ffmpeg_process exited unexpectedly with 0
2020-03-03T22:25:08.838800923Z Terminating the existing ffmpeg process…
2020-03-03T22:25:08.839185947Z Waiting for ffmpeg to exit gracefully…
2020-03-03T22:25:08.839309672Z Creating ffmpeg process…
2020-03-03T22:25:08.839366829Z ffmpeg -loglevel panic -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -vsync drop -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://username:[email protected]/live -f rawvideo -pix_fmt rgb24 pipe:
2020-03-03T22:25:37.926909650Z driveway: ffmpeg_process exited unexpectedly with 0
2020-03-03T22:25:37.927555471Z Terminating the existing ffmpeg process…
2020-03-03T22:25:37.927697090Z Waiting for ffmpeg to exit gracefully…
2020-03-03T22:25:37.927758666Z Creating ffmpeg process…
2020-03-03T22:25:37.927813190Z ffmpeg -loglevel panic -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -vsync drop -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://username:[email protected]/live -f rawvideo -pix_fmt rgb24 pipe:
2020-03-03T22:26:53.068327428Z driveway: ffmpeg_process exited unexpectedly with 0
2020-03-03T22:26:53.069090982Z Terminating the existing ffmpeg process…
2020-03-03T22:26:53.069316614Z Waiting for ffmpeg to exit gracefully…
2020-03-03T22:26:53.069693169Z Creating ffmpeg process…
2020-03-03T22:26:53.069888101Z ffmpeg -loglevel panic -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -vsync drop -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://username:[email protected]/live -f rawvideo -pix_fmt rgb24 pipe:
2020-03-03T22:28:08.294557848Z driveway: ffmpeg_process exited unexpectedly with 0
2020-03-03T22:28:08.295626959Z Terminating the existing ffmpeg process…
2020-03-03T22:28:08.295808095Z Waiting for ffmpeg to exit gracefully…
2020-03-03T22:28:08.295990133Z Creating ffmpeg process…
2020-03-03T22:28:08.296091961Z ffmpeg -loglevel panic -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -vsync drop -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://username:[email protected]/live -f rawvideo -pix_fmt rgb24 pipe:

I hadn’t seen this before

2020-03-03T22:51:08.248371188Z driveway: ffmpeg_process exited unexpectedly with 0
2020-03-03T22:51:08.249053633Z Terminating the existing ffmpeg process…
2020-03-03T22:51:08.249178307Z Waiting for ffmpeg to exit gracefully…
2020-03-03T22:52:23.705214096Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-03T22:52:23.705980226Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-03T22:52:23.706117076Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-03T22:52:23.706176351Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-03T22:52:23.706232401Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-03T22:52:23.706288234Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-03T22:52:23.706343627Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-03T22:52:23.706398463Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-03T22:52:23.706456231Z driveway: ffmpeg_process is still running but didnt return any bytes

this goes on for a bit and then this

2020-03-03T22:52:23.722900359Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-03T22:52:23.722962831Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-03T22:52:23.723029125Z driveway: ffmpeg_process exited unexpectedly with 0
2020-03-03T22:52:23.723093239Z Terminating the existing ffmpeg process…
2020-03-03T22:52:23.723153382Z Waiting for ffmpeg to exit gracefully…
2020-03-03T22:52:23.723214881Z Creating ffmpeg process…
2020-03-03T22:52:23.723274626Z ffmpeg -loglevel panic -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -vsync drop -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://username:[email protected]/live -f rawvideo -pix_fmt rgb24 pipe:
2020-03-03T22:53:38.879113380Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-03T22:53:38.883489818Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-03T22:53:38.884718329Z driveway: ffmpeg_process is still running but didnt return any bytes

Next time that starts happening, can you drop into the container with docker exec -it frigate /bin/bash and look at the output of ps -ef? I am curious if you have zombie ffmpeg processes.

Decided this version is stable enough to merge and make official. I also decided to add some url parameters to the debug endpoint. You can now specify fps and h to set the size and the framerate of the debug view. By default it is 1 fps and 360 pixels tall. eg /garage?fps=5&h=720.

Docker image is available with docker pull blakeblackshear/frigate:0.5.0

6 Likes

logs are currently showing

2020-03-04T03:19:14.692544353Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-04T03:19:14.692603446Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-04T03:19:14.692652347Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-04T03:19:14.692704592Z driveway: ffmpeg_process is still running but didnt return any bytes
2020-03-04T03:19:14.692753493Z driveway: ffmpeg_process exited unexpectedly with 0
2020-03-04T03:19:14.692806438Z Terminating the existing ffmpeg process…
2020-03-04T03:19:14.692860226Z Waiting for ffmpeg to exit gracefully…
2020-03-04T03:19:14.692911523Z Creating ffmpeg process…
2020-03-04T03:19:14.692959423Z ffmpeg -loglevel panic -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -vsync drop -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://user:[email protected]/live -f rawvideo -pix_fmt rgb24 pipe:

ps -ef of the container

UID PID PPID C STIME TTY TIME CMD
root 1 0 18 20:21 ? 00:20:59 python3.7 -u detect_objects.py
root 14 1 0 20:22 ? 00:01:05 /usr/local/bin/plasma_store -m 400000000 -s /tmp/plasma
root 20 1 3 20:22 ? 00:03:45 python3.7 -u detect_objects.py
root 21 1 15 20:22 ? 00:18:20 python3.7 -u detect_objects.py
root 22 1 49 20:22 ? 00:56:35 python3.7 -u detect_objects.py
root 34 22 78 20:22 ? 01:29:36 ffmpeg -loglevel panic -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genp
root 2950 0 0 22:16 pts/0 00:00:00 /bin/bash
root 2965 21 4 22:16 ? 00:00:00 ffmpeg -loglevel panic -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genp
root 2980 2950 0 22:17 pts/0 00:00:00 ps -ef

while in the container, I killed both ffmpeg processes.
refreshing the 5555/frontdoor url resumed the feed but the 5555/driveway url did not.

I’m getting much higher cpu usage with these latest versions (ffmpeg ~24%, python3.7 ~18%). Is that expected? Seems like the v0.3.0 I was using for a long time was much less.

Edit: Nevermind…missed the HW Accel settings in my new config file. Getting ffmpeg ~9%, python3.7 ~4%

Interestingly, I’m seeing the CPU usage cut in about half after upgrading from 0.4.0 to 0.5.0. This is with 5 cameras:

interactive dashboard

1 Like

Thanks. Just figured out that I’d missed the HW accel settings in a new config file I created. Much better now

Are both of these Wyzecams? What is the difference between these two cameras? Are you connecting to the RTSP stream for driveway from an NVR as well? Is the connection dropping for that device? I see similar behavior on my doorbird devices. They can’t handle multiple concurrent connections well.

The reduced CPU usage is in part due to frigate now being able to dedicate a separate process for each camera. Previously all the camera processing was fighting over a single core with a bunch of threads and locks. This also caused the max fps of the coral to top out at much lower speeds.

1 Like

driveway is a Wyzecam.

I only having it feeding to frigate and hass but it’s only being called when motion is detected or someone does something and I want to take a snapshot from the camera.

And it connects to the driveway camera on a restart right away? I can try adding a small delay before trying to connect again. Maybe the Wyzecam is overloaded and I never give it a chance to recover.

correct… a restart of the container always fixes it

Are you using the wyze beta firmware for rtsp or something like dafang hacks custom firmware?