Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HW Accel Support]: Unable to read frames from ffmpeg process. #3737

Closed
mpietruschka opened this issue Aug 30, 2022 · 28 comments
Closed

[HW Accel Support]: Unable to read frames from ffmpeg process. #3737

mpietruschka opened this issue Aug 30, 2022 · 28 comments

Comments

@mpietruschka
Copy link

mpietruschka commented Aug 30, 2022

Describe the problem you are having

Hey!

I've got an unexplainable issue enabling hardware acceleration for my Dahua IPC-EBW81242-AS-S2 fisheye camera. I'm using blakeblackshear/frigate:0.11.0-rc1 official image from Docker-Hub.

With Hardware-Acceleration enabled all I get is a Greenscreen. Software-Encoding does great - Expect the CPU-Load.

Another camera in the same instance does work great with Hardware-Encoding.

Maybe you could help?

If that helps, then I could upload a short recording from the camera.

Version

Frigate (0.11.0-37325c7)

Frigate config file

mqtt:
    host: xxx.xxx.xxx.xxx

detectors:
  coral:
    type: edgetpu
    device: usb

logger:
  # Optional: default log level (default: shown below)
  default: info

detect:
  enabled: True

record:
  enabled: True
  events:
    retain:
     default: 14

rtmp:
  enabled: False

snapshots:
  enabled: True
  bounding_box: True
  timestamp: True
  retain:
    default: 14

cameras:
  garten_seite:
    ffmpeg:
      global_args: -hide_banner -loglevel info
#      hwaccel_args:
#        - -c:v
#        - h264_v4l2m2m#      hwaccel_args:
#        - -c:v
#        - h264_v4l2m2m
      inputs:
        - path: rtsp:https://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=2
          roles:
            - detect
#          hwaccel_args:
#            - -c:v
#            - h264_v4l2m2m
        - path: rtsp:https://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - record
#          hwaccel_args:
#            - -c:v
#            - h264_v4l2m2m
    objects:
      track:
        - person
        - cat
      filters:
        person:
          min_score: 0.50
          threshold: 0.59
        cat:
          min_score: 0.50
          threshold: 0.59
    detect:
      width: 1280
      height: 960
      fps: 5
    # 1O-4000x3000 + 1Stream-1280x960
    motion:
      contour_area: 15
      mask:
         - 381,728,892,200,985,289,600,960,1280,960,1280,0,0,0,0,960,132,960
         - 765,331,849,422,800,504,704,526,632,557,562,622,497,690,430,796,469,960,679,960,945,960,941,621,835,544,900,470,1011,288,914,161
         - 750,341,765,367,708,415,722,447,646,438
    zones:
      garten_seite_weg:
        coordinates: 732,381,737,358,761,328,832,405,561,723,516,680,452,730,422,700


  front:
    ffmpeg:
      hwaccel_args:
        - -c:v
        - h264_v4l2m2m
      inputs:
        - path: rtsp:https://xxx.xxx.xxx.xxx:8554/unicast
          roles:
            - detect
            - record
    zones:
      front_eingang:
        coordinates: 633,189,265,187,324,236,352,253,343,283,366,313,360,408,467,408
        objects:
          - person
          - cat
          - car
          - dog

    objects:
      track:
        - person
        - bicycle
        - motorcycle
        - car
        - cat
        - dog
      filters:
        person:
          min_score: 0.50
          threshold: 0.60
        cat:
          min_score: 0.50
          threshold: 0.55
    motion:
      improve_contrast: True
      mask:
         - 0,480,640,480,640,176,465,408,375,405,339,350,363,311,349,276,336,238,445,235,451,150,306,151,286,166,254,118,256,73,230,54,241,21,210,0,0,0
         - 640,0,640,83,575,82,558,53,564,0
    detect:
      width: 640
      height: 480
      fps: 5

docker-compose file or Docker CLI command

frigate11:
    image: blakeblackshear/frigate:0.11.0-rc1
    environment:
      - FRIGATE_RTSP_PASSWORD='xxx'
    container_name: frigate11
    privileged: true
    shm_size: "1024mb"
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /media/data/etc/frigate11/config.yml:/config/config.yml:ro
      - /media/data/var/lib/frigate11:/media/frigate
      - /dev:/dev
    devices:
      - /dev/video10:/dev/video10
      - /dev/video11:/dev/video11
      - /dev/video12:/dev/video12
      - /dev/video13:/dev/video13
      - /dev/video14:/dev/video14
      - /dev/video15:/dev/video15
      - /dev/video16:/dev/video16
      - /dev/video18:/dev/video18
      - /dev/video20:/dev/video20
      - /dev/video21:/dev/video21
      - /dev/video22:/dev/video22
      - /dev/video23:/dev/video23
      - /dev/video31:/dev/video31
      - /dev/bus/usb:/dev/bus/usb
    ports:
      - "5000:5000"
    depends_on:
      - mqtt

  mqtt:
    container_name: mqtt
    image: eclipse-mosquitto:1.6
    ports:
      - "1883:1883"

Relevant log output

frigate11  | [services.d] starting services
frigate11  | [services.d] done.
frigate11  | [2022-08-30 17:10:02] frigate.app                    INFO    : Starting Frigate (0.11.0-37325c7)
frigate11  | Starting migrations
frigate11  | [2022-08-30 17:10:02] peewee_migrate                 INFO    : Starting migrations
frigate11  | There is nothing to migrate
frigate11  | [2022-08-30 17:10:02] peewee_migrate                 INFO    : There is nothing to migrate
frigate11  | [2022-08-30 17:10:03] detector.coral                 INFO    : Starting detection process: 210
frigate11  | [2022-08-30 17:10:03] frigate.app                    INFO    : Output process started: 212
frigate11  | [2022-08-30 17:10:03] frigate.app                    INFO    : Camera processor started for garten_seite: 214
frigate11  | [2022-08-30 17:10:03] ws4py                          INFO    : Using epoll
frigate11  | [2022-08-30 17:10:03] frigate.app                    INFO    : Camera processor started for front: 215
frigate11  | [2022-08-30 17:10:03] frigate.app                    INFO    : Capture process started for garten_seite: 216
frigate11  | [2022-08-30 17:10:03] frigate.edgetpu                INFO    : Attempting to load TPU as usb
frigate11  | [2022-08-30 17:10:03] frigate.app                    INFO    : Capture process started for front: 219
frigate11  | [2022-08-30 17:10:03] ws4py                          INFO    : Using epoll
frigate11  | [2022-08-30 17:10:05] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:43708]
frigate11  | [2022-08-30 17:10:05] frigate.edgetpu                INFO    : TPU found
frigate11  | [2022-08-30 17:10:09] frigate.record                 WARNING : Discarding a corrupt recording segment: {'cache_path': '/tmp/cache/garten_seite-20220830170852.mp4', 'start_time': datetime.datetime(2022, 8, 30, 17, 8, 52)}
frigate11  | [2022-08-30 17:10:10] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:43708]
frigate11  | [2022-08-30 17:10:11] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:39338]
frigate11  | [2022-08-30 17:10:12] frigate.record                 WARNING : Discarding a corrupt recording segment: {'cache_path': '/tmp/cache/garten_seite-20220830170852.mp4', 'start_time': datetime.datetime(2022, 8, 30, 17, 8, 52)}
frigate11  | [2022-08-30 17:10:17] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:39338]
frigate11  | [2022-08-30 17:10:18] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:51868]
frigate11  | [2022-08-30 17:10:20] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:33732]
frigate11  | [2022-08-30 17:10:23] watchdog.garten_seite          INFO    : No frames received from garten_seite in 20 seconds. Exiting ffmpeg...
frigate11  | [2022-08-30 17:10:23] watchdog.garten_seite          INFO    : Waiting for ffmpeg to exit gracefully...
frigate11  | [2022-08-30 17:10:29] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:33732]
frigate11  | [2022-08-30 17:10:29] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:51570]
frigate11  | [2022-08-30 17:10:35] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:51570]
frigate11  | [2022-08-30 17:10:35] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:51580]
frigate11  | [2022-08-30 17:10:36] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:51580]
frigate11  | [2022-08-30 17:10:53] watchdog.garten_seite          INFO    : FFmpeg didnt exit. Force killing...
frigate11  | [2022-08-30 17:10:53] frigate.video                  ERROR   : garten_seite: Unable to read frames from ffmpeg process.
frigate11  | [2022-08-30 17:10:53] frigate.video                  ERROR   : garten_seite: Unable to read frames from ffmpeg process.
frigate11  | [2022-08-30 17:10:53] frigate.video                  ERROR   : garten_seite: Unable to read frames from ffmpeg process.
frigate11  | [2022-08-30 17:10:53] frigate.video                  ERROR   : garten_seite: ffmpeg process is not running. exiting capture thread...
frigate11  | [2022-08-30 17:11:03] watchdog.garten_seite          ERROR   : Ffmpeg process crashed unexpectedly for garten_seite.
frigate11  | [2022-08-30 17:11:03] watchdog.garten_seite          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
frigate11  | [2022-08-30 17:11:03] ffmpeg.garten_seite.detect     ERROR   : Input #0, rtsp, from 'rtsp:https://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=2':
frigate11  | [2022-08-30 17:11:03] ffmpeg.garten_seite.detect     ERROR   :   Metadata:
frigate11  | [2022-08-30 17:11:03] ffmpeg.garten_seite.detect     ERROR   :     title           : Media Server
frigate11  | [2022-08-30 17:11:03] ffmpeg.garten_seite.detect     ERROR   :   Duration: N/A, start: 1661872203.589167, bitrate: N/A
frigate11  | [2022-08-30 17:11:03] ffmpeg.garten_seite.detect     ERROR   :   Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x960 [SAR 1:1 DAR 4:3], 10 fps, 25 tbr, 90k tbn
frigate11  | [2022-08-30 17:11:03] ffmpeg.garten_seite.detect     ERROR   : [h264_v4l2m2m @ 0x378c9e0] Using device /dev/video10
frigate11  | [2022-08-30 17:11:03] ffmpeg.garten_seite.detect     ERROR   : [h264_v4l2m2m @ 0x378c9e0] driver 'bcm2835-codec' on card 'bcm2835-codec-decode' in mplane mode
frigate11  | [2022-08-30 17:11:03] ffmpeg.garten_seite.detect     ERROR   : [h264_v4l2m2m @ 0x378c9e0] requesting formats: output=H264 capture=YU12
frigate11  | [2022-08-30 17:11:03] ffmpeg.garten_seite.detect     ERROR   : Stream mapping:
frigate11  | [2022-08-30 17:11:03] ffmpeg.garten_seite.detect     ERROR   :   Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
frigate11  | [2022-08-30 17:11:03] ffmpeg.garten_seite.detect     ERROR   : Press [q] to stop, [?] for help
frigate11  | [2022-08-30 17:11:06] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:51868]
frigate11  | [2022-08-30 17:11:23] watchdog.garten_seite          INFO    : No frames received from garten_seite in 20 seconds. Exiting ffmpeg...
frigate11  | [2022-08-30 17:11:23] watchdog.garten_seite          INFO    : Waiting for ffmpeg to exit gracefully...

FFprobe output from your camera

This is run within your docker image.

Passing "-rtsp_transport tcp" as additional parameter returns no warnings. Passing in ffmpeg -> global_args does not help with my greenscreen-issue.

--- Record-Stream
# ffprobe "rtsp:https://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=0"
ffprobe version 5.0.1-Jellyfin Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-static --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --toolchain=hardened --enable-cross-compile --arch=armhf --cross-prefix=/usr/bin/arm-linux-gnueabihf-
  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
[udp @ 0x20d39c0] attempted to set receive buffer to size 393216 but it only ended up set as 360448
[udp @ 0x20e3d00] attempted to set receive buffer to size 393216 but it only ended up set as 360448
[rtsp @ 0x20ce790] max delay reached. need to consume packet
[rtsp @ 0x20ce790] RTP: missed 3 packets
[rtsp @ 0x20ce790] max delay reached. need to consume packet
[rtsp @ 0x20ce790] RTP: missed 48 packets
[rtsp @ 0x20ce790] max delay reached. need to consume packet
[rtsp @ 0x20ce790] RTP: missed 14 packets
[rtsp @ 0x20ce790] max delay reached. need to consume packet
[rtsp @ 0x20ce790] RTP: missed 1 packets
[rtsp @ 0x20ce790] max delay reached. need to consume packet
[rtsp @ 0x20ce790] RTP: missed 12 packets
[rtsp @ 0x20ce790] max delay reached. need to consume packet
[rtsp @ 0x20ce790] RTP: missed 205 packets
[h264 @ 0x20d2e40] concealing 28896 DC, 28896 AC, 28896 MV errors in I frame
[rtsp @ 0x20ce790] max delay reached. need to consume packet
[rtsp @ 0x20ce790] RTP: missed 57 packets
[h264 @ 0x20d2e40] cabac decode of qscale diff failed at 130 134
[h264 @ 0x20d2e40] error while decoding MB 130 134, bytestream 19450
[h264 @ 0x20d2e40] concealing 13419 DC, 13419 AC, 13419 MV errors in P frame
[rtsp @ 0x20ce790] max delay reached. need to consume packet
[rtsp @ 0x20ce790] RTP: missed -65159 packets
[rtsp @ 0x20ce790] max delay reached. need to consume packet
[rtsp @ 0x20ce790] RTP: missed 130 packets
[rtsp @ 0x20ce790] jitter buffer full
[rtsp @ 0x20ce790] RTP: missed 54 packets
[rtsp @ 0x20ce790] max delay reached. need to consume packet
[rtsp @ 0x20ce790] RTP: missed 159 packets
Input #0, rtsp, from 'rtsp:https://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=0':
  Metadata:
    title           : Media Server
  Duration: N/A, start: 0.080000, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 4000x3000 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 90k tbn

--- Detectors-Stream
# ffprobe "rtsp:https://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=2"
ffprobe version 5.0.1-Jellyfin Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-static --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --toolchain=hardened --enable-cross-compile --arch=armhf --cross-prefix=/usr/bin/arm-linux-gnueabihf-
  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
[udp @ 0x24849b0] attempted to set receive buffer to size 393216 but it only ended up set as 360448
[udp @ 0x2494d00] attempted to set receive buffer to size 393216 but it only ended up set as 360448
Input #0, rtsp, from 'rtsp:https://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=2':
  Metadata:
    title           : Media Server
  Duration: N/A, start: 0.100000, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x960 [SAR 1:1 DAR 4:3], 10 fps, 10 tbr, 90k tbn

Operating system

Other Linux

Install method

Docker Compose

Network connection

Wired

Camera brand and model

Dahua IPC-EBW81242-AS-S2 fisheye camera

Any other information that may be helpful

Platform: Raspberry Pi4 - 8 GB
GPU-Memory: 512 MByte
TPU: Google Coral
Host-OS: Archlinux (armv7h)
Kernel: 5.15.55-2-rpi-ARCH

Detector-Stream-Resolution: 1280x960
Record-Stream-Resolution: 4000x3000

@NickM-27
Copy link
Sponsor Collaborator

You may want to try RC2 as it is a newer version of ffmpeg and a different build, but the Pis hardware decoding unfortunately has some limitations.

@mpietruschka
Copy link
Author

mpietruschka commented Aug 30, 2022

Hey Nick!

Thanks for your quick response!

It took me a second updating to rc2. After the first start I've got "[rtsp @ 0x1cdde70] Unable to open RTSP for listening". So I assumed that I need to define rtsp_transport somewhere.

  # Optional: global input args (default: shown below)
  input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt **-rtsp_transport tcp** -stimeout 5000000 -use_wallclock_as_timestamps 1

With that my camereas video works again.

Progress:
Enabling hwaccel for the Record-Stream seems to work now. Detector-Stream does not.
Soft-Encoding works for both.

Setting hwaccel for the whole camera shows this error message:

frigate11  | [2022-08-30 18:24:17] frigate.app                    INFO    : Starting Frigate (0.11.0-c461c9e)
frigate11  | Starting migrations
frigate11  | [2022-08-30 18:24:17] peewee_migrate                 INFO    : Starting migrations
frigate11  | There is nothing to migrate
frigate11  | [2022-08-30 18:24:17] peewee_migrate                 INFO    : There is nothing to migrate
frigate11  | [2022-08-30 18:24:18] detector.coral                 INFO    : Starting detection process: 210
frigate11  | [2022-08-30 18:24:18] frigate.app                    INFO    : Output process started: 212
frigate11  | [2022-08-30 18:24:18] frigate.edgetpu                INFO    : Attempting to load TPU as usb
frigate11  | [2022-08-30 18:24:18] frigate.app                    INFO    : Camera processor started for garten_seite: 214
frigate11  | [2022-08-30 18:24:18] frigate.app                    INFO    : Camera processor started for front: 216
frigate11  | [2022-08-30 18:24:18] frigate.app                    INFO    : Capture process started for garten_seite: 217
frigate11  | [2022-08-30 18:24:18] ws4py                          INFO    : Using epoll
frigate11  | [2022-08-30 18:24:18] frigate.app                    INFO    : Capture process started for front: 224
frigate11  | [2022-08-30 18:24:18] ws4py                          INFO    : Using epoll
frigate11  | [2022-08-30 18:24:20] frigate.edgetpu                INFO    : TPU found
frigate11  | [2022-08-30 18:24:25] frigate.record                 WARNING : Discarding a corrupt recording segment: {'cache_path': '/tmp/cache/garten_seite-20220830182313.mp4', 'start_time': datetime.datetime(2022, 8, 30, 18, 23, 13)}
frigate11  | [2022-08-30 18:24:29] frigate.record                 WARNING : Discarding a corrupt recording segment: {'cache_path': '/tmp/cache/garten_seite-20220830182313.mp4', 'start_time': datetime.datetime(2022, 8, 30, 18, 23, 13)}
frigate11  | [2022-08-30 18:24:38] watchdog.garten_seite          INFO    : No frames received from garten_seite in 20 seconds. Exiting ffmpeg...
frigate11  | [2022-08-30 18:24:38] watchdog.garten_seite          INFO    : Waiting for ffmpeg to exit gracefully...
frigate11  | [2022-08-30 18:25:08] watchdog.garten_seite          INFO    : FFmpeg didnt exit. Force killing...
frigate11  | [2022-08-30 18:25:08] frigate.video                  ERROR   : garten_seite: Unable to read frames from ffmpeg process.
frigate11  | [2022-08-30 18:25:08] frigate.video                  ERROR   : garten_seite: ffmpeg process is not running. exiting capture thread...
frigate11  | [2022-08-30 18:25:18] watchdog.garten_seite          ERROR   : Ffmpeg process crashed unexpectedly for garten_seite.
frigate11  | [2022-08-30 18:25:18] watchdog.garten_seite          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Input #0, rtsp, from 'rtsp:https://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=2':
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :   Metadata:
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     title           : Media Server
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :   Duration: N/A, start: 1661876659.086356, bitrate: N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x960 [SAR 1:1 DAR 4:3], 10 fps, 25.08 tbr, 90k tbn, 20 tbc
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : [h264_v4l2m2m @ 0x1e91c80] Using device /dev/video10
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : [h264_v4l2m2m @ 0x1e91c80] driver 'bcm2835-codec' on card 'bcm2835-codec-decode' in mplane mode
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : [h264_v4l2m2m @ 0x1e91c80] requesting formats: output=H264 capture=YU12
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Stream mapping:
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :   Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Press [q] to stop, [?] for help
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:25:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:25:38] watchdog.garten_seite          INFO    : No frames received from garten_seite in 20 seconds. Exiting ffmpeg...
frigate11  | [2022-08-30 18:25:38] watchdog.garten_seite          INFO    : Waiting for ffmpeg to exit gracefully...
frigate11  | [2022-08-30 18:26:08] watchdog.garten_seite          INFO    : FFmpeg didnt exit. Force killing...
frigate11  | [2022-08-30 18:26:08] frigate.video                  ERROR   : garten_seite: Unable to read frames from ffmpeg process.
frigate11  | [2022-08-30 18:26:08] frigate.video                  ERROR   : garten_seite: Unable to read frames from ffmpeg process.
frigate11  | [2022-08-30 18:26:08] frigate.video                  ERROR   : garten_seite: ffmpeg process is not running. exiting capture thread...
frigate11  | [2022-08-30 18:26:18] watchdog.garten_seite          ERROR   : Ffmpeg process crashed unexpectedly for garten_seite.
frigate11  | [2022-08-30 18:26:18] watchdog.garten_seite          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Input #0, rtsp, from 'rtsp:https://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=2':
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :   Metadata:
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     title           : Media Server
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :   Duration: N/A, start: 1661876718.799289, bitrate: N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x960 [SAR 1:1 DAR 4:3], 10 fps, 24.92 tbr, 90k tbn, 20 tbc
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : [h264_v4l2m2m @ 0x16bf7e0] Using device /dev/video10
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : [h264_v4l2m2m @ 0x16bf7e0] driver 'bcm2835-codec' on card 'bcm2835-codec-decode' in mplane mode
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : [h264_v4l2m2m @ 0x16bf7e0] requesting formats: output=H264 capture=YU12
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Stream mapping:
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :   Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Press [q] to stop, [?] for help
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 2 times
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   :     Last message repeated 5 times
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
frigate11  | [2022-08-30 18:26:18] ffmpeg.garten_seite.detect     ERROR   : Error while decoding stream #0:0: Resource temporarily unavailable

Any ideas?

@NickM-27
Copy link
Sponsor Collaborator

Okay for one, hwaccel is not used for the record stream (no encoding, decoding, or transcoding is done).

Also keep in mind that with h264 the RPi has a limit of 1080p, I see one stream is much higher resolution and likely why it has problems along with the fact that ffprobe complains of issues with it

@mpietruschka
Copy link
Author

mpietruschka commented Aug 30, 2022

Makes sense. That thing recarding the Recording.

I changed my config to use another stream with 704x576px. But then I've got the same messag as above.

# ffprobe "rtsp:https://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=1"
ffprobe version 4.3.4-0+deb11u1 Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --arch=arm --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[udp @ 0x1566670] attempted to set receive buffer to size 393216 but it only ended up set as 360448
[udp @ 0x15769b0] attempted to set receive buffer to size 393216 but it only ended up set as 360448
Input #0, rtsp, from 'rtsp:https://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=1':
  Metadata:
    title           : Media Server
  Duration: N/A, start: 0.600000, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt470bg, progressive), 704x576 [SAR 12:11 DAR 4:3], 10 fps, 10 tbr, 90k tbn, 20 tbc

@NickM-27
Copy link
Sponsor Collaborator

Your ffprobe indicates it is using UDP, can you try TCP with that stream and see what happens?

@mpietruschka
Copy link
Author

mpietruschka commented Aug 30, 2022

Using this command ffprobe does... (I accidently used the masked address and wondered why it hanged)

# ffprobe "rtsp:https://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=1" -rtsp_transport tcp
ffprobe version 4.3.4-0+deb11u1 Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --arch=arm --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, rtsp, from 'rtsp:https://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=1':
  Metadata:
    title           : Media Server
  Duration: N/A, start: 0.600000, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt470bg, progressive), 704x576 [SAR 12:11 DAR 4:3], 10 fps, 10 tbr, 90k tbn, 20 tbc

@mpietruschka
Copy link
Author

Do you want me to record a short video with vlc? Where could I upload it?

@NickM-27
Copy link
Sponsor Collaborator

Are you using TCP for that camera in frigate config?

Sure, a pure copy of the stream could be helpful for testing on my test RPi

@mpietruschka
Copy link
Author

I'm using tcp, yes.

Is there a quick command I could run to do a pure copy for you?

@NickM-27
Copy link
Sponsor Collaborator

If you just use one of the segments from a recording stream (using the low res stream) that would work.

@mpietruschka
Copy link
Author

mpietruschka commented Aug 30, 2022

Sorry for the delay. It took me a second to get everything together.

Here you go...

# ffmpeg -t 5 -rtsp_transport tcp -i "rtsp:https://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=1" -c copy  output_xxx_xxx.mp4 -y

704_576 => https://bit.ly/3AAIXMa (about 1 Mbyte of size)
1280_960 => (by accedent I recorded+uploaded the small format twice)

@mpietruschka
Copy link
Author

mpietruschka commented Aug 31, 2022

Speaking about the hardware encoding and limitations. I am able to switch my cameras video to H.265 (HEVC).

I dont know how far frigate and ffmpeg do support h.265 of course.

The pi4 b supports:

  • H.265 (HEVC) hardware decode (up to 4Kp60)
  • H.264 hardware decode (up to 1080p60)

@NickM-27
Copy link
Sponsor Collaborator

ffmpeg support for RPi decoding H.265 is basically non-existent. See jc-kynesim/rpi-ffmpeg#42

@mpietruschka
Copy link
Author

Have you had luck encoding the attached recording?

@NickM-27
Copy link
Sponsor Collaborator

NickM-27 commented Aug 31, 2022

Haven't had time to get out the Pi yet, today is super busy but might have time this evening otherwise tomorrow

@mpietruschka
Copy link
Author

That video is only available until tuesday.

@NickM-27
Copy link
Sponsor Collaborator

NickM-27 commented Sep 8, 2022

This might be related to #3780

@mpietruschka
Copy link
Author

Does that mean you had no luck decoding it, too?

@NickM-27
Copy link
Sponsor Collaborator

No, we had a lot happening at work so I didn't end up finding time. But we've seen more and more reports of the issue I linked to. I haven't had the issue since I haven't updated my apt packages in a while (it's just a test device)

@mpietruschka
Copy link
Author

mpietruschka commented Sep 12, 2022

I updated my kernel-information. It's Kernel: 5.15.55-2-rpi-ARCH (armv7).

I'm not sure if that's containing that problem, since everybodys writing about Linux pi5 5.15.61-v8.

Did anybody report that issue prior 5.15.61? Or is there a way I could verify its the same issue I have?

@NickM-27
Copy link
Sponsor Collaborator

I don't think I've seen it earlier, but there's also been some saying it's not the kernel but a different package.

I'm not sure if there's a way to see if you're affected directly, but you could try following #3771 and see if a different ffmpeg build / version from your apt works better. Unfortunately, ffmpegs hwaccel on the RPi is not as robust and needs some improving.

@github-actions
Copy link

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.

@github-actions github-actions bot added the stale label Oct 15, 2022
@mpietruschka
Copy link
Author

mpietruschka commented Oct 17, 2022

This is still beeing an issue.

Meanwhile I took a look at Raspberries specifications. The limitation of 1080p maximum meanes 1080 rows. Which is 1920x1080 pixels.

With my videosize of 1280x960 I'm far away from this limit.

@NickM-27
Copy link
Sponsor Collaborator

Most likely related to #3780

@mpietruschka
Copy link
Author

I can't confirm that. See my message.

I updated my kernel-information. It's Kernel: 5.15.55-2-rpi-ARCH (armv7).

I'm not sure if that's containing that problem, since everybodys writing about Linux pi5 5.15.61-v8.

Did anybody report that issue prior 5.15.61? Or is there a way I could verify its the same issue I have?

@mpietruschka
Copy link
Author

mpietruschka commented Oct 17, 2022

Heres another sample...

sample.mp4.zip

$ docker run -it -v $(pwd):/config linuxserver/ffmpeg -i "rtsp:https://user:pass@ip:port/cam/realmonitor?channel=1&subtype=2" -acodec copy -vcodec copy /config/sample.mp4

ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-ffprobe --enable-avresample --enable-gpl --enable-libaom --enable-libass --enable-libfdk_aac --enable-libfreetype --enable-libkvazaar --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libxml2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-nonfree --enable-openssl --enable-small --enable-stripping --enable-version3
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[udp @ 0x1e3be70] attempted to set receive buffer to size 393216 but it only ended up set as 360448
[udp @ 0x1e4c1d0] attempted to set receive buffer to size 393216 but it only ended up set as 360448
[rtsp @ 0x1e36270] max delay reached. need to consume packet
[rtsp @ 0x1e36270] RTP: missed 15 packets
[h264 @ 0x1e3b2d0] error while decoding MB 33 49, bytestream -40
[h264 @ 0x1e3b2d0] concealing 896 DC, 896 AC, 896 MV errors in I frame
Input #0, rtsp, from 'rtsp:https://user:pass@ip:port/cam/realmonitor?channel=1&subtype=2':
  Metadata:
    title           : Media Server
  Duration: N/A, start: 1.200000, bitrate: N/A
  Stream #0:0: Video: h264, yuvj420p(pc, bt709, progressive), 1280x960 [SAR 1:1 DAR 4:3], 5 fps, 5 tbr, 90k tbn, 10 tbc
Output #0, mp4, to '/config/sample.mp4':
  Metadata:
    title           : Media Server
    encoder         : Lavf58.76.100
  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 1280x960 [SAR 1:1 DAR 4:3], q=2-31, 5 fps, 5 tbr, 90k tbn, 90k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0x1e73290] Non-monotonous DTS in output stream 0:0; previous: 0, current: -90000; changing to 1. This may result in incorrect timestamps in the output file.
[mp4 @ 0x1e73290] Non-monotonous DTS in output stream 0:0; previous: 1, current: -72000; changing to 2. This may result in incorrect timestamps in the output file.
[mp4 @ 0x1e73290] Non-monotonous DTS in output stream 0:0; previous: 2, current: -54000; changing to 3. This may result in incorrect timestamps in the output file.
[mp4 @ 0x1e73290] Non-monotonous DTS in output stream 0:0; previous: 3, current: -36000; changing to 4. This may result in incorrect timestamps in the output file.
[mp4 @ 0x1e73290] Non-monotonous DTS in output stream 0:0; previous: 4, current: -18000; changing to 5. This may result in incorrect timestamps in the output file.
[mp4 @ 0x1e73290] Non-monotonous DTS in output stream 0:0; previous: 5, current: 0; changing to 6. This may result in incorrect timestamps in the output file.
frame=   86 fps=7.4 q=-1.0 Lsize=    7718kB time=00:00:15.80 bitrate=4001.7kbits/s speed=1.36x
video:7717kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.017768%
Exiting normally, received signal 2.

@github-actions github-actions bot removed the stale label Oct 18, 2022
@mpietruschka
Copy link
Author

I wonder if its possible that somebody would take a look on that?

@github-actions
Copy link

github-actions bot commented Jan 2, 2023

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.

@github-actions github-actions bot added the stale label Jan 2, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants