blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
17.32k stars 1.6k forks source link

ffmpeg proces is not running #699

Closed imzenreally closed 3 years ago

imzenreally commented 3 years ago

this is driving me nuts - if this isn't the right forum please let me know - i have tried all the basic configs as well as the specific input_args for a reolink but try as i might i keep getting the following errors

i am running this from my home assistant server

frigate.video                  INFO    : Office: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Office: ffmpeg process is not running. exiting capture thread...
ffmpeg.Office.detect           ERROR   : rtsp://bunny:REDACTED@XXX.XXX.XXX.XXX:554/live: Invalid data found when processing input

here is my config - i kept it as simple as possible

detectors:
  coral:
    type: cpu
mqtt:
  host: 192.168.0.121
  topic_prefix: frigate
  client_id: frigate
  user: mqtt_user
  password: REDACTED
ffmpeg: {}
cameras:
  Office:
    ffmpeg:
      inputs:
        - path: 'rtsp://bunny:REDACTED@XXX.XXX.XXX.XXX:554/live:'
          roles:
            - detect
    width: 1920
    height: 1080
OptimusGREEN commented 3 years ago

yup same here, just trying to set up tonight for my new reolink 520 cams but getting this error when using the reolink input args and a green screen with or without those settings. running hassio integration and addon and using a coral.

imzenreally commented 3 years ago

yup same here, just trying to set up tonight for my new reolink 520 cams but getting this error when using the reolink input args and a green screen with or without those settings. running hassio integration and addon and using a coral.

exact same issue - everything spins up - but i get the error in the logs and green screen

OptimusGREEN commented 3 years ago

ok try this as your url, just found it elsewhere.

'rtmp://<IPADDRESS>/bcs/channel0_sub.bcs?channel=0&stream=0&user=<USERNAME>&password=<PASSWORD>'

this is now working for me. @blakeblackshear , Maybe this could be noted in the reolink section?

blakeblackshear commented 3 years ago

@imzenreally do you really have a : at the end of your rtsp url?

imzenreally commented 3 years ago

@imzenreally do you really have a : at the end of your rtsp url?

no that was a typo somehow - my prod config does not have the colon - trying the rmp from optimusgreen

imzenreally commented 3 years ago

ugh - not sure what i did - but now my reolinks are working as are my jidetech but i can't get my rtsp wyze cam to display - with the wyze cam i still get the ffmpeg error

paularmstrong commented 3 years ago

but i can't get my rtsp wyze cam to display - with the wyze cam i still get the ffmpeg error

My wyze cams continually dropped frames to the point where I felt like they weren't worth the hassle of trying to pipe them through Frigate. The RTSP firmware is pretty hacky and hasn't really been supported, as far as I'm aware.

blakeblackshear commented 3 years ago

I want to help, but you aren't really providing enough information for anyone to help resolve your issues. For the wyze cam, can you post your config and the logs? They wyzecams do crash a lot, but you should be able to set them up and try for yourself.

unrly commented 3 years ago

Jumping on the Wyze issues here too. I had been testing with one camera for a bit on the betas and it was working great. I updated my 3 main cameras to the RTSP firmware and have been having tons of dropouts since the .8 release.

  cpu1:
    type: cpu
  cpu2:
    type: cpu
mqtt:
  host: core-mosquitto.local.hass.io
  user: ********
  password: *****
ffmpeg:
cameras:
  driveway:
    ffmpeg:
      inputs:
        - path: 'rtsp://***:***@192.168.1.42/live'
          roles:
            - detect
            - rtmp
            - clips
    width: 1920
    height: 1080
    fps: 15
    clips:
      enabled: true
      retain:
        default: 1
  garden:
    ffmpeg:
      inputs:
        - path: 'rtsp://***:***@192.168.1.41/live'
          roles:
            - detect
            - rtmp
            - clips
    width: 1920
    height: 1080
    fps: 15
    clips:
      enabled: true
      retain:
        default: 2
  shed:
    ffmpeg:
      inputs:
        - path: 'rtsp://***:***@192.168.1.38/live'
          roles:
            - detect
            - rtmp
            - clips
    width: 1920
    height: 1080
    fps: 15
    clips:
      enabled: true
      retain:
        default: 2

frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : shed: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : shed: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : shed: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : garden: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : garden: ffmpeg process is not running. exiting capture thread...
ffmpeg.garden.detect           ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
ffmpeg.garden.detect           ERROR   : rtsp://***:***@192.168.1.41/live: corrupt decoded frame in stream 0
ffmpeg.garden.detect           ERROR   : [flv @ 0x55f00b7db7c0] Failed to update header with correct duration.
ffmpeg.garden.detect           ERROR   : [flv @ 0x55f00b7db7c0] Failed to update header with correct filesize.
ffmpeg.driveway.detect         ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
ffmpeg.driveway.detect         ERROR   : [h264 @ 0x5653fa6300c0] error while decoding MB 70 41, bytestream -17
ffmpeg.driveway.detect         ERROR   : rtsp://***:***@192.168.1.42/live: corrupt decoded frame in stream 0
ffmpeg.driveway.detect         ERROR   : [flv @ 0x5653fa598880] Failed to update header with correct duration.
ffmpeg.driveway.detect         ERROR   : [flv @ 0x5653fa598880] Failed to update header with correct filesize.
ffmpeg.shed.detect             ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
ffmpeg.shed.detect             ERROR   : [h264 @ 0x55b9f490c100] error while decoding MB 23 3, bytestream -13
ffmpeg.shed.detect             ERROR   : rtsp://***:***@192.168.1.38/live: corrupt decoded frame in stream 0
ffmpeg.shed.detect             ERROR   : [flv @ 0x55b9f487a880] Failed to update header with correct duration.
ffmpeg.shed.detect             ERROR   : [flv @ 0x55b9f487a880] Failed to update header with correct filesize.
[h264 @ 0x55842ad15d00] error while decoding MB 70 41, bytestream -17
watchdog.garden                INFO    : No frames received from garden in 20 seconds. Exiting ffmpeg...
watchdog.garden                INFO    : Waiting for ffmpeg to exit gracefully...
watchdog.driveway              INFO    : No frames received from driveway in 20 seconds. Exiting ffmpeg...
watchdog.driveway              INFO    : Waiting for ffmpeg to exit gracefully...
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg process is not running. exiting capture thread...
watchdog.shed                  INFO    : No frames received from shed in 20 seconds. Exiting ffmpeg...
watchdog.shed                  INFO    : Waiting for ffmpeg to exit gracefully...
frigate.video                  INFO    : shed: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : shed: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : garden: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : garden: ffmpeg process is not running. exiting capture thread...
ffmpeg.driveway.detect         ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
ffmpeg.driveway.detect         ERROR   : [rtmp @ 0x564dc01e3500] Cannot open connection tcp://127.0.0.1:1935
ffmpeg.shed.detect             ERROR   : [rtsp @ 0x55f96d902d80] CSeq 6 expected, 0 received.
ffmpeg.shed.detect             ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
ffmpeg.shed.detect             ERROR   : [rtmp @ 0x55f96d9e0580] Cannot open connection tcp://127.0.0.1:1935
ffmpeg.shed.detect             ERROR   : rtmp://127.0.0.1/live/shed: Immediate exit requested
ffmpeg.driveway.detect         ERROR   : rtmp://127.0.0.1/live/driveway: Immediate exit requested
ffmpeg.garden.detect           ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
ffmpeg.garden.detect           ERROR   : Finishing stream 2:0 without any data written to it.
ffmpeg.garden.detect           ERROR   : [flv @ 0x5611cc6f4c00] Failed to update header with correct duration.
ffmpeg.garden.detect           ERROR   : [flv @ 0x5611cc6f4c00] Failed to update header with correct filesize.
frigate.video                  INFO    : shed: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : shed: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg process is not running. exiting capture thread...
ffmpeg.driveway.detect         ERROR   : [tcp @ 0x555fe4ea36c0] Connection to tcp://192.168.1.42:554?timeout=5000000 failed: Connection timed out
ffmpeg.driveway.detect         ERROR   : rtsp://***:***@192.168.1.42/live: Connection timed out
ffmpeg.shed.detect             ERROR   : [tcp @ 0x559e73bc36c0] Connection to tcp://192.168.1.38:554?timeout=5000000 failed: Connection timed out
ffmpeg.shed.detect             ERROR   : rtsp://***:***@192.168.1.38/live: Connection timed out
frigate.video                  INFO    : garden: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : garden: ffmpeg process is not running. exiting capture thread...
ffmpeg.garden.detect           ERROR   : [tcp @ 0x562a389b46c0] Connection to tcp://192.168.1.41:554?timeout=5000000 failed: Connection timed out
ffmpeg.garden.detect           ERROR   : rtsp://***:***@192.168.1.41/live: Connection timed out
frigate.video                  INFO    : shed: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : shed: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg process is not running. exiting capture thread...
ffmpeg.driveway.detect         ERROR   : [tcp @ 0x558b54c8c6c0] Connection to tcp://192.168.1.42:554?timeout=5000000 failed: Connection timed out
ffmpeg.driveway.detect         ERROR   : rtsp://***:***@192.168.1.42/live: Connection timed out
ffmpeg.shed.detect             ERROR   : [tcp @ 0x564dfd7596c0] Connection to tcp://192.168.1.38:554?timeout=5000000 failed: Connection timed out
ffmpeg.shed.detect             ERROR   : rtsp://***:***@192.168.1.38/live: Connection timed out
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg process is not running. exiting capture thread...
watchdog.shed                  INFO    : No frames received from shed in 20 seconds. Exiting ffmpeg...
watchdog.shed                  INFO    : Waiting for ffmpeg to exit gracefully...
ffmpeg.driveway.detect         ERROR   : rtsp://***:***@192.168.1.42/live: Operation not permitted
frigate.video                  INFO    : shed: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : shed: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : garden: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : garden: ffmpeg process is not running. exiting capture thread...
ffmpeg.garden.detect           ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
ffmpeg.garden.detect           ERROR   : [flv @ 0x557aa455c880] Failed to update header with correct duration.
ffmpeg.garden.detect           ERROR   : [flv @ 0x557aa455c880] Failed to update header with correct filesize.
frigate.video                  INFO    : driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : driveway: ffmpeg process is not running. exiting capture thread...
ffmpeg.shed.detect             ERROR   : [h264 @ 0x560dae853f80] error while decoding MB 96 27, bytestream -7
ffmpeg.shed.detect             ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
ffmpeg.shed.detect             ERROR   : [rtmp @ 0x560dae872040] Cannot open connection tcp://127.0.0.1:1935
ffmpeg.shed.detect             ERROR   : rtmp://127.0.0.1/live/shed: Immediate exit requested
ffmpeg.driveway.detect         ERROR   : [tcp @ 0x562154c0c6c0] Connection to tcp://192.168.1.42:554?timeout=5000000 failed: Connection timed out
ffmpeg.driveway.detect         ERROR   : rtsp://***:***@192.168.1.42/live: Connection timed out```
stale[bot] commented 3 years ago

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.