Trying to get audio working with frigate from tapo camers

Trying to get audio working with frigate from tapo camers

I’ve managed to get video feed from my tapo cameras into HA by way of frigate, however it doesn’t matter what I attempt I can’t get audio within the streams

mqtt:
  enabled: true
  host: core-mosquitto
  port: 1883
  person: REDACTED
  password: REDACTED
  
#detectors:
#  coral:
#    sort: edgetpu
#    system: pci

go2rtc:
  streams:
    lucas_hd:
     - rtsp://rtspstream:[email protected]:554/stream1
     - "ffmpeg:lucas_hd#audio=aac"
     #- tapo://[email protected]
    lucas_sd:
     - rtsp://rtspstream:[email protected]:554/stream2
     - "ffmpeg:lucas_sd#audio=aac"

objects:
  observe:
    - particular person
    - cat
    
cameras:
  lucas_camera:
    enabled: True
    ffmpeg:
      output_args:
        document: preset-record-generic-audio-copy
      inputs:
        - path: rtsp://127.0.0.1:8554/lucas_hd
          input_args: preset-rtsp-restream
          roles:
            - document
            #- audio
        - path: rtsp://127.0.0.1:8554/lucas_sd
          input_args: preset-rtsp-restream
          roles:
            - detect
    # audio:
    #   enabled: True
    #   pay attention:
    #     - crying
    #     - fire_alarm
    #     - scream
    #     - yell
    #     - groan
    #     - wheeze
    #     - sneeze
    #     - smoke_detector
    #     - breaking
    #     - smash
    #     - fart
    detect:
      enabled: True
    document:
      enabled: True
    snapshots:
      enabled: True
    stay:
      stream_name: lucas_hd

My go2rtc steam data is like this

{
  "producers": [
    {
      "type": "RTSP active producer",
      "url": "rtsp://192.168.0.152:554/stream1/",
      "remote_addr": "192.168.0.152:554",
      "user_agent": "go2rtc/1.8.4",
      "sdp": "REMOVED FOR BREVITY",
      "medias": [
        "video, recvonly, H.264 Main 5.0",
        "audio, recvonly, PCMA/8000"
      ],
      "receivers": [
        "96 H264, bytes=636730344, senders=1",
        "8 PCMA/8000, bytes=97463936, senders=1"
      ],
      "recv": 743774828
    },
    {
      "sort": "RTSP passive producer",
      "url": "rtsp://127.0.0.1:8554/5a4985bb6269ea6056d31a03f187227e",
      "remote_addr": "127.0.0.1:40682",
      "user_agent": "ffmpeg/go2rtc",
      "sdp": "REMOVED FOR BREVITY",
      "medias": [
        "audio, recvonly, MPEG4-GENERIC/8000"
      ],
      "receivers": [
        "96 MPEG4-GENERIC/8000, bytes=2037181, senders=1"
      ],
      "recv": 2237633
    }
  ],
  "shoppers": [
    {
      "type": "RTSP passive consumer",
      "url": "rtsp://127.0.0.1:8554/lucas_hd?audio",
      "remote_addr": "127.0.0.1:40670",
      "user_agent": "go2rtc/ffmpeg",
      "sdp": "REMOVED FOR BREVITY",
      "medias": [
        "audio, sendonly, ANY"
      ],
      "senders": [
        "96 PCMA/8000, bytes=97463936, receivers=1"
      ],
      "ship": 100582784
    },
    {
      "sort": "RTSP passive shopper",
      "url": "rtsp://127.0.0.1:8554/lucas_hd",
      "remote_addr": "127.0.0.1:40664",
      "user_agent": "FFmpeg Frigate/0.13.2-6476f8a",
      "sdp": "REMOVED FOR BREVITY",
      "medias": [
        "video, sendonly, H264, H265",
        "audio, sendonly, MPEG4-GENERIC"
      ],
      "senders": [
        "96 H264, bytes=636730344, receivers=1",
        "97 MPEG4-GENERIC/8000, bytes=2037181, receivers=1"
      ],
      "ship": 648369200
    }
  ]
}

Really unsure what else to attempt, please assist

1 publish – 1 participant

Read full subject

HI-FI News

by way of Home Assistant Community – Latest subjects https://ift.tt/eFbgusK

May 12, 2024 at 08:24PM