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

[Support]: one camera stays green #2745

Closed
ardenking opened this issue Feb 4, 2022 · 5 comments
Closed

[Support]: one camera stays green #2745

ardenking opened this issue Feb 4, 2022 · 5 comments

Comments

@ardenking
Copy link

Describe the problem you are having

Motion eye camera on Raspberry pi staying green screen

Ive just installed via home assistant plug-in and added 4x rtsp cameras without issue I have one camera though attached to a pi running motioneye that stays green no matter what config Ive tried any help would be great

Version

0.9.4-26ae608

Frigate config file

mqtt:
  host: 192.168.1.xxx
  user: xxxxx
  password: ((xxxxxx))@xxxxxxx
  
  
cameras:

  Back:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - detect
            - rtmp
  
  Front:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - detect
            - rtmp
            
  Garage:
    ffmpeg:
      inputs:
        - path: rtsp://192.168.1.107:554/
          roles:
            - detect
            - rtmp
            
  Drive:
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected]:554/live/ch1
          roles:
            - detect
            - rtmp
            
  
  
  
  Bird_Box:
    ffmpeg:
      inputs:
        - path: http://192.168.1.219:8081
          roles:
            - detect
              rtmp
      input_args:
        - -avoid_negative_ts
        - make_zero
        - -fflags
        - nobuffer
        - -flags
        - low_delay
        - -strict
        - experimental
        - -fflags
        - +genpts+discardcorrupt
        - -r
        - "25" # <---- adjust depending on your desired frame rate from the mjpeg image
        - -use_wallclock_as_timestamps
        - "1"        
              
              
detect:
  width: 1280
  height: 720
  fps: 5
  
              

  
objects:
  track:       # add more object types under this if you want
    - person
    - dog
    - cat
    
detectors:
  cpu1:
    type: cpu          

record:
  enabled: True
  retain_days: 0
  events:
    retain:
      default: 10

Relevant log output

assignment: lvalue and rvalue have different structures
[2022-02-04 21:13:39] frigate.video                  INFO    : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-04 21:13:39] frigate.video                  INFO    : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-04 21:13:39] frigate.video                  INFO    : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-04 21:13:39] frigate.video                  INFO    : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-04 21:13:39] frigate.video                  INFO    : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-04 21:13:39] frigate.video                  INFO    : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-04 21:13:39] frigate.video                  INFO    : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-04 21:13:39] frigate.video                  INFO    : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-04 21:13:39] frigate.video                  INFO    : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-04 21:13:39] frigate.video                  INFO    : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-04 21:13:39] frigate.video                  INFO    : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures

FFprobe output from your camera

cant run in HA command line

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

rpi

Any other information that may be helpful

No response

@ardenking ardenking changed the title [Support]: [Support]: one camera stays green Feb 4, 2022
@blakeblackshear
Copy link
Owner

You can't use RTMP with an mjpeg stream without encoding. Try disabling rtmp for the mjpeg stream.

@ardenking
Copy link
Author

thanks for the swift replay its still not working changed the log output

assignment: lvalue and rvalue have different structures
[2022-02-05 04:47:07] frigate.video INFO : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-05 04:47:07] frigate.video INFO : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-05 04:47:07] frigate.video INFO : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-05 04:47:07] frigate.video INFO : Bird_Box: ffmpeg process is not running. exiting capture thread...
[2022-02-05 04:47:08] ws4py INFO : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:55718]
[2022-02-05 04:47:11] frigate.record WARNING : Discarding a corrupt recording segment: Bird_Box-20220205044707.mp4
[2022-02-05 04:47:16] watchdog.Bird_Box ERROR : FFMPEG process crashed unexpectedly for Bird_Box.
[2022-02-05 04:47:16] watchdog.Bird_Box ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-02-05 04:47:16] watchdog.Bird_Box ERROR : You may have invalid args defined for this camera.
[2022-02-05 04:47:16] ffmpeg.Bird_Box.detect ERROR : [flv @ 0x55cf1a2a02c0] Video codec mjpeg not compatible with flv
[2022-02-05 04:47:16] ffmpeg.Bird_Box.detect ERROR : Could not write header for output file #1 (incorrect codec parameters ?): Function not implemented
[2022-02-05 04:47:16] ffmpeg.Bird_Box.detect ERROR :
[2022-02-05 04:47:17] frigate.video INFO : Bird_Box: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2022-02-05 04:47:17] frigate.video INFO : Bird_Box: ffmpeg process is not running. exiting capture thread...

@ozett
Copy link

ozett commented Feb 5, 2022

ffmpeg.Bird_Box.detect ERROR : [flv @ 0x55cf1a2a02c0] Video codec mjpeg not compatible with flv

may change camera settings (codec)? on camera?

Bird_Box:
    ffmpeg:
      inputs:
        - path: http://192.168.1.219:8081

or you have a typo. is there a dash missing?

image

@blakeblackshear
Copy link
Owner

Removing the rtmp role does not disable rtmp. You need to add the following under the camera.

rtmp:
  enabled: False

You also can't record mjpeg cameras without encoding, so you can't enable recording either.

You should look at the docs for mjpeg cameras: https://docs.frigate.video/configuration/camera_specific#mjpeg-cameras

@ardenking
Copy link
Author

thank you so much for your support
that's fixed the issue

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

3 participants