blakeblackshear / frigate

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

[Camera Support]: SONOFF Smart Camera GK-200MP2-B #5152

Closed bughattiveyron closed 1 year ago

bughattiveyron commented 1 year ago

Describe the problem you are having

Can not find a working config for output_args: to collect audio from the Sonoff GK-200MP2-B IP Camera

Camera collects video fine and records and creates clips, but no audio is being pulled. Audio works fine in the ewelink app.

Version

0.10.1-83481AF

Frigate config file

{
  "birdseye": {
    "enabled": true,
    "height": 720,
    "mode": "objects",
    "quality": 8,
    "width": 1280
  },
  "cameras": {
    "Back_Alley": {
      "best_image_timeout": 60,
      "detect": {
        "enabled": true,
        "fps": 5,
        "height": 720,
        "max_disappeared": 25,
        "stationary": {
          "interval": 0,
          "max_frames": {
            "default": null,
            "objects": {}
          },
          "threshold": 50
        },
        "width": 1280
      },
      "ffmpeg": {
        "global_args": [
          "-hide_banner",
          "-loglevel",
          "warning"
        ],
        "hwaccel_args": [],
        "input_args": [
          "-avoid_negative_ts",
          "make_zero",
          "-fflags",
          "+genpts+discardcorrupt",
          "-rtsp_transport",
          "tcp",
          "-stimeout",
          "5000000",
          "-use_wallclock_as_timestamps",
          "1"
        ],
        "inputs": [
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [],
            "path": "rtsp://rtsp:secure@10.xx.xx.216:554/av_stream/ch0",
            "roles": [
              "record",
              "rtmp",
              "detect"
            ]
          }
        ],
        "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",
            "copy",
            "-f",
            "flv"
          ]
        }
      },
      "ffmpeg_cmds": [
        {
          "cmd": "ffmpeg -hide_banner -loglevel warning -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://rtsp:V!ct0r123@10.66.66.216:554/av_stream/ch0 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/Back_Alley-%Y%m%d%H%M%S.mp4 -c copy -f flv rtmp://127.0.0.1/live/Back_Alley -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
          "roles": [
            "record",
            "rtmp",
            "detect"
          ]
        }
      ],
      "live": {
        "height": 720,
        "quality": 8
      },
      "motion": {
        "contour_area": 30,
        "delta_alpha": 0.2,
        "frame_alpha": 0.2,
        "frame_height": 50,
        "improve_contrast": false,
        "mask": "",
        "threshold": 25
      },
      "mqtt": {
        "bounding_box": true,
        "crop": true,
        "enabled": true,
        "height": 270,
        "quality": 70,
        "required_zones": [],
        "timestamp": true
      },
      "name": "Back_Alley",
      "objects": {
        "filters": {
          "bicycle": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "car": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "cat": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "dog": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "motorcycle": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "person": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "truck": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          }
        },
        "mask": "",
        "track": [
          "person",
          "car",
          "truck",
          "bicycle",
          "motorcycle",
          "dog",
          "cat"
        ]
      },
      "record": {
        "enabled": true,
        "events": {
          "max_seconds": 300,
          "objects": null,
          "post_capture": 5,
          "pre_capture": 5,
          "required_zones": [],
          "retain": {
            "default": 10,
            "mode": "motion",
            "objects": {}
          }
        },
        "expire_interval": 60,
        "retain": {
          "days": 0,
          "mode": "all"
        },
        "retain_days": null
      },
      "rtmp": {
        "enabled": true
      },
      "snapshots": {
        "bounding_box": true,
        "clean_copy": true,
        "crop": false,
        "enabled": true,
        "height": null,
        "quality": 70,
        "required_zones": [],
        "retain": {
          "default": 10,
          "mode": "motion",
          "objects": {}
        },
        "timestamp": false
      },
      "timestamp_style": {
        "color": {
          "blue": 255,
          "green": 255,
          "red": 255
        },
        "effect": null,
        "format": "%m/%d/%Y %H:%M:%S",
        "position": "tl",
        "thickness": 2
      },
      "zones": {}
    },
    "Front_Garage": {
      "best_image_timeout": 60,
      "detect": {
        "enabled": true,
        "fps": 5,
        "height": 720,
        "max_disappeared": 25,
        "stationary": {
          "interval": 0,
          "max_frames": {
            "default": null,
            "objects": {}
          },
          "threshold": 50
        },
        "width": 1280
      },
      "ffmpeg": {
        "global_args": [
          "-hide_banner",
          "-loglevel",
          "warning"
        ],
        "hwaccel_args": [],
        "input_args": [
          "-avoid_negative_ts",
          "make_zero",
          "-fflags",
          "+genpts+discardcorrupt",
          "-rtsp_transport",
          "tcp",
          "-stimeout",
          "5000000",
          "-use_wallclock_as_timestamps",
          "1"
        ],
        "inputs": [
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [],
            "path": "rtsp://liquid:secure@10.xx.xx.112:554/s0",
            "roles": [
              "record",
              "rtmp",
              "detect"
            ]
          }
        ],
        "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 -ar 44100 -c:a aac",
          "rtmp": "-c:v copy -f flv -ar 44100 -c:a aac"
        }
      },
      "ffmpeg_cmds": [
        {
          "cmd": "ffmpeg -hide_banner -loglevel warning -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://liquid:secure@10.xx.xx.112:554/s0 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -ar 44100 -c:a aac /tmp/cache/Front_Garage-%Y%m%d%H%M%S.mp4 -c:v copy -f flv -ar 44100 -c:a aac rtmp://127.0.0.1/live/Front_Garage -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
          "roles": [
            "record",
            "rtmp",
            "detect"
          ]
        }
      ],
      "live": {
        "height": 720,
        "quality": 8
      },
      "motion": {
        "contour_area": 30,
        "delta_alpha": 0.2,
        "frame_alpha": 0.2,
        "frame_height": 50,
        "improve_contrast": false,
        "mask": "",
        "threshold": 25
      },
      "mqtt": {
        "bounding_box": true,
        "crop": true,
        "enabled": true,
        "height": 270,
        "quality": 70,
        "required_zones": [],
        "timestamp": true
      },
      "name": "Front_Garage",
      "objects": {
        "filters": {
          "bicycle": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "car": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "cat": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "dog": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "motorcycle": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "person": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "truck": {
            "mask": null,
            "max_area": 24000000,
            "min_area": 0,
            "min_score": 0.5,
            "threshold": 0.7
          }
        },
        "mask": "",
        "track": [
          "person",
          "car",
          "truck",
          "bicycle",
          "motorcycle",
          "dog",
          "cat"
        ]
      },
      "record": {
        "enabled": true,
        "events": {
          "max_seconds": 300,
          "objects": null,
          "post_capture": 5,
          "pre_capture": 5,
          "required_zones": [],
          "retain": {
            "default": 10,
            "mode": "motion",
            "objects": {}
          }
        },
        "expire_interval": 60,
        "retain": {
          "days": 0,
          "mode": "all"
        },
        "retain_days": null
      },
      "rtmp": {
        "enabled": true
      },
      "snapshots": {
        "bounding_box": true,
        "clean_copy": true,
        "crop": false,
        "enabled": true,
        "height": null,
        "quality": 70,
        "required_zones": [],
        "retain": {
          "default": 10,
          "mode": "motion",
          "objects": {}
        },
        "timestamp": false
      },
      "timestamp_style": {
        "color": {
          "blue": 255,
          "green": 255,
          "red": 255
        },
        "effect": null,
        "format": "%m/%d/%Y %H:%M:%S",
        "position": "tl",
        "thickness": 2
      },
      "zones": {}
    }
  },
  "database": {
    "path": "/media/frigate/frigate.db"
  },
  "detect": {
    "enabled": true,
    "fps": 5,
    "height": 720,
    "max_disappeared": null,
    "stationary": {
      "interval": 0,
      "max_frames": {
        "default": null,
        "objects": {}
      },
      "threshold": null
    },
    "width": 1280
  },
  "detectors": {
    "cpu": {
      "device": "usb",
      "num_threads": 3,
      "type": "cpu"
    }
  },
  "environment_vars": {},
  "ffmpeg": {
    "global_args": [
      "-hide_banner",
      "-loglevel",
      "warning"
    ],
    "hwaccel_args": [],
    "input_args": [
      "-avoid_negative_ts",
      "make_zero",
      "-fflags",
      "+genpts+discardcorrupt",
      "-rtsp_transport",
      "tcp",
      "-stimeout",
      "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",
        "copy",
        "-an"
      ],
      "rtmp": [
        "-c",
        "copy",
        "-f",
        "flv"
      ]
    }
  },
  "live": {
    "height": 720,
    "quality": 8
  },
  "logger": {
    "default": "info",
    "logs": {}
  },
  "model": {
    "height": 320,
    "labelmap": {},
    "labelmap_path": null,
    "path": null,
    "width": 320
  },
  "motion": null,
  "mqtt": {
    "client_id": "frigate",
    "host": "10.66.66.240",
    "password": "secure",
    "port": 1883,
    "stats_interval": 60,
    "tls_ca_certs": null,
    "tls_client_cert": null,
    "tls_client_key": null,
    "tls_insecure": null,
    "topic_prefix": "frigate",
    "user": "liquidmosq"
  },
  "objects": {
    "filters": null,
    "mask": "",
    "track": [
      "person"
    ]
  },
  "record": {
    "enabled": false,
    "events": {
      "max_seconds": 300,
      "objects": null,
      "post_capture": 5,
      "pre_capture": 5,
      "required_zones": [],
      "retain": {
        "default": 10,
        "mode": "motion",
        "objects": {}
      }
    },
    "expire_interval": 60,
    "retain": {
      "days": 0,
      "mode": "all"
    },
    "retain_days": null
  },
  "rtmp": {
    "enabled": true
  },
  "snapshots": {
    "bounding_box": true,
    "clean_copy": true,
    "crop": false,
    "enabled": false,
    "height": null,
    "quality": 70,
    "required_zones": [],
    "retain": {
      "default": 10,
      "mode": "motion",
      "objects": {}
    },
    "timestamp": false
  },
  "timestamp_style": {
    "color": {
      "blue": 255,
      "green": 255,
      "red": 255
    },
    "effect": null,
    "format": "%m/%d/%Y %H:%M:%S",
    "position": "tl",
    "thickness": 2
  }
}

Relevant log output

*************************************************************
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2023-01-18 13:51:25] frigate.app                    INFO    : Starting Frigate (0.10.1-83481af)
*************************************************************
*************************************************************
***    Your config file is not valid!                     ***
***    Please check the docs at                           ***
***    https://docs.frigate.video/configuration/index     ***
*************************************************************
*************************************************************
***    Config Validation Errors                           ***
*************************************************************
1 validation error for FrigateConfig
cameras -> Back_Alley -> ffmpeg -> output_args
  none is not an allowed value (type=type_error.none.not_allowed)
Traceback (most recent call last):
  File "/opt/frigate/frigate/app.py", line 312, in start
    self.init_config()
  File "/opt/frigate/frigate/app.py", line 77, in init_config
    user_config = FrigateConfig.parse_file(config_file)
  File "/opt/frigate/frigate/config.py", line 904, in parse_file
    return cls.parse_obj(config)
  File "pydantic/main.py", line 511, in pydantic.main.BaseModel.parse_obj
  File "pydantic/main.py", line 331, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for FrigateConfig
cameras -> Back_Alley -> ffmpeg -> output_args
  none is not an allowed value (type=type_error.none.not_allowed)
*************************************************************
***    End Config Validation Errors                       ***
*************************************************************
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2023-01-18 13:51:32] frigate.app                    INFO    : Starting Frigate (0.10.1-83481af)
Starting migrations
[2023-01-18 13:51:32] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2023-01-18 13:51:32] peewee_migrate                 INFO    : There is nothing to migrate
[2023-01-18 13:51:32] detector.cpu                   INFO    : Starting detection process: 217
[2023-01-18 13:51:32] frigate.app                    INFO    : Output process started: 219
[2023-01-18 13:51:32] frigate.edgetpu                WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
[2023-01-18 13:51:32] ws4py                          INFO    : Using epoll
[2023-01-18 13:51:32] frigate.app                    INFO    : Camera processor started for Front_Garage: 223
[2023-01-18 13:51:32] frigate.app                    INFO    : Camera processor started for Back_Alley: 225
[2023-01-18 13:51:32] frigate.app                    INFO    : Capture process started for Front_Garage: 227
[2023-01-18 13:51:32] frigate.app                    INFO    : Capture process started for Back_Alley: 229
[2023-01-18 13:51:32] ws4py                          INFO    : Using epoll
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2023-01-18 13:51:38] frigate.app                    INFO    : Starting Frigate (0.10.1-83481af)
Starting migrations
[2023-01-18 13:51:38] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2023-01-18 13:51:38] peewee_migrate                 INFO    : There is nothing to migrate
[2023-01-18 13:51:38] detector.cpu                   INFO    : Starting detection process: 217
[2023-01-18 13:51:38] frigate.app                    INFO    : Output process started: 219
[2023-01-18 13:51:38] frigate.edgetpu                WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
[2023-01-18 13:51:38] ws4py                          INFO    : Using epoll
[2023-01-18 13:51:38] frigate.app                    INFO    : Camera processor started for Front_Garage: 223
[2023-01-18 13:51:38] frigate.app                    INFO    : Camera processor started for Back_Alley: 225
[2023-01-18 13:51:38] frigate.app                    INFO    : Capture process started for Front_Garage: 226
[2023-01-18 13:51:38] frigate.app                    INFO    : Capture process started for Back_Alley: 230
[2023-01-18 13:51:38] ws4py                          INFO    : Using epoll
[2023-01-18 13:51:40] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:36114]

FFprobe output from your camera

n/a

Frigate stats

No response

Operating system

Debian

Install method

Docker Compose

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

SONOFF Smart Camera GK-200MP2-B

Any other information that may be helpful

No response

bughattiveyron commented 1 year ago

with the quotes?

I used

rtsp:secure@10.xx.xx.216:554/av_stream/ch0

NickM-27 commented 1 year ago

with the quotes?

I used

rtsp:secure@10.xx.xx.216:554/av_stream/ch0

we would of course expect it to not have audio in VLC. If you update your docker run command to map port 8554 then you can play rtsp://frigate_ip:8554/Back_Alley?video=copy&audio=aac and it should play with audio

NickM-27 commented 1 year ago

and yes I would recommend updating the go2rtc to the config I put above as it is above

bughattiveyron commented 1 year ago
go2rtc:
  streams:
    Back_Alley:
      - "ffmpeg:rtsp://rtsp:secure@10.xx.xx.216:554/av_stream/ch0#video=copy#audio=aac"

Logs

2023-01-19 15:24:58.322593018  [2023-01-19 15:24:58] frigate.app                    INFO    : Starting Frigate (0.12.0-12d51d3)
2023-01-19 15:24:58.352187578  [2023-01-19 15:24:58] peewee_migrate                 INFO    : Starting migrations
2023-01-19 15:24:58.371547938  [2023-01-19 15:24:58] peewee_migrate                 INFO    : There is nothing to migrate
2023-01-19 15:24:58.377648229  [2023-01-19 15:24:58] ws4py                          INFO    : Using epoll
2023-01-19 15:24:58.398189933  [2023-01-19 15:24:58] detector.cpu                   INFO    : Starting detection process: 277
2023-01-19 15:24:58.405342903  [2023-01-19 15:24:58] frigate.app                    INFO    : Output process started: 279
2023-01-19 15:24:58.411403101  [2023-01-19 15:24:58] ws4py                          INFO    : Using epoll
2023-01-19 15:24:58.411817555  [2023-01-19 15:24:58] frigate.detectors              WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2023-01-19 15:24:58.414905543  [2023-01-19 15:24:58] frigate.app                    INFO    : Camera processor started for Front_Garage: 284
2023-01-19 15:24:58.423902914  [2023-01-19 15:24:58] frigate.app                    INFO    : Camera processor started for Back_Alley: 285
2023-01-19 15:24:58.432990230  [2023-01-19 15:24:58] frigate.app                    INFO    : Capture process started for Front_Garage: 287
2023-01-19 15:24:58.442541331  [2023-01-19 15:24:58] frigate.app                    INFO    : Capture process started for Back_Alley: 290
2023-01-19 15:25:02.389487428  [2023-01-19 15:25:02] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:59760]
2023-01-19 15:25:03.116507981  [2023-01-19 15:25:03] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:59760]
2023-01-19 15:25:03.340968932  [2023-01-19 15:25:03] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:59762]
2023-01-19 15:25:03.581631443  [2023-01-19 15:25:03] frigate.video                  ERROR   : Back_Alley: Unable to read frames from ffmpeg process.
2023-01-19 15:25:03.581902863  [2023-01-19 15:25:03] frigate.video                  ERROR   : Back_Alley: ffmpeg process is not running. exiting capture thread...
2023-01-19 15:25:03.934900966  [2023-01-19 15:25:03] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:59762]
2023-01-19 15:25:04.147614515  [2023-01-19 15:25:04] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:59774]
2023-01-19 15:25:04.769362883  [2023-01-19 15:25:04] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:59774]
2023-01-19 15:25:04.956483577  [2023-01-19 15:25:04] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:59778]
2023-01-19 15:25:05.609027634  [2023-01-19 15:25:05] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:59778]
2023-01-19 15:25:06.032181378  [2023-01-19 15:25:06] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:59790]
2023-01-19 15:25:06.452709406  [2023-01-19 15:25:06] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:59790]
2023-01-19 15:25:06.951804590  [2023-01-19 15:25:06] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:59800]
2023-01-19 15:25:12.446395819  [2023-01-19 15:25:12] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:55566]
2023-01-19 15:25:13.033729697  [2023-01-19 15:25:13] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:55566]
2023-01-19 15:25:13.199518875  [2023-01-19 15:25:13] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:55578]
2023-01-19 15:25:15.653810688  [2023-01-19 15:25:15] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:59800]
2023-01-19 15:25:15.838747533  [2023-01-19 15:25:15] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:55580]
2023-01-19 15:25:16.584734932  [2023-01-19 15:25:16] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:59984]
2023-01-19 15:25:18.473104035  [2023-01-19 15:25:18] watchdog.Back_Alley            ERROR   : Ffmpeg process crashed unexpectedly for Back_Alley.
2023-01-19 15:25:18.473307753  [2023-01-19 15:25:18] watchdog.Back_Alley            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-01-19 15:25:18.473479601  [2023-01-19 15:25:18] ffmpeg.Back_Alley.detect       ERROR   : rtsp://127.0.0.1:8554/Back_Alley?video=copy&audio=aac: Invalid data found when processing input
2023-01-19 15:25:23.648983314  [2023-01-19 15:25:23] frigate.video                  ERROR   : Back_Alley: Unable to read frames from ffmpeg process.
2023-01-19 15:25:23.649343023  [2023-01-19 15:25:23] frigate.video                  ERROR   : Back_Alley: ffmpeg process is not running. exiting capture thread...
2023-01-19 15:25:28.528262323  [2023-01-19 15:25:28] watchdog.Back_Alley            ERROR   : Ffmpeg process crashed unexpectedly for Back_Alley.
2023-01-19 15:25:28.528656756  [2023-01-19 15:25:28] watchdog.Back_Alley            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-01-19 15:25:28.528898765  [2023-01-19 15:25:28] ffmpeg.Back_Alley.detect       ERROR   : rtsp://127.0.0.1:8554/Back_Alley?video=copy&audio=aac: Invalid data found when processing input
2023-01-19 15:25:33.674112504  [2023-01-19 15:25:33] frigate.video                  ERROR   : Back_Alley: Unable to read frames from ffmpeg process.
2023-01-19 15:25:33.674122065  [2023-01-19 15:25:33] frigate.video                  ERROR   : Back_Alley: ffmpeg process is not running. exiting capture thread...
2023-01-19 15:25:37.572153613  [2023-01-19 15:25:37] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:59984]
2023-01-19 15:25:38.551835581  [2023-01-19 15:25:38] watchdog.Back_Alley            ERROR   : Ffmpeg process crashed unexpectedly for Back_Alley.
2023-01-19 15:25:38.552485728  [2023-01-19 15:25:38] watchdog.Back_Alley            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-01-19 15:25:38.553062382  [2023-01-19 15:25:38] ffmpeg.Back_Alley.detect       ERROR   : rtsp://127.0.0.1:8554/Back_Alley?video=copy&audio=aac: Invalid data found when processing input
2023-01-19 15:25:39.357073228  [2023-01-19 15:25:39] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:55580]
2023-01-19 15:25:39.930036974  [2023-01-19 15:25:39] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:58010]
2023-01-19 15:25:40.310846901  [2023-01-19 15:25:40] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:58010]
2023-01-19 15:25:40.522846699  [2023-01-19 15:25:40] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:37100]
2023-01-19 15:25:41.032668130  [2023-01-19 15:25:41] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:37100]
2023-01-19 15:25:41.223479366  [2023-01-19 15:25:41] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:37108]
bughattiveyron commented 1 year ago

meant to put in there, its not working at all, just a black box in frigate that says no frames have been received

NickM-27 commented 1 year ago

just fyi you need to use ``` to be able to put stuff into blocks

NickM-27 commented 1 year ago

and I am assuming your camera doesn't have any settings for changing audio codec?

bughattiveyron commented 1 year ago

"I dont see anything in the ewelink app to change audio, all I have is a mute and unmute in the app"

NickM-27 commented 1 year ago

well, apps usually don't have many options for things like that, but if it has a web portal then those usually have more options

bughattiveyron commented 1 year ago

no web portal

AlexxIT commented 1 year ago

Do you have sound when you open the stream from the camera directly in VLC? I have this camera. There is no problem with transcoding to AAC.

boyphongsakorn commented 1 year ago

meant to put in there, its not working at all, just a black box in frigate that says no frames have been received

how to fix that? in my frigate beta5 sometime have a image, sometime is not, is just a black image and says no frames have been received

bughattiveyron commented 1 year ago

Do you have sound when you open the stream from the camera directly in VLC? I have this camera. There is no problem with transcoding to AAC.

I do not have sound when I open the stream in vlc, but the sound does work when I open it in the ewelink app

AlexxIT commented 1 year ago

@boyphongsakorn so maybe your camera not provide any sound via RTSP. I have very old firmware and all works fine. If you can't get sound in VLC with direct link - Frigate can't do anything with it. You need to write to ewelink support.

bughattiveyron commented 1 year ago

@boyphongsakorn so maybe your camera not provide any sound via RTSP. I have very old firmware and all works fine. If you can't get sound in VLC with direct link - Frigate can't do anything with it. You need to write to ewelink support.

So I just bought it a month ago, it is a GK-200MP2-B with current version being 41120220811. What is your camera and version, also is there anyway to downgrade?

bughattiveyron commented 1 year ago

Well you can close this ticket, after looking at the firmware, I noticed it had an update. I ran it and now it works fine with standard config file.

AlexxIT commented 1 year ago

41220220712