I’ve searched all over every forum for this problem. The video stream keeps crashing and showing an error message like “Stream network error”. This is when showing the dashboard on my iPad.
I’ve tried the following:
- Just an ordinary picture card for showing a video. Works for a while and then crashes. Tested both main and substream with rtsp. Using Foscams.
- Then tested with video proxy which actually works. But the back draw was a high CPU load. And I would like to avoid this as my next step would be adding Frigate for object detection.
- My next step was to add Frigate. I did that and also the Frigate Hass card for showing the video on the dashboard. But the video keeps crashing in the dashboard with the same problem. While the video in the Frigate addon is working flawlessly. So the problem must be in the dashboard showing a video.
I’m not using the Foscam integration for the Frigate hass card.
I’ve not seen any problems in any logs before, but the Frigate addon actually gave me some logs when the card crashed. I think… See the log at the bottom.
My frigate.yaml looks like this if it can add some info on this. But I think the problem is somewhere else.
Hope that someone can help out ono this.
mqtt:
host: 192.168.0.161
user: !secret mqtt-user
password: !secret mqtt-password
cameras:
#######################
# Entré Camera Config
#######################
camera_entre:
ffmpeg:
inputs:
# High resolution Stream
- path: rtsp://XXX:XXX@1xxx:88/videoMain
roles:
- record
# Low resolution Stream
- path: rtsp://XXX:XXX@1xxx:88/videoSub
roles:
- detect
- rtmp
detect:
width: 640 #1280 # <---- update for your camera's detect resolution
height: 480 #720 # <---- update for your camera's detect resolution
fps: 5
objects:
track:
- person
- cat
record:
enabled: True
retain:
days: 1
mode: active_objects
events:
retain:
default: 2
mode: active_objects
snapshots:
enabled: True
#######################
# Carport Camera Config
#######################
camera_carport:
ffmpeg:
inputs:
# High resolution Stream
- path: rtsp://XXX:XXX@1xxx:88/videoMain
roles:
- record
# Low resolution Stream
- path: rtsp://XXX:XXX@1xxx:88/videoSub
roles:
- detect
- rtmp
detect:
width: 1280 #2304 # <---- update for your camera's detect resolution
height: 720 #1296 # <---- update for your camera's detect resolution
fps: 5
objects:
track:
- person
- cat
- car
record:
enabled: True
retain:
days: 1
mode: active_objects
events:
retain:
default: 2
mode: active_objects
snapshots:
enabled: True
FRIGATE ADDON LOG:
[2023-02-11 07:45:54] ffmpeg.camera_carport.record ERROR : [h264 @ 0x5652550a5f80] decode_slice_header error
[2023-02-11 07:45:54] ffmpeg.camera_carport.record ERROR : [h264 @ 0x5652550a5f80] no frame!
[2023-02-11 07:45:54] ffmpeg.camera_carport.record ERROR : [h264 @ 0x5652550a5f80] non-existing PPS 0 referenced
[2023-02-11 07:45:54] ffmpeg.camera_carport.record ERROR : Guessed Channel Layout for Input Stream #0.1 : mono
[2023-02-11 07:45:54] ffmpeg.camera_carport.record ERROR : rtsp://xxx:xxx@1xxx:88/videoMain: Connection timed out
[2023-02-11 07:45:54] watchdog.camera_carport INFO : Terminating the existing ffmpeg process...
[2023-02-11 07:45:54] watchdog.camera_carport INFO : Waiting for ffmpeg to exit gracefully...
[2023-02-11 07:46:11] frigate.video ERROR : camera_carport: Unable to read frames from ffmpeg process.
[2023-02-11 07:46:11] frigate.video ERROR : camera_carport: ffmpeg process is not running. exiting capture thread...
[2023-02-11 07:46:14] watchdog.camera_carport ERROR : Ffmpeg process crashed unexpectedly for camera_carport.
[2023-02-11 07:46:14] watchdog.camera_carport ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2023-02-11 07:46:14] ffmpeg.camera_carport.detect ERROR : [h264 @ 0x563067548f00] non-existing PPS 0 referenced
[2023-02-11 07:46:14] ffmpeg.camera_carport.detect ERROR : [h264 @ 0x563067548f00] decode_slice_header error
[2023-02-11 07:46:14] ffmpeg.camera_carport.detect ERROR : [h264 @ 0x563067548f00] no frame!
[2023-02-11 07:46:14] ffmpeg.camera_carport.detect ERROR : [h264 @ 0x563067548f00] non-existing PPS 0 referenced
[2023-02-11 07:46:14] ffmpeg.camera_carport.detect ERROR : Guessed Channel Layout for Input Stream #0.1 : mono
[2023-02-11 07:46:14] ffmpeg.camera_carport.detect ERROR : [swscaler @ 0x563067720340] [swscaler @ 0x56306772d300] deprecated pixel format used, make sure you did set range correctly
[2023-02-11 07:46:14] ffmpeg.camera_carport.detect ERROR : rtsp://xxx:xxx@1xxx:88/videoSub: Connection timed out
[2023-02-11 07:46:14] ffmpeg.camera_carport.detect ERROR : Last message repeated 4 times
[2023-02-11 07:46:14] ffmpeg.camera_carport.detect ERROR : [flv @ 0x563067562ec0] Failed to update header with correct duration.
[2023-02-11 07:46:14] ffmpeg.camera_carport.detect ERROR : [flv @ 0x563067562ec0] Failed to update header with correct filesize.
[2023-02-11 09:09:35] ws4py INFO : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:46820]
[2023-02-11 09:09:40] ws4py INFO : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:46820]
[2023-02-11 09:10:25] ws4py INFO : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:38798]
[2023-02-11 09:10:42] ws4py INFO : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:38798]