Closed Calimerorulez closed 7 months ago
no changes have been made on this front between beta 5 and beta 6, we would need to see go2rtc logs
Hi @NickM-27,
I've enabled debug logging on my go2rtc instance, in beta 6, I see lines like: 21:06:38.101 DBG [rtsp] handle=EOF
21:02:51.543 DBG [rtsp] new consumer stream=g3b_voortuin
21:02:51.685 DBG [rtsp] new consumer stream=g5b_achtertuin
21:02:51.726 DBG [rtsp] new consumer stream=g4_deurbel
21:02:51.891 DBG [rtsp] new consumer stream=g4i_poort
21:02:51.911 DBG [rtsp] new consumer stream=g5b_overkapping
21:02:52.352 DBG [streams] start producer url=rtspx://192.168.1.4:7441/rJZPoPnJ6kSG130v
21:06:38.101 DBG [rtsp] handle=EOF
21:06:38.102 DBG [streams] stop producer url=rtspx://192.168.1.4:7441/Fz3j4v2biFVY3rKB
21:06:38.102 DBG [rtsp] disconnect stream=g3i_garage
21:06:48.396 DBG [rtsp] new consumer stream=g3i_garage
21:06:48.419 DBG [streams] start producer url=rtspx://192.168.1.4:7441/Fz3j4v2biFVY3rKB
Which corresponds with these lines in the Frigate log:
2023-11-26 21:06:31.503623335 [2023-11-26 21:06:31] watchdog.g3i_garage INFO : No frames received from g3i_garage in 20 seconds. Exiting ffmpeg...
2023-11-26 21:06:31.507323902 [2023-11-26 21:06:31] watchdog.g3i_garage INFO : Waiting for ffmpeg to exit gracefully...
2023-11-26 21:06:38.183805921 [2023-11-26 21:06:38] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-26 21:06:38.183822459 [2023-11-26 21:06:38] frigate.video ERROR : g3i_garage: ffmpeg process is not running. exiting capture thread...
2023-11-26 21:06:48.275933136 [2023-11-26 21:06:48] watchdog.g3i_garage ERROR : Ffmpeg process crashed unexpectedly for g3i_garage.
2023-11-26 21:06:48.275949784 [2023-11-26 21:06:48] watchdog.g3i_garage ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-26 21:06:48.275960032 [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect ERROR : [h264 @ 0x5636e804c080] Missing reference picture, default is 0
2023-11-26 21:06:48.276028204 [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect ERROR : [h264 @ 0x5636e804c080] decode_slice_header error
2023-11-26 21:06:48.276041309 [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect ERROR : [h264 @ 0x5636e806ea00] Missing reference picture, default is 0
2023-11-26 21:06:48.276051167 [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect ERROR : [h264 @ 0x5636e806ea00] decode_slice_header error
2023-11-26 21:06:48.276148606 [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect ERROR : [h264 @ 0x5636e806ea00] Failed to begin picture decode issue: 6 (invalid VASurfaceID).
2023-11-26 21:06:48.282915302 [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect ERROR : [h264 @ 0x5636e806ea00] Failed to end picture decode after error: 18 (invalid parameter).
2023-11-26 21:06:48.282934031 [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect ERROR : [h264 @ 0x5636e806ea00] hardware accelerator failed to decode picture
2023-11-26 21:06:48.282944184 [2023-11-26 21:06:48] ffmpeg.g3i_garage.detect ERROR : Error while decoding stream #0:0: Input/output error
The EOF lines don't show in the go2rtc log when using beta 5.
You're running an external go2rtc version so that won't have anything to do with frigate, the EOF is referring to the stream coming from the camera
OK, I will debug further. But I still can't explain why beta 5 is stable to me, and in beta 6 all ffmpeg processes crash continuously.
Using preset-vaapi
, I see the preset is changed in:
https://github.com/blakeblackshear/frigate/pull/8604
As a test, I've tried to use the beta5 variant in my config.yml, but I do not know which parameters to use for the substitutes:
hwaccel_args: -r {0} -vf fps={0},scale_vaapi=w={1}:h={2},hwdownload,format=yuv420p
go2rtc is showing an error in the logs, so this won't be related to frigate since go2rtc logs show that it is getting an EOF from the camera
Ok, I give up then. I can reproduce it consistently switching between 5 and 6, and in between switch versions I haven't changed any cameras or settings or my go2rtc version.
I will close this issue. Sorry to bother :)
there's no need to close the issue, we just need more information like more detailed logs. You could also try running frigate connecting directly to the camera and see if that has the same issue
Then I will dive further into this quest :)
OK, I switched to directly connecting Frigate to my Unifi cameras, but there was a reason I started using go2rtc, because I couldn't get Ffmpeg to play nicely with Unifi.
I can't see any difference in behaviour now between beta 5 and beta 6, as the errors are the same between the betas:
2023-11-27 10:12:17.360140824 [INFO] Preparing Frigate...
2023-11-27 10:12:17.416889385 [INFO] Starting Frigate...
2023-11-27 10:12:23.184811728 [2023-11-27 10:12:23] frigate.app INFO : Starting Frigate (0.13.0-614a36a)
2023-11-27 10:12:23.185180972 [2023-11-27 10:12:23] frigate.app INFO : Creating directory: /tmp/cache
2023-11-27 10:12:35.346738475 [2023-11-27 10:12:35] peewee_migrate.logs INFO : Starting migrations
2023-11-27 10:12:35.360438943 [2023-11-27 10:12:35] peewee_migrate.logs INFO : There is nothing to migrate
2023-11-27 10:12:35.376945725 [2023-11-27 10:12:35] frigate.app INFO : Recording process started: 337
2023-11-27 10:12:35.386593405 [2023-11-27 10:12:35] frigate.app INFO : go2rtc process pid: 89
2023-11-27 10:12:35.496437460 [2023-11-27 10:12:35] detector.coral_pci INFO : Starting detection process: 347
2023-11-27 10:12:35.509352083 [2023-11-27 10:12:35] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as pci
2023-11-27 10:12:35.524434411 [2023-11-27 10:12:35] frigate.app INFO : Output process started: 349
2023-11-27 10:12:35.526903844 [2023-11-27 10:12:35] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2023-11-27 10:12:36.355023502 [2023-11-27 10:12:36] frigate.app INFO : Camera processor started for g3b_voortuin: 392
2023-11-27 10:12:36.374402502 [2023-11-27 10:12:36] frigate.app INFO : Camera processor started for flex_ne: 393
2023-11-27 10:12:36.400876760 [2023-11-27 10:12:36] frigate.app INFO : Camera processor started for flex_se: 395
2023-11-27 10:12:36.427940537 [2023-11-27 10:12:36] frigate.app INFO : Camera processor started for g5b_achtertuin: 397
2023-11-27 10:12:36.449550985 [2023-11-27 10:12:36] frigate.app INFO : Camera processor started for g4_deurbel: 399
2023-11-27 10:12:36.476576574 [2023-11-27 10:12:36] frigate.app INFO : Camera processor started for g5b_overkapping: 401
2023-11-27 10:12:36.504442659 [2023-11-27 10:12:36] frigate.app INFO : Camera processor started for g3i_garage: 404
2023-11-27 10:12:36.526664671 [2023-11-27 10:12:36] frigate.app INFO : Camera processor started for g4i_poort: 405
2023-11-27 10:12:36.555293810 [2023-11-27 10:12:36] frigate.app INFO : Capture process started for g3b_voortuin: 407
2023-11-27 10:12:36.580514963 [2023-11-27 10:12:36] frigate.app INFO : Capture process started for flex_ne: 411
2023-11-27 10:12:36.606241313 [2023-11-27 10:12:36] frigate.app INFO : Capture process started for flex_se: 415
2023-11-27 10:12:36.636161553 [2023-11-27 10:12:36] frigate.app INFO : Capture process started for g5b_achtertuin: 420
2023-11-27 10:12:36.669632030 [2023-11-27 10:12:36] frigate.app INFO : Capture process started for g4_deurbel: 424
2023-11-27 10:12:36.699626321 [2023-11-27 10:12:36] frigate.app INFO : Capture process started for g5b_overkapping: 427
2023-11-27 10:12:36.731330098 [2023-11-27 10:12:36] frigate.app INFO : Capture process started for g3i_garage: 429
2023-11-27 10:12:36.764871899 [2023-11-27 10:12:36] frigate.app INFO : Capture process started for g4i_poort: 435
2023-11-27 10:12:36.804648986 [2023-11-27 10:12:36] frigate.app INFO : Audio process started: 440
2023-11-27 10:12:37.361998980 [2023-11-27 10:12:37] audio.g4i_poort ERROR : ffmpeg process is not running, restarting...
2023-11-27 10:12:47.459725968 [2023-11-27 10:12:47] ffmpeg.g4i_poort.audio ERROR : rtsp://192.168.1.4:7447/rJZPoPnJ6kSG130v: Invalid data found when processing input
2023-11-27 10:12:47.459750669 [2023-11-27 10:12:47] audio.g4i_poort INFO : Terminating the existing ffmpeg process...
2023-11-27 10:12:47.459765463 [2023-11-27 10:12:47] audio.g4i_poort INFO : Waiting for ffmpeg to exit gracefully...
2023-11-27 10:13:41.495718353 [2023-11-27 10:13:41] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:13:41.499721992 [2023-11-27 10:13:41] frigate.video ERROR : g3i_garage: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:13:47.101825539 [2023-11-27 10:13:46] watchdog.g3i_garage ERROR : Ffmpeg process crashed unexpectedly for g3i_garage.
2023-11-27 10:13:47.101848447 [2023-11-27 10:13:46] watchdog.g3i_garage ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:13:47.101871625 [2023-11-27 10:13:46] ffmpeg.g3i_garage.detect ERROR : [segment @ 0x563d9e5f3400] 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
2023-11-27 10:13:50.863837340 [h264 @ 0x7fdcd41b3340] error while decoding MB 19 45, bytestream -14
2023-11-27 10:15:13.784418996 [2023-11-27 10:15:13] frigate.video ERROR : g5b_achtertuin: Unable to read frames from ffmpeg process.
2023-11-27 10:15:13.784438566 [2023-11-27 10:15:13] frigate.video ERROR : g5b_achtertuin: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:15:16.836101171 [2023-11-27 10:15:16] watchdog.g5b_achtertuin ERROR : Ffmpeg process crashed unexpectedly for g5b_achtertuin.
2023-11-27 10:15:16.836118606 [2023-11-27 10:15:16] watchdog.g5b_achtertuin ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:15:16.836130970 [2023-11-27 10:15:16] ffmpeg.g5b_achtertuin.detect ERROR : [segment @ 0x55a571ff75c0] 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
2023-11-27 10:15:21.722697924 [2023-11-27 10:15:21] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:15:21.722722371 [2023-11-27 10:15:21] frigate.video ERROR : g3i_garage: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:15:27.452950823 [2023-11-27 10:15:27] watchdog.g3i_garage ERROR : Ffmpeg process crashed unexpectedly for g3i_garage.
2023-11-27 10:15:27.452967577 [2023-11-27 10:15:27] watchdog.g3i_garage ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:15:27.452979735 [2023-11-27 10:15:27] ffmpeg.g3i_garage.detect ERROR : [segment @ 0x55d06338b0c0] 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
2023-11-27 10:16:18.509025896 [2023-11-27 10:16:18] frigate.video ERROR : g3b_voortuin: Unable to read frames from ffmpeg process.
2023-11-27 10:16:18.513717882 [2023-11-27 10:16:18] frigate.video ERROR : g3b_voortuin: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:16:26.952452152 [2023-11-27 10:16:26] watchdog.g3b_voortuin ERROR : Ffmpeg process crashed unexpectedly for g3b_voortuin.
2023-11-27 10:16:26.952470113 [2023-11-27 10:16:26] watchdog.g3b_voortuin ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:16:26.952480407 [2023-11-27 10:16:26] ffmpeg.g3b_voortuin.detect ERROR : [rtsp @ 0x56505435b140] CSeq 9 expected, 8 received.
2023-11-27 10:16:26.953380164 [2023-11-27 10:16:26] ffmpeg.g3b_voortuin.detect ERROR : [rtsp @ 0x56505435b140] CSeq 10 expected, 9 received.
2023-11-27 10:16:26.953398587 [2023-11-27 10:16:26] ffmpeg.g3b_voortuin.detect ERROR : [rtsp @ 0x56505435b140] CSeq 12 expected, 10 received.
2023-11-27 10:16:42.939549151 [2023-11-27 10:16:42] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:16:42.939567262 [2023-11-27 10:16:42] frigate.video ERROR : g3i_garage: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:16:47.810221296 [2023-11-27 10:16:47] watchdog.g3i_garage ERROR : Ffmpeg process crashed unexpectedly for g3i_garage.
2023-11-27 10:16:47.810240019 [2023-11-27 10:16:47] watchdog.g3i_garage ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:16:47.810251961 [2023-11-27 10:16:47] ffmpeg.g3i_garage.detect ERROR : [segment @ 0x55f1daca6c80] 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
2023-11-27 10:17:06.754644367 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.759550750 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.761358734 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.763522355 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.765904103 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.767928985 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.769874981 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.771766166 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.773683526 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.776021488 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.778217984 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.780707018 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.782453877 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.784205897 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.785870562 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.787636048 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.789426161 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.791482762 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: Unable to read frames from ffmpeg process.
2023-11-27 10:17:06.793844583 [2023-11-27 10:17:06] frigate.video ERROR : g4i_poort: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:17:07.271702752 [2023-11-27 10:17:07] watchdog.g4i_poort ERROR : Ffmpeg process crashed unexpectedly for g4i_poort.
2023-11-27 10:17:07.271720197 [2023-11-27 10:17:07] watchdog.g4i_poort ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:17:07.271730165 [2023-11-27 10:17:07] ffmpeg.g4i_poort.detect ERROR : [rtsp @ 0x5593e5c44140] CSeq 13 expected, 12 received.
2023-11-27 10:17:07.274710538 [2023-11-27 10:17:07] ffmpeg.g4i_poort.detect ERROR : [rtsp @ 0x5593e5c44140] CSeq 14 expected, 13 received.
2023-11-27 10:17:14.403358355 [2023-11-27 10:17:14] frigate.video ERROR : g4_deurbel: Unable to read frames from ffmpeg process.
2023-11-27 10:17:14.406881555 [2023-11-27 10:17:14] frigate.video ERROR : g4_deurbel: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:17:17.082461017 [2023-11-27 10:17:16] watchdog.g4_deurbel ERROR : Ffmpeg process crashed unexpectedly for g4_deurbel.
2023-11-27 10:17:17.082479639 [2023-11-27 10:17:16] watchdog.g4_deurbel ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:17:17.082492595 [2023-11-27 10:17:16] ffmpeg.g4_deurbel.detect ERROR : [rtsp @ 0x563023a12140] CSeq 9 expected, 8 received.
2023-11-27 10:17:17.082503590 [2023-11-27 10:17:16] ffmpeg.g4_deurbel.detect ERROR : [rtsp @ 0x563023a12140] CSeq 10 expected, 9 received.
2023-11-27 10:17:17.082514109 [2023-11-27 10:17:16] ffmpeg.g4_deurbel.detect ERROR : [rtsp @ 0x563023a12140] CSeq 12 expected, 10 received.
2023-11-27 10:17:17.082608661 [2023-11-27 10:17:16] ffmpeg.g4_deurbel.detect ERROR : [rtsp @ 0x563023a12140] CSeq 14 expected, 11 received.
2023-11-27 10:17:24.949039832 [2023-11-27 10:17:24] frigate.video ERROR : g5b_overkapping: Unable to read frames from ffmpeg process.
2023-11-27 10:17:24.968979816 [2023-11-27 10:17:24] frigate.video ERROR : g5b_overkapping: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:17:26.989406580 [2023-11-27 10:17:26] watchdog.g5b_overkapping ERROR : Ffmpeg process crashed unexpectedly for g5b_overkapping.
2023-11-27 10:17:26.989423965 [2023-11-27 10:17:26] watchdog.g5b_overkapping ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-11-27 10:17:26.989434479 [2023-11-27 10:17:26] ffmpeg.g5b_overkapping.detect ERROR : [rtsp @ 0x5567a0cda140] CSeq 12 expected, 11 received.
2023-11-27 10:17:26.989443430 [2023-11-27 10:17:26] ffmpeg.g5b_overkapping.detect ERROR : [rtsp @ 0x5567a0cda140] CSeq 13 expected, 12 received.
2023-11-27 10:17:26.989452004 [2023-11-27 10:17:26] ffmpeg.g5b_overkapping.detect ERROR : [rtsp @ 0x5567a0cda140] CSeq 14 expected, 13 received.
2023-11-27 10:18:22.386867111 [2023-11-27 10:18:22] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.386888284 [2023-11-27 10:18:22] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.394991652 [2023-11-27 10:18:22] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.395009102 [2023-11-27 10:18:22] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.395020193 [2023-11-27 10:18:22] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.395029970 [2023-11-27 10:18:22] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.395038811 [2023-11-27 10:18:22] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.395047676 [2023-11-27 10:18:22] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.395056852 [2023-11-27 10:18:22] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.397266830 [2023-11-27 10:18:22] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.404615995 [2023-11-27 10:18:22] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.416824931 [2023-11-27 10:18:22] frigate.video ERROR : g3i_garage: Unable to read frames from ffmpeg process.
2023-11-27 10:18:22.430415001 [2023-11-27 10:18:22] frigate.video ERROR : g3i_garage: ffmpeg process is not running. exiting capture thread...
2023-11-27 10:18:28.002069546 [2023-11-27 10:18:27] watchdog.g3i_garage ERROR : Ffmpeg process crashed unexpectedly for g3i_garage.
2023-11-27 10:18:28.002086776 [2023-11-27 10:18:27] watchdog.g3i_garage ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
I'm running Frigate add-on within HA OS and see a lot of crashes since updating from Beta 5 to Beta 6. Not sure if this is the same issue, but I downgraded to Beta 5 and everything is working fine again. The problems I see are colored blocks in the bottom half of the screen. Which weren't there in Beta 5. I didn't make any config change.
@Calimerorulez Then perhaps go2rtc 1.8.4 is causing issues and that should be downgraded.
@TyzzyT We need logs and information to understand what's going wrong in your case
It looks like a problem with ffmpeg. When using beta-6, the ffmpeg process is using 100.1% according to System dashboard and is having an FPS of 3.5 and after a while even lower (2.7), while I expect it to be 5 FPS. I'm using a high res stream for detection, which was working fine with beta-5. Even though CPU usage was high, it was always able to keep up with the stream speed. (~89% CPU, 5.2 FPS according to system dashboard) Also, when I look at the stream in Frigate UI the live viewing is working fine. When looking at the debug stream, it's 1 minute behind the live stream according to the timestamp. It looks like the CPU/ffmpeg is not able to keep up with the speed of the stream. I'm not sure what has changed between beta5 and beta6, but when switching back to beta-5 everything is working fine with the same config. If this is a different problem and you need a separate issue for this, please let me know. Happy to open a separate issue for it.
you can make a separate issue and include all the requested information
Well, I've now tested go2rtc 1.8.4, 1.8.2, 1.8.0, 1.7.1 and 1.7.0, but all EOF on the camera streams when using beta 6, and not on beta 5 :(
What is the vainfo output when running vainfo on the host?
root@frigate-nuc:~# vainfo
error: can't connect to X server!
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
Ran on the Proxmox host and in the Frigate container host.
The Frigate container host has this extra logging line:
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Just upgraded to beta 7, and there's the same behavior as in beta 6, reverting back to beta 5, because that runs fine.
I can't explain why, if my go2rtc container stays the same, and I change the running version of Frigate in another container, why my camera's suddenly stop playing nicely with my go2rtc installation.
Can it have something to do with the ffmpeg presets I'm using in my config in relation to my externally running go2rtc?
what is your current config and also what CPU is this again?
My config:
detectors:
coral_pci:
type: edgetpu
device: pci
mqtt:
# Required: host name
host: 192.168.5.110
# Optional: port (default: shown below)
port: 1883
# Optional: topic prefix (default: shown below)
# WARNING: must be unique if you are running multiple instances
topic_prefix: frigate
# Optional: client id (default: shown below)
# WARNING: must be unique if you are running multiple instances
client_id: frigate
# Optional: user
user: frigate
# Optional: password
# NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}.
# eg. password: '{FRIGATE_MQTT_PASSWORD}'
password: frigate
# Optional: interval in seconds for publishing stats (default: shown below)
stats_interval: 60
logger:
# Optional: default log level (default: shown below)
default: info
record:
enabled: true
retain:
days: 5
mode: motion
events:
pre_capture: 10
post_capture: 10
retain:
default: 5
mode: motion
# max_seconds: 90
# ffmpeg configuration
ffmpeg:
global_args: -hide_banner -loglevel warning -threads 2
hwaccel_args: preset-vaapi
#hwaccel_args: -r {0} -vf fps={0},scale_vaapi=w={1}:h={2},hwdownload,format=yuv420p
input_args: preset-rtsp-restream
output_args:
detect: -threads 2 -f rawvideo -pix_fmt yuv420p
record: preset-record-ubiquiti
rtmp: preset-rtmp-ubiquiti
cameras:
# Name of your camera
g3b_voortuin:
mqtt:
timestamp: False
bounding_box: False
crop: True
audio:
enabled: True
listen:
- children_playing
- cat
- bird
- dog
- dogs
- footsteps
- clapping
- bark
- scream
- speech
- yell
- whispering
- laughter
- honk
- fireworks
- firecracker
- music
ffmpeg:
inputs:
- path: rtsp://192.168.5.113:8554/g3b_voortuin
#- path: rtsp://192.168.1.4:7447/hJ84WEkjmUXe6H66
roles:
- record
- audio
- detect
snapshots:
enabled: True
timestamp: false
bounding_box: true
retain:
default: 7
objects:
track:
- person
- car
- truck
- bicycle
- motorcycle
- cat
- dog
# Optional: save clips configuration
detect:
fps: 5
flex_ne:
mqtt:
timestamp: False
bounding_box: False
crop: True
ffmpeg:
inputs:
- path: rtsp://192.168.5.113:8554/flex_ne
#- path: rtsp://192.168.1.4:7447/eXz1bJYvAZNRyNOg
roles:
- record
- detect
snapshots:
enabled: True
timestamp: false
bounding_box: true
retain:
default: 7
objects:
filters:
car:
mask:
- 1318,389,1382,227,1113,202,976,347
- 749,556,991,304,198,224,0,427
- 0,640,691,824,833,553,0,393
- 1460,240,1624,242,1627,282,1638,420,1462,407
track:
- person
- car
- truck
- bicycle
- motorcycle
- cat
- dog
# Optional: save clips configuration
detect:
width: 1920
height: 1080
fps: 5
flex_se:
mqtt:
timestamp: False
bounding_box: False
crop: True
ffmpeg:
inputs:
- path: rtsp://192.168.5.113:8554/flex_se
#- path: rtsp://192.168.1.4:7447/8jU5tkUhuBVLqUNS
roles:
- record
- detect
snapshots:
enabled: True
timestamp: false
bounding_box: true
retain:
default: 7
objects:
track:
- person
- car
- truck
- bicycle
- motorcycle
- cat
- dog
# Optional: save clips configuration
detect:
fps: 5
g5b_achtertuin:
mqtt:
timestamp: False
bounding_box: False
crop: True
audio:
enabled: True
listen:
- children_playing
- cat
- bird
- dog
- dogs
- footsteps
- clapping
- bark
- scream
- speech
- yell
- whispering
- laughter
- honk
- fireworks
- firecracker
- music
ffmpeg:
inputs:
- path: rtsp://192.168.5.113:8554/g5b_achtertuin
#- path: rtsp://192.168.1.4:7447/EjLlBeq6I1DdXJjj
roles:
- record
- audio
- detect
snapshots:
enabled: True
timestamp: false
bounding_box: true
retain:
default: 7
objects:
track:
- person
- car
- truck
- bicycle
- motorcycle
- cat
- dog
# Optional: save clips configuration
detect:
fps: 5
g4_deurbel:
mqtt:
timestamp: False
bounding_box: False
crop: True
audio:
enabled: True
listen:
- children_playing
- cat
- bird
- dog
- dogs
- footsteps
- clapping
- bark
- scream
- speech
- yell
- whispering
- laughter
- honk
- fireworks
- firecracker
- music
ffmpeg:
inputs:
- path: rtsp://192.168.5.113:8554/g4_deurbel
#- path: rtsp://192.168.1.4:7447/8AwXQAd8rnKMYexm
roles:
- record
- audio
- detect
snapshots:
enabled: True
timestamp: false
bounding_box: true
retain:
default: 7
zones:
zone_voortuin:
coordinates: 1600,1200,1600,794,839,806,737,1200
objects:
track:
- person
- bird
- bicycle
- motorcycle
- cat
- dog
# Optional: save clips configuration
detect:
fps: 5
g5b_overkapping:
mqtt:
timestamp: False
bounding_box: False
crop: True
audio:
enabled: True
listen:
- children_playing
- cat
- bird
- dog
- dogs
- footsteps
- clapping
- bark
- scream
- speech
- yell
- whispering
- laughter
- honk
- fireworks
- firecracker
- music
ffmpeg:
inputs:
- path: rtsp://192.168.5.113:8554/g5b_overkapping
#- path: rtsp://192.168.1.4:7447/SZdBKah2Y2GTO5Ph
roles:
- record
- audio
- detect
snapshots:
enabled: True
timestamp: false
bounding_box: true
retain:
default: 7
objects:
track:
- person
- bicycle
- motorcycle
- cat
- dog
- bird
# Optional: save clips configuration
detect:
fps: 5
g3i_garage:
mqtt:
timestamp: False
bounding_box: False
crop: True
ffmpeg:
inputs:
- path: rtsp://192.168.5.113:8554/g3i_garage
#- path: rtsp://192.168.1.4:7447/Fz3j4v2biFVY3rKB
roles:
- record
- detect
snapshots:
enabled: True
timestamp: false
bounding_box: true
retain:
default: 7
objects:
track:
- person
- car
- truck
- bicycle
- motorcycle
- cat
- dog
# Optional: save clips configuration
detect:
fps: 5
g4i_poort:
mqtt:
timestamp: False
bounding_box: False
crop: True
audio:
enabled: True
listen:
- children_playing
- cat
- bird
- dog
- dogs
- footsteps
- clapping
- bark
- scream
- speech
- yell
- whispering
- laughter
- honk
- fireworks
- firecracker
- music
ffmpeg:
inputs:
- path: rtsp://192.168.5.113:8554/g4i_poort
#- path: rtsp://192.168.1.4:7447/rJZPoPnJ6kSG130v
roles:
- record
- audio
- detect
snapshots:
enabled: True
timestamp: false
bounding_box: true
retain:
default: 7
objects:
track:
- person
- car
- truck
- bicycle
- motorcycle
- cat
- dog
# Optional: save clips configuration
detect:
fps: 5
Running in a Proxmox container on a Intel Core i5-4250U NUC.
Ok, I took the plunge and migrated the Frigate container to another server, a Ryzen 5600G, using the AMD-vaapi driver, instead of the i965 driver on my Intel NUC. Now everything is working on beta 7.
Will test further :)
interesting, perhaps some issue with that particular driver / CPU then, https://github.com/blakeblackshear/frigate/pull/8604 seems like what changed
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
Hi,
Updated from 0.13 beta 5 to 0.13 beta 6, I'm seeing errors again in the camera overview: 'No frames received, check logs for errors'. Beta 5 was running fine.
Ffmpeg seems to crash randomly for my Unifi cameras.
Running an externally go2rtc 1.8.4 Docker image on another server, just to free resources on my Frigate server.
Version
0.13-beta6
Frigate config file
Relevant log output
Frigate stats
Operating system
Proxmox
Install method
Docker Compose
Coral version
PCIe
Any other information that may be helpful
Migrating back to beta 5 solves the problems.