frigate: [Config Support]: pipe:: Invalid argument

Describe the problem you are having

Have a great weekend everyone. I am in the process of moving Home Assistant from my DS920+ to a new Unraid server. So new processor i5-13600K comes to use. Also changed that now I don’t want to run Frigate in Home Assistant itself, but as Docker in Unraid OS.

I took my old configuration 1:1, as it ran very stable for the last few months. I then changed the hwaccel_args based on Nick’s tips.

Interestingly, the error message “pipe:: Invalid argument”, however pipe does not appear at all in my configuration. Does anyone know what I need to change to make it work?

Version

0.11.1-2EADA21

Frigate config file

# yaml-language-server: $schema=http://homeassistant:5000/api/config/schema

mqtt:
  host: 10.20.60.113
  port: 1883
  user: *****
  password: *****

detectors:
  coral:
    type: edgetpu
    device: usb


cameras:
  Spielzimmer:
    ffmpeg:
      output_args:
        record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 copy -tag:v hvc1 -c:a aac
        rtmp: -c copy -f flv -tag:v hvc1
      inputs:
        - path: rtsp://*****@10.20.60.87:556/Streaming/Channels/102/
          roles:
            - detect
            - record
        #- path: rtsp://*****@10.20.60.87:556/Streaming/Channels/101/
        #  roles:
        #    - record
    best_image_timeout: 60
    detect:
      width: 640
      height: 480
      fps: 5
    motion:
      mask:
        - 640,316,640,0,531,0,360,0,350,62
        - 386,336,498,436,508,415,497,346,436,298,414,306
        - 291,0,254,275,116,350,97,37
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: True
      height: 270
      quality: 100


  Sauna:
    ffmpeg:
      inputs:
        - path: rtsp://*****.@10.20.60.104:556/Streaming/Channels/103
          roles:
            - detect
            - rtmp
        - path: rtsp://*****.@10.20.60.104:556/Streaming/Channels/101
          roles:
            - record
    best_image_timeout: 60
    motion:
      mask:
        - 37,105,501,102,506,47,37,42
        - 1920,0,1920,281,1485,313,1046,397,983,0
        - 1072,464,1242,472,1255,341,1082,201
        - 1920,1080,1920,587,1344,514,1189,563,1099,652,837,827,1033,791,1119,945,960,1080
        - 1633,0,1920,0,1920,546,1795,532,1742,551,1698,543,1615,529,1558,446,1563,342
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: True
      height: 270
      quality: 100


  Hintereingang:
    ffmpeg:
      inputs:
        - path: rtsp://*****@10.20.60.103:556/Streaming/Channels/103
          roles:
            - detect
            - rtmp  
        - path: rtsp://*****@10.20.60.103:556/Streaming/Channels/101
          roles:
            - record
    best_image_timeout: 60
    motion:
      mask:
        - 743,0,1800,0,1789,324,1159,345,877,373,846,490,696,535,563,461,469,529,292,881,0,639,0,469,0,0
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: True
      height: 270
      quality: 100

  Hinten:
    ffmpeg:
      inputs:
        - path: rtsp://*****@10.20.60.105:556/Streaming/Channels/103
          roles:
            - detect
            - rtmp
        - path: rtsp://*****@10.20.60.105:556/Streaming/Channels/101
          roles:
            - record
    best_image_timeout: 60
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: True
      height: 270
      quality: 100


birdseye:
  enabled: True
  width: 1920
  height: 1080
  quality: 27
  mode: continuous

timestamp_style:
  position: "tl"
  format: "%d/%m/%Y %H:%M:%S"
  color:
    red: 255
    green: 255
    blue: 255
  thickness: 2
  effect: shadow

motion:
  threshold: 50
  contour_area: 30
  delta_alpha: 0.2
  frame_alpha: 0.2
  frame_height: 50
  #mask: 0,900,1080,900,1080,1920,0,1920
  improve_contrast: True


record:
  enabled: True
  expire_interval: 60
  retain:
    days: 5
    mode: all
  events:
    pre_capture: 10
    post_capture: 15
    retain:
      default: 1
      mode: active_objects
      objects:
        person: 7
        cat: 7


objects:
  track:
    - person
    - mouse
    - cat
    - dog
    - laptop
    - handbag
    - umbrella
    - backpack
    - cell phone
    - bicycle
    - cow
    - sheep
    - bird
    - bear
    #- car
    - baseball bat
    - tennis racket
    - knife
    - bottle
    - scissors
  filters:
    person:
      min_area: 1000
      max_area: 400000
      min_score: 0.6
      threshold: 0.75
    cat:
      min_score: 0.7
      threshold: 0.80
    laptop:
      min_score: 0.8
      threshold: 0.9
    bird:
      min_score: 0.8
      threshold: 0.9
      max_area: 90000
    dog:
      min_score: 0.75
      threshold: 0.85
    umbrella:
      min_score: 0.7
      threshold: 0.84
      max_area: 202000
    mouse: 
      min_score: 0.7
      threshold: 0.84
      max_area: 6000
    bear:
      min_score: 0.7
      threshold: 0.9
      max_area: 24000
    sheep:
      min_score: 0.7
      threshold: 0.85
    backpack:
      min_score: 0.75
      threshold: 0.85
ffmpeg:
  global_args: -hide_banner -loglevel warning
  hwaccel_args: -c:v h264_qsv
    - -hwaccel
    - vaapi
    - -hwaccel_device
    - /dev/dri/renderD128
    - -hwaccel_output_format
    - yuv420p
   # - -hwaccel_output_format
   # - yuv420p
  input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1
  output_args:
    detect: -f rawvideo -pix_fmt yuv420p
    record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
    rtmp: -c:v copy -c:a aac -f flv

detect:
  width: 1920
  height: 1080
  fps: 5
  enabled: True
  max_disappeared: 25
  stationary:
    interval: 10
    max_frames:
      objects:
        person: 1000
        cat: 5000

rtmp:
  enabled: False

snapshots:
  enabled: True
  timestamp: True
  bounding_box: True
  crop: True
  #height: 175
  required_zones: []
  retain:
    default: 10
    objects:
      person: 15
      cat: 10
      bear: 5
      dog: 5

Relevant log output

[2023-01-15 10:23:37] watchdog.Spielzimmer           ERROR   : Ffmpeg process crashed unexpectedly for Spielzimmer.
[2023-01-15 10:23:37] watchdog.Spielzimmer           ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2023-01-15 10:23:37] ffmpeg.Spielzimmer.detect      ERROR   : [NULL @ 0x55a0e63792c0] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:37] ffmpeg.Spielzimmer.detect      ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:37] watchdog.Sauna                 ERROR   : Ffmpeg process crashed unexpectedly for Sauna.
[2023-01-15 10:23:37] watchdog.Sauna                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2023-01-15 10:23:37] ffmpeg.Sauna.detect            ERROR   : [NULL @ 0x55f182b3b400] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:37] ffmpeg.Sauna.detect            ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:37] watchdog.Hintereingang         ERROR   : Ffmpeg process crashed unexpectedly for Hintereingang.
[2023-01-15 10:23:37] watchdog.Hintereingang         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2023-01-15 10:23:37] ffmpeg.Hintereingang.detect    ERROR   : [NULL @ 0x55658d6a8fc0] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:37] ffmpeg.Hintereingang.detect    ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:37] watchdog.Hinten                ERROR   : Ffmpeg process crashed unexpectedly for Hinten.
[2023-01-15 10:23:37] watchdog.Hinten                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2023-01-15 10:23:37] ffmpeg.Hinten.detect           ERROR   : [NULL @ 0x5621225d9ac0] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:37] ffmpeg.Hinten.detect           ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:37] ffmpeg.Sauna.record            ERROR   : [NULL @ 0x55b5a87c5240] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:37] ffmpeg.Hinten.record           ERROR   : [NULL @ 0x561f11409900] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:37] ffmpeg.Sauna.record            ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:37] ffmpeg.Hintereingang.record    ERROR   : [NULL @ 0x558f41316fc0] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:37] watchdog.Sauna                 INFO    : Terminating the existing ffmpeg process...
[2023-01-15 10:23:37] ffmpeg.Hintereingang.record    ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:37] watchdog.Sauna                 INFO    : Waiting for ffmpeg to exit gracefully...
[2023-01-15 10:23:37] watchdog.Hintereingang         INFO    : Terminating the existing ffmpeg process...
[2023-01-15 10:23:37] ffmpeg.Hinten.record           ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:37] watchdog.Hintereingang         INFO    : Waiting for ffmpeg to exit gracefully...
[2023-01-15 10:23:37] watchdog.Hinten                INFO    : Terminating the existing ffmpeg process...
[2023-01-15 10:23:37] watchdog.Hinten                INFO    : Waiting for ffmpeg to exit gracefully...
[2023-01-15 10:23:41] frigate.video                  ERROR   : Spielzimmer: Unable to read frames from ffmpeg process.
[2023-01-15 10:23:41] frigate.video                  ERROR   : Spielzimmer: ffmpeg process is not running. exiting capture thread...
[2023-01-15 10:23:41] frigate.video                  ERROR   : Hinten: Unable to read frames from ffmpeg process.
[2023-01-15 10:23:41] frigate.video                  ERROR   : Hinten: ffmpeg process is not running. exiting capture thread...
[2023-01-15 10:23:41] frigate.video                  ERROR   : Sauna: Unable to read frames from ffmpeg process.
[2023-01-15 10:23:41] frigate.video                  ERROR   : Sauna: ffmpeg process is not running. exiting capture thread...
[2023-01-15 10:23:41] frigate.video                  ERROR   : Hintereingang: Unable to read frames from ffmpeg process.
[2023-01-15 10:23:41] frigate.video                  ERROR   : Hintereingang: ffmpeg process is not running. exiting capture thread...
[2023-01-15 10:23:47] watchdog.Spielzimmer           ERROR   : Ffmpeg process crashed unexpectedly for Spielzimmer.
[2023-01-15 10:23:47] watchdog.Spielzimmer           ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2023-01-15 10:23:47] ffmpeg.Spielzimmer.detect      ERROR   : [NULL @ 0x562efbae6280] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:47] ffmpeg.Spielzimmer.detect      ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:47] watchdog.Sauna                 ERROR   : Ffmpeg process crashed unexpectedly for Sauna.
[2023-01-15 10:23:47] watchdog.Sauna                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2023-01-15 10:23:47] ffmpeg.Sauna.detect            ERROR   : [NULL @ 0x555a4d88d400] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:47] watchdog.Hinten                ERROR   : Ffmpeg process crashed unexpectedly for Hinten.
[2023-01-15 10:23:47] watchdog.Hinten                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2023-01-15 10:23:47] ffmpeg.Hinten.detect           ERROR   : [NULL @ 0x55810bfd4d40] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:47] watchdog.Hintereingang         ERROR   : Ffmpeg process crashed unexpectedly for Hintereingang.
[2023-01-15 10:23:47] ffmpeg.Hinten.detect           ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:47] ffmpeg.Sauna.detect            ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:47] watchdog.Hintereingang         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2023-01-15 10:23:47] ffmpeg.Hintereingang.detect    ERROR   : [NULL @ 0x555df5226400] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:47] ffmpeg.Hintereingang.detect    ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:47] ffmpeg.Hintereingang.record    ERROR   : [NULL @ 0x55b3fb57bd40] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:47] ffmpeg.Hintereingang.record    ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:47] watchdog.Hintereingang         INFO    : Terminating the existing ffmpeg process...
[2023-01-15 10:23:47] watchdog.Hintereingang         INFO    : Waiting for ffmpeg to exit gracefully...
[2023-01-15 10:23:47] ffmpeg.Sauna.record            ERROR   : [NULL @ 0x56246419c680] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:47] ffmpeg.Sauna.record            ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:47] watchdog.Sauna                 INFO    : Terminating the existing ffmpeg process...
[2023-01-15 10:23:47] watchdog.Sauna                 INFO    : Waiting for ffmpeg to exit gracefully...
[2023-01-15 10:23:47] ffmpeg.Hinten.record           ERROR   : [NULL @ 0x55d15a06e900] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:47] ffmpeg.Hinten.record           ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:47] watchdog.Hinten                INFO    : Terminating the existing ffmpeg process...
[2023-01-15 10:23:47] watchdog.Hinten                INFO    : Waiting for ffmpeg to exit gracefully...
[2023-01-15 10:23:51] frigate.video                  ERROR   : Spielzimmer: Unable to read frames from ffmpeg process.
[2023-01-15 10:23:51] frigate.video                  ERROR   : Spielzimmer: ffmpeg process is not running. exiting capture thread...
[2023-01-15 10:23:51] frigate.video                  ERROR   : Sauna: Unable to read frames from ffmpeg process.
[2023-01-15 10:23:51] frigate.video                  ERROR   : Sauna: ffmpeg process is not running. exiting capture thread...
[2023-01-15 10:23:51] frigate.video                  ERROR   : Hinten: Unable to read frames from ffmpeg process.
[2023-01-15 10:23:51] frigate.video                  ERROR   : Hinten: ffmpeg process is not running. exiting capture thread...
[2023-01-15 10:23:51] frigate.video                  ERROR   : Hintereingang: Unable to read frames from ffmpeg process.
[2023-01-15 10:23:51] frigate.video                  ERROR   : Hintereingang: ffmpeg process is not running. exiting capture thread...
[2023-01-15 10:23:57] watchdog.Spielzimmer           ERROR   : Ffmpeg process crashed unexpectedly for Spielzimmer.
[2023-01-15 10:23:57] watchdog.Spielzimmer           ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2023-01-15 10:23:57] ffmpeg.Spielzimmer.detect      ERROR   : [NULL @ 0x55eb24d4c340] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:57] ffmpeg.Spielzimmer.detect      ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:57] watchdog.Hinten                ERROR   : Ffmpeg process crashed unexpectedly for Hinten.
[2023-01-15 10:23:57] watchdog.Hinten                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2023-01-15 10:23:57] ffmpeg.Hinten.detect           ERROR   : [NULL @ 0x55e7ca24e400] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:57] ffmpeg.Hinten.detect           ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:57] watchdog.Sauna                 ERROR   : Ffmpeg process crashed unexpectedly for Sauna.
[2023-01-15 10:23:57] watchdog.Sauna                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2023-01-15 10:23:57] ffmpeg.Sauna.detect            ERROR   : [NULL @ 0x55ac7e3e3d40] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:57] ffmpeg.Sauna.detect            ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:57] watchdog.Hintereingang         ERROR   : Ffmpeg process crashed unexpectedly for Hintereingang.
[2023-01-15 10:23:57] watchdog.Hintereingang         ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2023-01-15 10:23:57] ffmpeg.Hintereingang.detect    ERROR   : [rtsp @ 0x559cf0c74140] DTS discontinuity in stream 1: packet 14 with DTS 80341182148553, packet 15 with DTS 80341182152543
[2023-01-15 10:23:57] ffmpeg.Hintereingang.detect    ERROR   : [NULL @ 0x559cf0c8fac0] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:57] ffmpeg.Hintereingang.detect    ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:57] ffmpeg.Hinten.record           ERROR   : [NULL @ 0x55ffb7e7bfc0] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:57] ffmpeg.Hinten.record           ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:57] watchdog.Hinten                INFO    : Terminating the existing ffmpeg process...
[2023-01-15 10:23:57] watchdog.Hinten                INFO    : Waiting for ffmpeg to exit gracefully...
[2023-01-15 10:23:57] ffmpeg.Sauna.record            ERROR   : [NULL @ 0x556e8a267fc0] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:57] ffmpeg.Sauna.record            ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:57] watchdog.Sauna                 INFO    : Terminating the existing ffmpeg process...
[2023-01-15 10:23:57] watchdog.Sauna                 INFO    : Waiting for ffmpeg to exit gracefully...
[2023-01-15 10:23:57] ffmpeg.Hintereingang.record    ERROR   : [NULL @ 0x55aed226f900] Unable to find a suitable output format for 'pipe:'
[2023-01-15 10:23:57] ffmpeg.Hintereingang.record    ERROR   : pipe:: Invalid argument
[2023-01-15 10:23:57] watchdog.Hintereingang         INFO    : Terminating the existing ffmpeg process...
[2023-01-15 10:23:57] watchdog.Hintereingang         INFO    : Waiting for ffmpeg to exit gracefully...
[2023-01-15 10:24:01] frigate.video                  ERROR   : Spielzimmer: Unable to read frames from ffmpeg process.
[2023-01-15 10:24:01] frigate.video                  ERROR   : Spielzimmer: ffmpeg process is not running. exiting capture thread...
[2023-01-15 10:24:01] frigate.video                  ERROR   : Hinten: Unable to read frames from ffmpeg process.
[2023-01-15 10:24:01] frigate.video                  ERROR   : Hinten: ffmpeg process is not running. exiting capture thread...
[2023-01-15 10:24:01] frigate.video                  ERROR   : Sauna: Unable to read frames from ffmpeg process.
[2023-01-15 10:24:01] frigate.video                  ERROR   : Sauna: ffmpeg process is not running. exiting capture thread...
[2023-01-15 10:24:01] frigate.video                  ERROR   : Hintereingang: Unable to read frames from ffmpeg process.
[2023-01-15 10:24:01] frigate.video                  ERROR   : Hintereingang: ffmpeg process is not running. exiting capture thread...

Frigate stats

{"Hinten":{"camera_fps":0.0,"capture_pid":275,"detection_fps":0.0,"pid":263,"process_fps":0.0,"skipped_fps":0.0},"Hintereingang":{"camera_fps":0.0,"capture_pid":269,"detection_fps":0.0,"pid":259,"process_fps":0.0,"skipped_fps":0.0},"Sauna":{"camera_fps":0.0,"capture_pid":266,"detection_fps":0.0,"pid":257,"process_fps":0.0,"skipped_fps":0.0},"Spielzimmer":{"camera_fps":0.0,"capture_pid":264,"detection_fps":0.0,"pid":255,"process_fps":0.0,"skipped_fps":0.0},"detection_fps":0.0,"detectors":{"coral":{"detection_start":0.0,"inference_speed":10.0,"pid":248}},"service":{"latest_version":"0.11.1","storage":{"/dev/shm":{"free":267.8,"mount_type":"tmpfs","total":268.4,"used":0.7},"/media/frigate/clips":{"free":1941946.2,"mount_type":"fuse.shfs","total":1999430.9,"used":57484.7},"/media/frigate/recordings":{"free":1941946.2,"mount_type":"fuse.shfs","total":1999430.9,"used":57484.7},"/tmp/cache":{"free":1000.0,"mount_type":"tmpfs","total":1000.0,"used":0.0}},"temperatures":{},"uptime":1321,"version":"0.11.1-2eada21"}}

Operating system

UNRAID

Install method

Docker CLI

Coral version

USB

Any other information that may be helpful

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 20

Most upvoted comments

Everything works like a charm now! Great work and thank you very much!