question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Beta 1.4 - Still many ffmpeg errors

See original GitHub issue

Remade and simplified my whole add-on config based on beta 1.4 documentation. While the system is working (still testing), i am still getting continuous ffmpeg errors:

 * Starting nginx nginx
   ...done.
frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
peewee_migrate                 INFO    : There is nothing to migrate
frigate.app                    INFO    : Camera processor started for Garage: 38
detector.coral                 INFO    : Starting detection process: 36
frigate.edgetpu                INFO    : Attempting to load TPU as usb:0
frigate.app                    INFO    : Capture process started for Garage: 40
frigate.edgetpu                INFO    : TPU found
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
watchdog.Garage                INFO    : No frames received from Garage in 20 seconds. Exiting ffmpeg...
watchdog.Garage                INFO    : Waiting for ffmpeg to exit gracefully...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
watchdog.Garage                INFO    : No frames received from Garage in 20 seconds. Exiting ffmpeg...
watchdog.Garage                INFO    : Waiting for ffmpeg to exit gracefully...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
watchdog.Garage                INFO    : No frames received from Garage in 20 seconds. Exiting ffmpeg...
watchdog.Garage                INFO    : Waiting for ffmpeg to exit gracefully...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
watchdog.Garage                INFO    : No frames received from Garage in 20 seconds. Exiting ffmpeg...
watchdog.Garage                INFO    : Waiting for ffmpeg to exit gracefully...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : Garage: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : Garage: ffmpeg process is not running. exiting capture thread...

My config is as follows:

detectors:
  coral:
    type: edgetpu
    device: 'usb:0'
mqtt:
  host: core-mosquitto.local.hass.io
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: xxx
  password: xxx
ffmpeg: {}
cameras:
  Garage:
    ffmpeg:
      inputs:
        - path: 'rtsp://xxx....'
          roles:
            - detect
            - rtmp
    width: 1920
    height: 1080
    fps: 5
    motion:
      mask: >-
        0,1072,2,1,1919,7,1917,1070,1495,1072,1678,653,547,227,528,89,357,109,370,292,116,340,316,1072
snapshots:
  retain:
    default: 10
    objects:
      person: 15
clips:
  max_seconds: 300
  retain:
    default: 10
    objects:
      person: 15
objects:
  track:
    - person
  filters:
    person:
      min_area: 5000
      max_area: 100000
      min_score: 0.5
      threshold: 0.7
database:
  path: /media/frigate/clips/frigate.db
logger:
  default: info
  logs:
    frigate.mqtt: error

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:27 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
asemevcommented, Jan 21, 2021

guys, its been a few hours now since my update and guess what?

  • No ffmpeg errors or any other errors in the log. Fully clean.
  • Ingress works perfectly well
  • Clips recorded and available in the media browser

You did it!!! And i probably jinxed it now 😃

0reactions
asemevcommented, Jan 21, 2021

Thank you Blake. That must be it. Garage cam is using WIFI and the signal is definitely weak. So for sure thats the problem then. Thank you! If i get those errors again, i will test with another camera thats wired. Btw, still no ffmpeg errors 😃 fingers crossed.

AGAIN: Thank you for the awesome work with Frigate!!! And thank you for everyone who’s contributing. BIg fan! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Looking at Camera Stream fails with ffmpeg error #718 - GitHub
Describe The Problem: Looking at Camera Stream fails with ffmpeg error. I am very much on the bleeding edge of versions on this...
Read more >
ffmpeg Documentation
The audio stream with most channels viz. stream 3 in B.mp4 , is chosen ... Note the map will still fail if an...
Read more >
FFmpeg Codecs Documentation
1 Description. This document describes the codecs (decoders and encoders) provided by the libavcodec library. 2 Codec Options.
Read more >
8349 (Dolby AC-4 Support) - FFmpeg Wiki
For now, I can still record my ATSC3.0 channels using NextPVR and use the binaries from this tree for playback of those ATSC3.0...
Read more >
FFmpeg Filters Documentation
In libavfilter, a filter can have multiple inputs and multiple outputs. ... Still with a stereo audio stream input, you can copy the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found