[Support]: Media could not be loaded forever
See original GitHub issueDescribe the problem you are having
I have 2 Doorbird doorbell cameras that occasionally drop offline or apparently send garbage causing ffmpeg to choke (see error log but be aware that the problem is not correlated with the errors). Frigate usually restarts ffmpeg and all is well. However, about once a day, and almost always at twilight, frigate decides that a video is mangled, displays the “media could not be loaded” error message and deletes the video. From that point on, no video is recorded (and therefore no events) until I restart frigate–even if the cameras have returned to normal. Restarting the camera does not fix the problem.
I have two issues with this:
- Frigate should not destroy video even if it thinks the video is corrupted and even if it can’t display the video. The video files should be saved and remain for the normal lifetime of recordings. It is often possible to find useful images even in corrupted video. If the video that frigate erased happened to be of a burglar ringing the doorbell prior to breaking in, it would be most unfortunate if it got erased.
- Frigate should not “give up” on recordings if a camera previously produced a corrupted stream. It should not be necessary to restart frigate every day to resume recording on those cameras.
Version
0.11.1-2EADA21
Frigate config file
doorbell-back:
ffmpeg:
inputs:
- path: http://user:pass@doorbell-back/bha-api/video.cgi
roles:
- detect
- path: rtsp://user:pass@doorbell-back:554/mpeg/media.amp
roles:
- record
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1
detect:
enabled: true
width: 640
height: 480
fps: 5
objects:
track:
- person
- animal
record:
enabled: true
rtmp:
enabled: false
zones:
backdriveway:
coordinates: 521,480,285,315,194,322,0,348,0,480
westsidewalk1:
coordinates: 152,261,181,276,132,332,97,333
motion:
mask:
- 640,0,640,70,522,132,341,175,106,201,0,173,0,0
Relevant log output
[2022-10-13 21:06:37] ffmpeg.doorbell-back.detect ERROR : [mjpeg @ 0x6c84bc0] Found EOI before any SOF, ignoring
[2022-10-13 21:06:37] ffmpeg.doorbell-back.detect ERROR : [mjpeg @ 0x6c84bc0] overread 8
[2022-10-13 21:06:37] ffmpeg.doorbell-back.detect ERROR : [mjpeg @ 0x6c84bc0] EOI missing, emulating
[2022-10-13 21:06:37] ffmpeg.doorbell-back.detect ERROR : [mjpeg @ 0x6c84bc0] Found EOI before any SOF, ignoring
[2022-10-13 21:06:37] ffmpeg.doorbell-back.detect ERROR : Last message repeated 2 times
[2022-10-13 21:06:37] ffmpeg.doorbell-back.detect ERROR : [mjpeg @ 0x6c84bc0] overread 8
[2022-10-13 21:06:37] ffmpeg.doorbell-back.detect ERROR : [mjpeg @ 0x6c84bc0] EOI missing, emulating
[2022-10-13 21:06:37] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:06:37] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:06:47] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:06:47] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:06:47] ffmpeg.doorbell-back.detect ERROR : [http @ 0x5ac8400] HTTP error 503 Service Not Available
[2022-10-13 21:06:47] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:06:47] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:06:47] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:06:57] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:06:57] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:06:57] ffmpeg.doorbell-back.detect ERROR : [http @ 0x70ad400] HTTP error 503 Service Not Available
[2022-10-13 21:06:57] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:06:57] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:06:57] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:07:07] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:07:07] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:07:07] ffmpeg.doorbell-back.detect ERROR : [http @ 0x6811400] HTTP error 503 Service Not Available
[2022-10-13 21:07:07] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:07:07] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:07:07] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:07:17] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:07:17] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:07:17] ffmpeg.doorbell-back.detect ERROR : [http @ 0x72fb400] HTTP error 503 Service Not Available
[2022-10-13 21:07:17] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:07:18] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:07:18] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:07:27] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:07:27] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:07:27] ffmpeg.doorbell-back.detect ERROR : [http @ 0x7326400] HTTP error 503 Service Not Available
[2022-10-13 21:07:27] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:07:28] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:07:28] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:07:38] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:07:38] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:07:38] ffmpeg.doorbell-back.detect ERROR : [http @ 0x73ef400] HTTP error 503 Service Not Available
[2022-10-13 21:07:38] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:07:38] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:07:38] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:07:48] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:07:48] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:07:48] ffmpeg.doorbell-back.detect ERROR : [http @ 0x6cc0400] HTTP error 503 Service Not Available
[2022-10-13 21:07:48] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:07:48] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:07:48] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:07:58] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:07:58] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:07:58] ffmpeg.doorbell-back.detect ERROR : [http @ 0x7790400] HTTP error 503 Service Not Available
[2022-10-13 21:07:58] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:07:58] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:07:58] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:08:08] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:08:08] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:08:08] ffmpeg.doorbell-back.detect ERROR : [http @ 0x7041400] HTTP error 503 Service Not Available
[2022-10-13 21:08:08] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:08:08] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:08:08] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:08:18] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:08:18] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:08:18] ffmpeg.doorbell-back.detect ERROR : [http @ 0x6c9f400] HTTP error 503 Service Not Available
[2022-10-13 21:08:18] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:08:18] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:08:18] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:08:28] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:08:28] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:08:28] ffmpeg.doorbell-back.detect ERROR : [http @ 0x6a4f400] HTTP error 503 Service Not Available
[2022-10-13 21:08:28] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:08:28] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:08:28] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:08:38] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:08:38] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:08:38] ffmpeg.doorbell-back.detect ERROR : [http @ 0x7885400] HTTP error 503 Service Not Available
[2022-10-13 21:08:38] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:08:38] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:08:38] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:08:48] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:08:48] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:08:48] ffmpeg.doorbell-back.detect ERROR : [http @ 0x6561400] HTTP error 503 Service Not Available
[2022-10-13 21:08:48] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:08:48] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:08:48] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:08:58] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:08:58] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:08:58] ffmpeg.doorbell-back.detect ERROR : [http @ 0x6e5b400] HTTP error 503 Service Not Available
[2022-10-13 21:08:58] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:08:58] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:08:58] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:09:08] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:09:08] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:09:08] ffmpeg.doorbell-back.detect ERROR : [http @ 0x6a2a400] HTTP error 503 Service Not Available
[2022-10-13 21:09:08] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:09:08] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:09:08] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:09:18] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:09:18] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:09:18] ffmpeg.doorbell-back.detect ERROR : [http @ 0x7738400] HTTP error 503 Service Not Available
[2022-10-13 21:09:18] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:09:18] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:09:18] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:09:28] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:09:28] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:09:28] ffmpeg.doorbell-back.detect ERROR : [http @ 0x64e1400] HTTP error 503 Service Not Available
[2022-10-13 21:09:28] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:09:28] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:09:28] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:09:38] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:09:38] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:09:38] ffmpeg.doorbell-back.detect ERROR : [http @ 0x7064400] HTTP error 503 Service Not Available
[2022-10-13 21:09:38] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:09:38] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:09:38] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:09:48] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:09:48] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:09:48] ffmpeg.doorbell-back.detect ERROR : [http @ 0x6a5a400] HTTP error 503 Service Not Available
[2022-10-13 21:09:48] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:09:48] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:09:48] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:09:58] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:09:58] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:09:58] ffmpeg.doorbell-back.detect ERROR : [http @ 0x6ad2400] HTTP error 503 Service Not Available
[2022-10-13 21:09:58] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:09:58] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:09:58] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:10:08] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:10:08] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:10:08] ffmpeg.doorbell-back.detect ERROR : [http @ 0x6e4b400] HTTP error 503 Service Not Available
[2022-10-13 21:10:08] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:10:08] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:10:08] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:10:18] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:10:18] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:10:18] ffmpeg.doorbell-back.detect ERROR : [http @ 0x606b400] HTTP error 503 Service Not Available
[2022-10-13 21:10:18] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:10:18] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:10:18] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:10:28] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:10:28] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:10:28] ffmpeg.doorbell-back.detect ERROR : [http @ 0x726c400] HTTP error 503 Service Not Available
[2022-10-13 21:10:28] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:10:28] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:10:28] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:10:38] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:10:38] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:10:38] ffmpeg.doorbell-back.detect ERROR : [http @ 0x71a8400] HTTP error 503 Service Not Available
[2022-10-13 21:10:38] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:10:38] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:10:38] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:10:48] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:10:48] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:10:48] ffmpeg.doorbell-back.detect ERROR : [http @ 0x774c400] HTTP error 503 Service Not Available
[2022-10-13 21:10:48] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:10:48] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:10:48] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:10:58] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:10:58] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:10:58] ffmpeg.doorbell-back.detect ERROR : [http @ 0x6bb8400] HTTP error 503 Service Not Available
[2022-10-13 21:10:58] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:10:58] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:10:58] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:11:08] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:11:08] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:11:08] ffmpeg.doorbell-back.detect ERROR : [http @ 0x6d3c400] HTTP error 503 Service Not Available
[2022-10-13 21:11:08] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:11:08] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:11:08] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:11:18] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:11:18] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:11:18] ffmpeg.doorbell-back.detect ERROR : [http @ 0x5b53400] HTTP error 503 Service Not Available
[2022-10-13 21:11:18] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:11:18] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:11:18] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:11:28] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:11:28] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:11:28] ffmpeg.doorbell-back.detect ERROR : [http @ 0x633c400] HTTP error 503 Service Not Available
[2022-10-13 21:11:28] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:11:28] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:11:28] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:11:38] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:11:38] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:11:38] ffmpeg.doorbell-back.detect ERROR : [http @ 0x6dee400] HTTP error 503 Service Not Available
[2022-10-13 21:11:38] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Server returned 5XX Server Error reply
[2022-10-13 21:18:04] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:18:04] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:18:09] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:18:09] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:18:09] ffmpeg.doorbell-back.detect ERROR : [tcp @ 0x5e6e300] Connection to tcp://doorbell-back:80 failed: Connection timed out
[2022-10-13 21:18:09] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Connection timed out
[2022-10-13 21:18:14] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:18:14] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:18:19] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:18:19] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:18:19] ffmpeg.doorbell-back.detect ERROR : [tcp @ 0x7245300] Connection to tcp://doorbell-back:80 failed: Connection timed out
[2022-10-13 21:18:19] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Connection timed out
[2022-10-13 21:18:24] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:18:24] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:18:29] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:18:29] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:18:29] ffmpeg.doorbell-back.detect ERROR : [tcp @ 0x5fa7300] Connection to tcp://doorbell-back:80 failed: Connection timed out
[2022-10-13 21:18:29] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Connection timed out
[2022-10-13 21:18:34] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:18:34] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:18:39] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:18:39] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:18:39] ffmpeg.doorbell-back.detect ERROR : [tcp @ 0x6d28300] Connection to tcp://doorbell-back:80 failed: Connection timed out
[2022-10-13 21:18:39] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Connection timed out
[2022-10-13 21:18:42] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:18:42] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:18:49] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:18:49] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:18:49] ffmpeg.doorbell-back.detect ERROR : [tcp @ 0x6fb9300] Connection to tcp://doorbell-back:80 failed: No route to host
[2022-10-13 21:18:49] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: No route to host
[2022-10-13 21:18:49] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:18:49] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:18:59] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:18:59] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:18:59] ffmpeg.doorbell-back.detect ERROR : [tcp @ 0x6c34300] Connection to tcp://doorbell-back:80 failed: Connection refused
[2022-10-13 21:18:59] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Connection refused
[2022-10-13 21:18:59] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:18:59] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:19:09] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:19:09] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:19:09] ffmpeg.doorbell-back.detect ERROR : [tcp @ 0x69b1300] Connection to tcp://doorbell-back:80 failed: Connection refused
[2022-10-13 21:19:09] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Connection refused
[2022-10-13 21:19:09] frigate.video ERROR : doorbell-back: Unable to read frames from ffmpeg process.
[2022-10-13 21:19:09] frigate.video ERROR : doorbell-back: ffmpeg process is not running. exiting capture thread...
[2022-10-13 21:19:19] watchdog.doorbell-back ERROR : Ffmpeg process crashed unexpectedly for doorbell-back.
[2022-10-13 21:19:19] watchdog.doorbell-back ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-10-13 21:19:19] ffmpeg.doorbell-back.detect ERROR : [tcp @ 0x7570300] Connection to tcp://doorbell-back:80 failed: Connection refused
[2022-10-13 21:19:19] ffmpeg.doorbell-back.detect ERROR : http://user:pass@doorbell-back/bha-api/video.cgi: Connection refused
[2022-10-14 07:12:00] frigate.mqtt INFO : Setting motion threshold for doorbell-back via mqtt: 25
FFprobe output from your camera
ffprobe version 5.0.1 Copyright (c) 2007-2022 the FFmpeg developers
built with gcc 12 (GCC)
libavutil 57. 17.100 / 57. 17.100
libavcodec 59. 18.100 / 59. 18.100
libavformat 59. 16.100 / 59. 16.100
libavdevice 59. 4.100 / 59. 4.100
libavfilter 8. 24.100 / 8. 24.100
libswscale 6. 4.100 / 6. 4.100
libswresample 4. 3.100 / 4. 3.100
libpostproc 56. 3.100 / 56. 3.100
Input #0, rtsp, from 'rtsp://ghahic0001:bj6tXKGKqZ@doorbell-back:554/mpeg/media.amp':
Metadata:
title : RTSP/RTP stream from DoorBird
comment : mpeg/720p/media.amp
Duration: N/A, start: 0.169656, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, progressive), 1280x720, 30 fps, 30 tbr, 90k tbn
Frigate stats
No response
Operating system
Other Linux
Install method
Docker Compose
Coral version
USB
Network connection
Wired
Camera make and model
Doorbird D101
Any other information that may be helpful
I don’t think there is any way to fix the ffmpeg errors, and that’s not what I am asking. The doorbell drops the rtsp stream every time somebody rings it in order to establish a SIP connection, and that can’t be fixed. I tried running for 24 hours with my system’s ffmpeg instead of the container’s, and it didn’t make any difference.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
Doorbird cameras tend to do this when there are multiple connections to the stream. Ffmpeg isn’t able to reconnect, so the discarded video segments are going to be empty. It’s strange that restarting the container somehow allows it to reconnect. I don’t know why that would be different than the ffmpeg process restarting inside the container. I never see this with my doorbird cameras.
I believe this issue is resolved with the addition of the timeout parameter to the input args of ffmpeg on the two Doorbird cameras. It might be a good idea to add -timeout 5000000 to the mjpeg camera example on the camera specific configurations page.