blakeblackshear / frigate

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

[Config Support]: Doorbird go2rtc audio #7403

Closed Forsskieken closed 1 year ago

Forsskieken commented 1 year ago

Describe the problem you are having

I'm trying to integrate a Doorbird camera into the workflow. In a Ideal world I could open the door and speak back.

I installed the latest go2rtc (1.6.2) on my ubuntu Desktop machine and started twinkering. This is my go2rtc config file:

    doorbirdaudio: exec:ffmpeg -f mulaw -ar 8000 -i http://user:passwd@192.168.1.31/bha-api/audio-receive.cgi -f rtsp {output}
    camera.gate:
      - rtsp://user:passwd@192.168.1.31/mpeg/media.amp
      - ffmpeg:doorbirdaudio#audio=copy
 This configuration gives image and sound (mse) 

Version

0.12.1-367d724

Frigate config file

mqtt:
  enabled: False

detectors:
   coral:
    type: edgetpu
    device: pci

  # enable audio
  #output_args: 
  #  record: preset-record-generic-audio-aac

rtmp:
  enabled: false

go2rtc:
  streams:
    Wachtkamer:
      - rtsp://user:passwd@192.168.4.33:554/h264Preview_01_main
    Gang:
      - rtsp://user:passwd@192.168.4.34:554/h264Preview_01_main
#    Tuin:
#      - rtsp://user:passwd@192.168.4.35:554/h264Preview_01_main
#    doorbirdaudio:
#      - exec:ffmpeg -f mulaw -ar 8000 -i http://user:passwd@192.168.1.31/bha-api/audio-receive.cgi -f rtsp {output}
#    Voordeur:
#      - rtsp://user:passwd@192.168.1.31/mpeg/media.amp
#      - ffmpeg:doorbirdaudio#audio=copy
cameras:
  Wachtkamer:
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
        - path: rtsp://127.0.0.1:8554/Wachtkamer?video=copy # <--- the name here must match the name of the camera in restream
          input_args: preset-rtsp-restream
          roles:
            - record
            - detect
  Gang:
    ffmpeg:
      output_args:
        record: preset-record-generic-audio-copy
      inputs:
        - path: rtsp://127.0.0.1:8554/Gang # <--- the name here must match the name of the camera in restream
          input_args: preset-rtsp-restream
          roles:
            - record
            - detect
#  Tuin:
#    ffmpeg:
#      output_args:
#        record: preset-record-generic-audio-copy
#      inputs:
#        - path: rtsp://127.0.0.1:8554/Tuin # <--- the name here must match the name of the camera in restream
#          input_args: preset-rtsp-restream
#          roles:
#            - record
#            - detect
  Voordeur:
    ffmpeg:
      inputs:
        - path: rtsp://user:passwd@192.168.1.31:554/mpeg/media.amp
          roles:
            - detect
            - record
    detect:
      width: 1280
      height: 720
      fps: 5
    motion:
      mask:
        - 539,720,0,720,0,0,506,0
        - 1280,533,1280,73,1280,0,644,0,645,341
    zones:
      Ingang:
        coordinates: 774,575,788,623,816,663,854,720,548,720,388,720,361,310,630,334,658,519,700,510
      Voetpad:
        coordinates: 711,516,680,379,855,377,1280,486,1280,720,1091,720,840,720
    objects:
      track:
        - person
        - car
        - bicycle
        - dog
        - cat
      filters:
        person:
          threshold: 0.8
        car:
          threshold: 0.8
        dog:
          threshold: 0.8
        cat:
          threshold: 0.8
    snapshots:
      enabled: true
      timestamp: true
      required_zones:
        - entrance
        - driveway
      bounding_box: true
      retain:
        default: 7
    record:
      enabled: true
      retain:
        days: 3
        mode: all # 24/7 recording for 3 days
      events:
        #pre_capture: 5
        #post_capture: 5
        objects:
          - person
          - cat
          - dog
          - bottle
        required_zones:
          - entrance
          - driveway
        retain:
          default: 7
          objects:
            cat: 3
            dog: 3

Relevant log output

FRIGATE LOGS:
2023-08-06 13:54:04.521546208  [INFO] Starting Frigate...
2023-08-06 13:54:05.649120035  [2023-08-06 13:54:05] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-08-06 13:54:05.690710409  [2023-08-06 13:54:05] peewee_migrate                 INFO    : Starting migrations
2023-08-06 13:54:05.696569699  [2023-08-06 13:54:05] peewee_migrate                 INFO    : There is nothing to migrate
2023-08-06 13:54:05.713102964  [2023-08-06 13:54:05] frigate.app                    INFO    : Output process started: 1219
2023-08-06 13:54:05.713556390  [2023-08-06 13:54:05] detector.coral                 INFO    : Starting detection process: 1218
2023-08-06 13:54:05.717854140  [2023-08-06 13:54:05] frigate.app                    INFO    : Camera processor started for Wachtkamer: 1224
2023-08-06 13:54:05.723063768  [2023-08-06 13:54:05] frigate.app                    INFO    : Camera processor started for Gang: 1226
2023-08-06 13:54:05.728294251  [2023-08-06 13:54:05] frigate.app                    INFO    : Camera processor started for Voordeur: 1227
2023-08-06 13:54:05.733411456  [2023-08-06 13:54:05] frigate.app                    INFO    : Capture process started for Wachtkamer: 1229
2023-08-06 13:54:05.738646727  [2023-08-06 13:54:05] frigate.app                    INFO    : Capture process started for Gang: 1232
2023-08-06 13:54:05.744585189  [2023-08-06 13:54:05] frigate.app                    INFO    : Capture process started for Voordeur: 1236
2023-08-06 13:54:05.756730483  [2023-08-06 13:54:05] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as pci
2023-08-06 13:54:05.763275061  [2023-08-06 13:54:05] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
GO2RTC LOGS:
2023-08-06 13:54:04.515698210  [INFO] Preparing go2rtc config...
2023-08-06 13:54:04.747901676  [INFO] Starting go2rtc...
2023-08-06 13:54:04.827640710  13:54:04.827 INF go2rtc version 1.2.0 linux/amd64
2023-08-06 13:54:04.828151305  13:54:04.828 INF [api] listen addr=:1984
2023-08-06 13:54:04.828712778  13:54:04.828 INF [rtsp] listen addr=:8554
2023-08-06 13:54:04.829277012  13:54:04.829 INF [srtp] listen addr=:8443
2023-08-06 13:54:04.829869063  13:54:04.829 INF [webrtc] listen addr=:8555
2023-08-06 13:54:14.518630521  [INFO] Starting go2rtc healthcheck service...

THIS IS THE LOG AFTER UNCOMMENTING THE doorbirdaudio en voordeur entry in the GO2RTC SECTION

2023-08-06 14:01:00.813868253  [INFO] Starting Frigate...
2023-08-06 14:01:01.960423495  [2023-08-06 14:01:01] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-08-06 14:01:02.002961036  [2023-08-06 14:01:02] peewee_migrate                 INFO    : Starting migrations
2023-08-06 14:01:02.008719150  [2023-08-06 14:01:02] peewee_migrate                 INFO    : There is nothing to migrate
2023-08-06 14:01:02.025743917  [2023-08-06 14:01:02] frigate.app                    INFO    : Output process started: 1214
2023-08-06 14:01:02.026137491  [2023-08-06 14:01:02] detector.coral                 INFO    : Starting detection process: 1213
2023-08-06 14:01:02.031078438  [2023-08-06 14:01:02] frigate.app                    INFO    : Camera processor started for Wachtkamer: 1219
2023-08-06 14:01:02.037938595  [2023-08-06 14:01:02] frigate.app                    INFO    : Camera processor started for Gang: 1221
2023-08-06 14:01:02.045658490  [2023-08-06 14:01:02] frigate.app                    INFO    : Camera processor started for Voordeur: 1222
2023-08-06 14:01:02.052017199  [2023-08-06 14:01:02] frigate.app                    INFO    : Capture process started for Wachtkamer: 1224
2023-08-06 14:01:02.059860838  [2023-08-06 14:01:02] frigate.app                    INFO    : Capture process started for Gang: 1227
2023-08-06 14:01:02.064624477  [2023-08-06 14:01:02] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as pci
2023-08-06 14:01:02.066067743  [2023-08-06 14:01:02] frigate.app                    INFO    : Capture process started for Voordeur: 1237
2023-08-06 14:01:02.071113615  [2023-08-06 14:01:02] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2023-08-06 14:01:02.119111223  [2023-08-06 14:01:02] frigate.video                  ERROR   : Wachtkamer: Unable to read frames from ffmpeg process.
2023-08-06 14:01:02.119318160  [2023-08-06 14:01:02] frigate.video                  ERROR   : Wachtkamer: ffmpeg process is not running. exiting capture thread...
2023-08-06 14:01:02.119443437  [2023-08-06 14:01:02] frigate.video                  ERROR   : Gang: Unable to read frames from ffmpeg process.
2023-08-06 14:01:02.119947786  [2023-08-06 14:01:02] frigate.video                  ERROR   : Gang: ffmpeg process is not running. exiting capture thread...
2023-08-06 14:01:22.120596656  [2023-08-06 14:01:22] watchdog.Wachtkamer            ERROR   : Ffmpeg process crashed unexpectedly for Wachtkamer.
2023-08-06 14:01:22.120866963  [2023-08-06 14:01:22] watchdog.Gang                  ERROR   : Ffmpeg process crashed unexpectedly for Gang.
2023-08-06 14:01:22.120871215  [2023-08-06 14:01:22] watchdog.Wachtkamer            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-06 14:01:22.120998882  [2023-08-06 14:01:22] watchdog.Gang                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-06 14:01:22.121122592  [2023-08-06 14:01:22] ffmpeg.Wachtkamer.detect       ERROR   : [tcp @ 0x56487a81de40] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
2023-08-06 14:01:22.121281748  [2023-08-06 14:01:22] ffmpeg.Gang.detect             ERROR   : [tcp @ 0x5648b5fd6e40] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
2023-08-06 14:01:22.121337824  [2023-08-06 14:01:22] ffmpeg.Gang.detect             ERROR   : rtsp://127.0.0.1:8554/Gang: Connection refused
2023-08-06 14:01:22.126067638  [2023-08-06 14:01:22] ffmpeg.Wachtkamer.detect       ERROR   : rtsp://127.0.0.1:8554/Wachtkamer?video=copy: Connection refused
2023-08-06 14:01:22.136936916  [2023-08-06 14:01:22] frigate.video                  ERROR   : Wachtkamer: Unable to read frames from ffmpeg process.
2023-08-06 14:01:22.137156599  [2023-08-06 14:01:22] frigate.video                  ERROR   : Wachtkamer: ffmpeg process is not running. exiting capture thread...
2023-08-06 14:01:22.137665926  [2023-08-06 14:01:22] frigate.video                  ERROR   : Gang: Unable to read frames from ffmpeg process.
2023-08-06 14:01:22.137886172  [2023-08-06 14:01:22] frigate.video                  ERROR   : Gang: ffmpeg process is not running. exiting capture thread...
2023-08-06 14:01:32.132011222  [2023-08-06 14:01:32] watchdog.Gang                  ERROR   : Ffmpeg process crashed unexpectedly for Gang.
2023-08-06 14:01:32.132017072  [2023-08-06 14:01:32] watchdog.Gang                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-06 14:01:32.132019314  [2023-08-06 14:01:32] ffmpeg.Gang.detect             ERROR   : [tcp @ 0x55d0c749ae40] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
2023-08-06 14:01:32.132024860  [2023-08-06 14:01:32] ffmpeg.Gang.detect             ERROR   : rtsp://127.0.0.1:8554/Gang: Connection refused
2023-08-06 14:01:32.141322133  [2023-08-06 14:01:32] watchdog.Wachtkamer            ERROR   : Ffmpeg process crashed unexpectedly for Wachtkamer.
2023-08-06 14:01:32.141331073  [2023-08-06 14:01:32] watchdog.Wachtkamer            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-06 14:01:32.141335147  [2023-08-06 14:01:32] ffmpeg.Wachtkamer.detect       ERROR   : [tcp @ 0x55af6056be40] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused

This is the log from GO2RTC

2023-08-06 14:01:00.807762276  [INFO] Preparing go2rtc config...
2023-08-06 14:01:01.111313068  [INFO] The go2rtc service exited with code 1 (by signal 0)
2023-08-06 14:01:02.120593897  [INFO] Preparing go2rtc config...
2023-08-06 14:01:02.335613248  [INFO] The go2rtc service exited with code 1 (by signal 0)
2023-08-06 14:01:03.345890650  [INFO] Preparing go2rtc config...
2023-08-06 14:01:03.573604435  [INFO] The go2rtc service exited with code 1 (by signal 0)
2023-08-06 14:01:04.583452538  [INFO] Preparing go2rtc config...
2023-08-06 14:01:04.823141429  [INFO] The go2rtc service exited with code 1 (by signal 0)
2023-08-06 14:01:05.832604681  [INFO] Preparing go2rtc config...
2023-08-06 14:01:06.055910316  [INFO] The go2rtc service exited with code 1 (by signal 0)

Frigate stats

No response

Operating system

Proxmox

Install method

Docker Compose

Coral version

PCIe

Any other information that may be helpful

I think it has to do with the go2rtc version. In frigate it's 1.2.0 and on my desktop it's v1.6.2 - 2023-07-20

Forsskieken commented 1 year ago

So I found in the manual: To do this:

Download the go2rtc build to the /config folder.
Rename the build to go2rtc.
Give go2rtc execute permission.
Restart Frigate and the custom version will be used, you can verify by checking go2rtc logs.

So in /frigate/config I did: curl -OLv https://github.com/AlexxIT/go2rtc/releases/download/v1.6.2/go2rtc_linux_amd64

I renamed to go2rtc and made sure that it was executable...

Unfortuantely frigate keeps using 1.2.0

NickM-27 commented 1 year ago

Your docker compose probably hasn't been updated to pass the entire config directory to frigate

Forsskieken commented 1 year ago

I do this to start: docker compose -f docker-compose.yml up -d --force-recreate --remove-orphans

NickM-27 commented 1 year ago

I am referring to the docker compose config

Forsskieken commented 1 year ago

frigate: container_name: frigate privileged: true restart: unless-stopped image: ghcr.io/blakeblackshear/frigate:stable cap_add:

NickM-27 commented 1 year ago

- /root/frigate/config/config.yml:/config/config.yml should be - /root/frigate/config/:/config/

Forsskieken commented 1 year ago

That was my error, many thanks

NickM-27 commented 1 year ago

So is it all working now?

Forsskieken commented 1 year ago

No helas... 2023-08-06 20:42:27.715607352 [INFO] Preparing go2rtc config... 2023-08-06 20:42:27.956092856 [INFO] The go2rtc service exited with code 1 (by signal 0) 2023-08-06 20:42:28.967875396 [INFO] Preparing go2rtc config... 2023-08-06 20:42:29.184637377 [INFO] The go2rtc service exited with code 1 (by signal 0) 2023-08-06 20:42:30.194112836 [INFO] Preparing go2rtc config... 2023-08-06 20:42:30.421751573 [INFO] The go2rtc service exited with code 1 (by signal 0)

go2rtc is 1.6.2 checked but gives errors and crashes.. hence no camera has go2rtc

NickM-27 commented 1 year ago

Maybe the wrong architecture was downloaded or it does not like the config for some reason

Forsskieken commented 1 year ago

Thanks for the advice: curl -OLv https://github.com/AlexxIT/go2rtc/releases/download/v1.6.2/go2rtc_linux_amd64 is for my Proxmox The config was copied over from the desktop go2rtc where it worked..

Forsskieken commented 1 year ago

Hi There,

I found an old stil working command from myself in reddit. ffmpeg -f mulaw -ar 8000 -i http://user0001:password@192.168.1.31/bha-api/audio-receive.cgi -f avi - | ffplay -

This command in a linux shell produces sound from the doorbird. It doesn't work in a standalone go2rtc in my linux ubuntu desktop or in the frigate go2rtc (1.6.2) version. go2rtc crashes.

NickM-27 commented 1 year ago

are you just trying to get audio for live views?

Forsskieken commented 1 year ago

I investigated this for several hours, hence my mistake in posting it in the go2rtc github section.

I posted it because of what I think is a bug. After several tries I'm quit sure the stream config is the same. As stated: go2rtc 1.6.2 on ubuntu 23.01 standalone desktop

  streams:
    Wachtkamer:
      - rtsp://user:password@192.168.4.33:554/h264Preview_01_main

    #Voordeur:
    #  - rtsp://user:password@192.168.1.31:554/mpeg/media.amp

    doorbirdaudio: exec:ffmpeg -f mulaw -ar 8000 -i http://user:password@192.168.1.31/bha-api/audio-receive.cgi -f rtsp {output}
    voordeur:
      - rtsp://user:password@192.168.1.31/mpeg/media.amp
      - ffmpeg:doorbirdaudio#

even the variation with ffplay works, albeit a second window opens where the audio is in a spectogram displayed but also heared. doorbirdaudio: exec:ffplay -f mulaw -ar 8000 -i http://user:password@192.168.1.31/bha-api/audio-receive.cgi

go2rtc 1.6.2 in Frigate

 go2rtc:
  streams:
    Draagbare:
    - rtsp://user:password@192.168.4.37/Streaming/Channels/101
    Draagbare_sub: rtsp://user:password@192.168.4.37/Streaming/Channels/102
    Gang:
    - rtsp://user:password@192.168.4.34:554/h264Preview_01_main
    Voordeur:
    - rtsp://user:password@192.168.1.31/mpeg/media.amp
    - ffmpeg:doorbirdaudio#audio=copy
    Wachtkamer:
    - rtsp://user:password@192.168.4.33:554/h264Preview_01_main
    #doorbirdaudio: exec:ffmpeg -f mulaw -ar 8000 -i http://user:password@192.168.1.31/bha-api/audio-receive.cgi -f rtsp {output}
  webrtc:
    candidates:
    - stun:8555  

The doorbirdaudio stream is disabled hence no audio. When I enable this streaam ffmpeg and go2rtc crashes

With disable doorbirdaudio stream I go to: System -> go2rtc dashboard

go2rtc 1.6.2 in dashboard (http://192.168.1.39:5000/live/webrtc/)

api:
  origin: '*'
log:
  format: text
rtsp:
  default_query: mp4
streams:
  Draagbare:
  - rtsp://user:password@192.168.4.37/Streaming/Channels/101
  Draagbare_sub: rtsp://user:password@192.168.4.37/Streaming/Channels/102
  Gang:
  - rtsp://user:password@192.168.4.34:554/h264Preview_01_main
  Voordeur:
  - rtsp://user:password@192.168.1.31/mpeg/media.amp
  - ffmpeg:doorbirdaudio#audio=copy
  Wachtkamer:
  - rtsp://auser:password@192.168.4.33:554/h264Preview_01_main
webrtc:
  candidates:
  - stun:8555 

add this line:

#doorbirdaudio: exec:ffmpeg -f mulaw -ar 8000 -i http://user:password@192.168.1.31/bha-api/audio-receive.cgi -f rtsp {output}

save and restart -> choose streams and http://192.168.1.39:5000/live/webrtc/stream.html?src=Voordeur is Video and sound

In Frigate I can't use ffplay path not found error

How can I investigate this further?

NickM-27 commented 1 year ago

It doesn't seem like this is necessary, if you want PCMU audio for the doorbird it would be as simple as

Voordeur:
  - rtsp://user:password@192.168.1.31/mpeg/media.amp
  - ffmpeg:Voordeur#audio=pcmu
Forsskieken commented 1 year ago

This doen't work unfortunately:


Voordeur:
  - rtsp://user:password@192.168.1.31/mpeg/media.amp
  - ffmpeg:Voordeur#audio=pcmu

As I recal the rtsp://user:password@192.168.1.31/mpeg/media.amp doesn't contain any audio

doorbirdaudio: exec:ffmpeg -f mulaw -ar 8000 -i http://user:password@192.168.1.31/bha-api/audio-receive.cgi -f rtsp {output}

Is the line that make de go2rtc play sound, but not when put in the Frigate config.

ffplay rtsp://user:password@192.168.1.31/mpeg/media.amp produces this in console:

  Input #0, rtsp, from 'rtsp://user@password@192.168.1.31/mpeg/media.amp':
  Metadata:
    title           : RTSP/RTP stream from DoorBird
    comment         : mpeg/720p/media.amp
  Duration: N/A, start: 0.097311, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x720, 9.92 tbr, 90k tbn

And the live feed of course

ffplay -f mulaw -ar 8000 -i http://user:password@192.168.1.31/bha-api/audio-receive.cgi

Produces this in console


[mulaw @ 0x7f8b58000c80] Estimating duration from bitrate, this may be inaccurate
Input #0, mulaw, from 'http://user:password@192.168.1.31/bha-api/audio-receive.cgi':
  Duration: 00:20:50.00, bitrate: 64 kb/s
  Stream #0:0: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s
  15.04 M-A:  0.000 fd=   0 aq=    8KB vq=    0KB sq=    0B f=0/0   

and it plays sounds

NickM-27 commented 1 year ago

I see, that makes sense. We'll need to see the logs from go2rtc when using the audio config as it is above.

Forsskieken commented 1 year ago

This is the log after I changed the config in Frigate go2rtc: There's also a 2 hour time delay Brussels is zulu+2

2023-08-07 20:31:10.510375717 [WARN] Using go2rtc binary from '/config/go2rtc' instead of the embedded one 2023-08-07 20:31:10.510381208 [INFO] Starting go2rtc... 2023-08-07 20:31:10.595218791 20:31:10.595 INF go2rtc version 1.6.2 linux/amd64 2023-08-07 20:31:10.595339318 20:31:10.595 TRC [api] register path path=/ 2023-08-07 20:31:10.595355981 20:31:10.595 TRC [api] register path path=/api 2023-08-07 20:31:10.595374158 20:31:10.595 TRC [api] register path path=/api/config 2023-08-07 20:31:10.595396817 20:31:10.595 TRC [api] register path path=/api/exit 2023-08-07 20:31:10.595742837 20:31:10.595 INF [api] listen addr=0.0.0.0:1984 2023-08-07 20:31:10.595915039 20:31:10.595 TRC [api] register path path=/api/ws 2023-08-07 20:31:10.596109828 20:31:10.596 TRC [api] register path path=/api/streams 2023-08-07 20:31:10.596304148 20:31:10.596 INF [rtsp] listen addr=0.0.0.0:8554 2023-08-07 20:31:10.596526876 20:31:10.596 INF [webrtc] listen addr=0.0.0.0:8555/tcp 2023-08-07 20:31:10.596660483 20:31:10.596 TRC [api] register path path=/api/webrtc 2023-08-07 20:31:10.596663626 20:31:10.596 TRC [api] register path path=/api/frame.mp4 2023-08-07 20:31:10.596665352 20:31:10.596 TRC [api] register path path=/api/stream.mp4 2023-08-07 20:31:10.596666890 20:31:10.596 TRC [api] register path path=/api/stream.m3u8 2023-08-07 20:31:10.596686212 20:31:10.596 TRC [api] register path path=/api/hls/playlist.m3u8 2023-08-07 20:31:10.596687901 20:31:10.596 TRC [api] register path path=/api/hls/segment.ts 2023-08-07 20:31:10.596696131 20:31:10.596 TRC [api] register path path=/api/hls/init.mp4 2023-08-07 20:31:10.596832877 20:31:10.596 TRC [api] register path path=/api/hls/segment.m4s 2023-08-07 20:31:10.596836003 20:31:10.596 TRC [api] register path path=/api/frame.jpeg 2023-08-07 20:31:10.596837665 20:31:10.596 TRC [api] register path path=/api/stream.mjpeg 2023-08-07 20:31:10.596958232 20:31:10.596 TRC [api] register path path=/static 2023-08-07 20:31:10.596972463 20:31:10.596 TRC [api] register path path=/streams 2023-08-07 20:31:10.596989038 20:31:10.596 TRC [api] register path path=/stream/ 2023-08-07 20:31:10.597039750 20:31:10.597 DBG [hass] can't import config: open .storage/core.config_entries: no such file or directory 2023-08-07 20:31:10.597057651 20:31:10.597 TRC [api] register path path=/api/hass 2023-08-07 20:31:10.597059570 20:31:10.597 TRC [api] register path path=/onvif/ 2023-08-07 20:31:10.597086498 20:31:10.597 TRC [api] register path path=/api/onvif 2023-08-07 20:31:10.597214277 20:31:10.597 TRC [api] register path path=/api/webtorrent 2023-08-07 20:31:10.597233113 20:31:10.597 TRC [api] register path path=/api/stream.flv 2023-08-07 20:31:10.597363684 20:31:10.597 TRC [api] register path path=/api/ffmpeg/devices 2023-08-07 20:31:10.597385420 20:31:10.597 TRC [api] register path path=/api/ffmpeg/hardware 2023-08-07 20:31:10.597413273 20:31:10.597 TRC [api] register path path=/api/dvrip 2023-08-07 20:31:10.597462563 20:31:10.597 TRC [api] register path path=/api/stream.ts 2023-08-07 20:31:10.597476643 20:31:10.597 TRC [api] register path path=/api/roborock 2023-08-07 20:31:10.597494556 20:31:10.597 TRC [api] register path path=/api/homekit 2023-08-07 20:31:10.597512731 20:31:10.597 TRC [api] register path path=/api/nest 2023-08-07 20:31:10.597772667 20:31:10.597 INF [srtp] listen addr=0.0.0.0:8443 2023-08-07 20:31:10.597796961 20:31:10.597 TRC [api] register path path=/api/stack 2023-08-07 20:31:12.095217440 20:31:12.095 TRC [api] GET / 127.0.0.1:40892 2023-08-07 20:31:12.118286076 20:31:12.118 TRC [api] GET /main.js 127.0.0.1:40892 2023-08-07 20:31:12.121166707 20:31:12.120 TRC [api] GET /api 127.0.0.1:40892 2023-08-07 20:31:12.124139586 20:31:12.124 TRC [api] GET /api/streams 127.0.0.1:40892 2023-08-07 20:31:16.157145606 20:31:16.157 TRC [api] GET /api/ws?src=Voordeur 127.0.0.1:40908 2023-08-07 20:31:16.173225418 20:31:16.173 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://127.0.0.1:8554/doorbirdaudio?audio -c:a pcm_mulaw -ar:a 8000 -ac:a 1 -vn -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}" 2023-08-07 20:31:16.180189688 20:31:16.180 DBG [exec] run url="exec:ffmpeg -f mulaw -ar 8000 -i http://user:password@192.168.1.31/bha-api/audio-receive.cgi -f rtsp {output}" 2023-08-07 20:31:16.184199890 ffmpeg version n5.1-2-g915ef932a3-20220731 Copyright (c) 2000-2022 the FFmpeg developers 2023-08-07 20:31:16.184237286 built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b) 2023-08-07 20:31:16.184297774 configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731 2023-08-07 20:31:16.184377166 libavutil 57. 28.100 / 57. 28.100 2023-08-07 20:31:16.184398292 libavcodec 59. 37.100 / 59. 37.100 2023-08-07 20:31:16.184414721 libavformat 59. 27.100 / 59. 27.100 2023-08-07 20:31:16.184440282 libavdevice 59. 7.100 / 59. 7.100 2023-08-07 20:31:16.184458763 libavfilter 8. 44.100 / 8. 44.100 2023-08-07 20:31:16.184476643 libswscale 6. 7.100 / 6. 7.100 2023-08-07 20:31:16.184508962 libswresample 4. 7.100 / 4. 7.100 2023-08-07 20:31:16.184528287 libpostproc 56. 6.100 / 56. 6.100 2023-08-07 20:31:16.282032108 20:31:16.281 TRC [api] GET /stream.html?src=Voordeur 127.0.0.1:40892 2023-08-07 20:31:16.307784911 20:31:16.307 TRC [api] GET /video-stream.js 127.0.0.1:40892 2023-08-07 20:31:16.313201205 20:31:16.313 TRC [api] GET /video-rtc.js 127.0.0.1:40892 2023-08-07 20:31:16.326820548 20:31:16.326 TRC [api] GET /api/ws?src=Voordeur 127.0.0.1:40924 2023-08-07 20:31:18.239451663 [mulaw @ 0x5601e7a34900] Estimating duration from bitrate, this may be inaccurate 2023-08-07 20:31:18.239568993 Guessed Channel Layout for Input Stream #0.0 : mono 2023-08-07 20:31:18.239571396 Input #0, mulaw, from 'http://user:password@192.168.1.31/bha-api/audio-receive.cgi': 2023-08-07 20:31:18.239581210 Duration: 00:20:50.00, bitrate: 64 kb/s 2023-08-07 20:31:18.239600293 Stream #0:0: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s 2023-08-07 20:31:18.240194724 Stream mapping: 2023-08-07 20:31:18.240197681 Stream #0:0 -> #0:0 (pcm_mulaw (native) -> aac (native)) 2023-08-07 20:31:18.240199068 Press [q] to stop, [?] for help 2023-08-07 20:31:18.250310913 [aac @ 0x5601e7a5ff80] Too many bits 8832.000000 > 6144 per frame requested, clamping to max 2023-08-07 20:31:18.296420642 [rtsp @ 0x5601e7a5afc0] method SETUP failed: 461 Unsupported transport 2023-08-07 20:31:18.297180866 20:31:18.297 DBG [exec] run launch=2.116893774s 2023-08-07 20:31:18.297231056 Output #0, rtsp, to 'rtsp://127.0.0.1:8554/571c5f0a4a2ab874424c60532280beb0': 2023-08-07 20:31:18.297233065 Metadata: 2023-08-07 20:31:18.297234570 encoder : Lavf59.27.100 2023-08-07 20:31:18.297273768 Stream #0:0: Audio: aac (LC), 8000 Hz, mono, fltp, 48 kb/s 2023-08-07 20:31:18.297290666 Metadata: 2023-08-07 20:31:18.297292208 encoder : Lavc59.37.100 aac 2023-08-07 20:31:18.388467606 size=N/A time=00:00:00.00 bitrate=N/A speed= 0x
20:31:18.388 DBG [exec] run launch=2.215172643s 2023-08-07 20:31:30.501622877 size=N/A time=00:00:02.30 bitrate=N/A speed=4.36x
size=N/A time=00:00:02.81 bitrate=N/A speed=2.69x
size=N/A time=00:00:03.32 bitrate=N/A speed=2.14x
size=N/A time=00:00:03.84 bitrate=N/A speed=1.85x
size=N/A time=00:00:04.35 bitrate=N/A speed=1.66x
size=N/A time=00:00:04.86 bitrate=N/A speed=1.56x
size=N/A time=00:00:05.37 bitrate=N/A speed=1.48x
size=N/A time=00:00:05.88 bitrate=N/A speed=1.41x
size=N/A time=00:00:06.40 bitrate=N/A speed=1.36x
size=N/A time=00:00:06.91 bitrate=N/A speed=1.32x
size=N/A time=00:00:07.42 bitrate=N/A speed=1.29x
size=N/A time=00:00:08.06 bitrate=N/A speed=1.28x
size=N/A time=00:00:08.57 bitrate=N/A speed=1.26x
size=N/A time=00:00:09.08 bitrate=N/A speed=1.23x
size=N/A time=00:00:09.60 bitrate=N/A speed=1.22x
size=N/A time=00:00:10.11 bitrate=N/A speed= 1.2x
size=N/A time=00:00:10.62 bitrate=N/A speed=1.19x
size=N/A time=00:00:11.13 bitrate=N/A speed=1.18x
size=N/A time=00:00:11.64 bitrate=N/A speed=1.17x
size=N/A time=00:00:12.16 bitrate=N/A speed=1.16x
size=N/A time=00:00:12.67 bitrate=N/A speed=1.15x
size=N/A time=00:00:13.18 bitrate=N/A speed=1.14x
size=N/A time=00:00:13.82 bitrate=N/A speed=1.15x
20:31:30.501 TRC [api] GET /api/streams 127.0.0.1:58740 2023-08-07 20:32:00.516022144 size=N/A time=00:00:14.33 bitrate=N/A speed=1.14x
size=N/A time=00:00:14.84 bitrate=N/A speed=1.14x
size=N/A time=00:00:15.36 bitrate=N/A speed=1.13x
size=N/A time=00:00:15.87 bitrate=N/A speed=1.12x
size=N/A time=00:00:16.38 bitrate=N/A speed=1.12x
size=N/A time=00:00:16.89 bitrate=N/A speed=1.11x
size=N/A time=00:00:17.40 bitrate=N/A speed=1.11x
size=N/A time=00:00:17.92 bitrate=N/A speed=1.11x
size=N/A time=00:00:18.43 bitrate=N/A speed= 1.1x
size=N/A time=00:00:18.94 bitrate=N/A speed= 1.1x
size=N/A time=00:00:19.58 bitrate=N/A speed= 1.1x
size=N/A time=00:00:20.09 bitrate=N/A speed= 1.1x
size=N/A time=00:00:20.60 bitrate=N/A speed=1.09x
size=N/A time=00:00:21.12 bitrate=N/A speed=1.09x
size=N/A time=00:00:21.63 bitrate=N/A speed=1.09x
size=N/A time=00:00:22.14 bitrate=N/A speed=1.08x
size=N/A time=00:00:22.65 bitrate=N/A speed=1.08x
size=N/A time=00:00:23.16 bitrate=N/A speed=1.08x
size=N/A time=00:00:23.68 bitrate=N/A speed=1.08x
size=N/A time=00:00:24.19 bitrate=N/A speed=1.08x
size=N/A time=00:00:24.70 bitrate=N/A speed=1.07x
size=N/A time=00:00:25.21 bitrate=N/A speed=1.07x
size=N/A time=00:00:25.85 bitrate=N/A speed=1.07x
size=N/A time=00:00:26.36 bitrate=N/A speed=1.07x
size=N/A time=00:00:26.88 bitrate=N/A speed=1.07x
size=N/A time=00:00:27.39 bitrate=N/A speed=1.07x
size=N/A time=00:00:27.90 bitrate=N/A speed=1.07x
size=N/A time=00:00:28.41 bitrate=N/A speed=1.07x
size=N/A time=00:00:28.92 bitrate=N/A speed=1.06x
size=N/A time=00:00:29.44 bitrate=N/A speed=1.06x
size=N/A time=00:00:29.95 bitrate=N/A speed=1.06x
size=N/A time=00:00:30.46 bitrate=N/A speed=1.06x
size=N/A time=00:00:31.10 bitrate=N/A speed=1.06x
size=N/A time=00:00:31.61 bitrate=N/A speed=1.06x
size=N/A time=00:00:32.12 bitrate=N/A speed=1.06x
size=N/A time=00:00:32.64 bitrate=N/A speed=1.06x
size=N/A time=00:00:33.15 bitrate=N/A speed=1.05x
size=N/A time=00:00:33.66 bitrate=N/A speed=1.05x
size=N/A time=00:00:34.17 bitrate=N/A speed=1.05x
size=N/A time=00:00:34.68 bitrate=N/A speed=1.05x
size=N/A time=00:00:35.20 bitrate=N/A speed=1.05x
size=N/A time=00:00:35.71 bitrate=N/A speed=1.05x
size=N/A time=00:00:36.22 bitrate=N/A speed=1.05x
size=N/A time=00:00:36.86 bitrate=N/A speed=1.05x
size=N/A time=00:00:37.37 bitrate=N/A speed=1.05x
size=N/A time=00:00:37.88 bitrate=N/A speed=1.05x
size=N/A time=00:00:38.40 bitrate=N/A speed=1.05x
size=N/A time=00:00:38.91 bitrate=N/A speed=1.05x
size=N/A time=00:00:39.42 bitrate=N/A speed=1.05x
size=N/A time=00:00:39.93 bitrate=N/A speed=1.05x
size=N/A time=00:00:40.44 bitrate=N/A speed=1.04x
size=N/A time=00:00:40.96 bitrate=N/A speed=1.04x
size=N/A time=00:00:41.47 bitrate=N/A speed=1.04x
size=N/A time=00:00:41.98 bitrate=N/A speed=1.04x
size=N/A time=00:00:42.49 bitrate=N/A speed=1.04x
size=N/A time=00:00:43.00 bitrate=N/A speed=1.04x
size=N/A time=00:00:43.52 bitrate=N/A speed=1.04x
20:32:00.515 TRC [api] GET /api/streams 127.0.0.1:43652 2023-08-07 20:32:30.535867944 size=N/A time=00:00:44.03 bitrate=N/A speed=1.04x

NickM-27 commented 1 year ago

these logs indicate it is working fine

Forsskieken commented 1 year ago

Voordeur:

These are the logs for the above configuration:

2023-08-07 23:12:10.239651688 [WARN] Using go2rtc binary from '/config/go2rtc' instead of the embedded one 2023-08-07 23:12:10.239774181 [INFO] Starting go2rtc... 2023-08-07 23:12:10.325227136 23:12:10.324 INF go2rtc version 1.6.2 linux/amd64 2023-08-07 23:12:10.325233221 23:12:10.324 TRC [api] register path path=/ 2023-08-07 23:12:10.325237868 23:12:10.324 TRC [api] register path path=/api 2023-08-07 23:12:10.325239443 23:12:10.324 TRC [api] register path path=/api/config 2023-08-07 23:12:10.325240885 23:12:10.324 TRC [api] register path path=/api/exit 2023-08-07 23:12:10.325242356 23:12:10.324 INF [api] listen addr=0.0.0.0:1984 2023-08-07 23:12:10.325243863 23:12:10.324 TRC [api] register path path=/api/ws 2023-08-07 23:12:10.325245274 23:12:10.324 TRC [api] register path path=/api/streams 2023-08-07 23:12:10.325246743 23:12:10.324 INF [rtsp] listen addr=0.0.0.0:8554 2023-08-07 23:12:10.325248206 23:12:10.325 INF [webrtc] listen addr=0.0.0.0:8555/tcp 2023-08-07 23:12:10.325276303 23:12:10.325 TRC [api] register path path=/api/webrtc 2023-08-07 23:12:10.325296917 23:12:10.325 TRC [api] register path path=/api/frame.mp4 2023-08-07 23:12:10.325372313 23:12:10.325 TRC [api] register path path=/api/stream.mp4 2023-08-07 23:12:10.325375613 23:12:10.325 TRC [api] register path path=/api/stream.m3u8 2023-08-07 23:12:10.325389166 23:12:10.325 TRC [api] register path path=/api/hls/playlist.m3u8 2023-08-07 23:12:10.325397914 23:12:10.325 TRC [api] register path path=/api/hls/segment.ts 2023-08-07 23:12:10.325428464 23:12:10.325 TRC [api] register path path=/api/hls/init.mp4 2023-08-07 23:12:10.325430234 23:12:10.325 TRC [api] register path path=/api/hls/segment.m4s 2023-08-07 23:12:10.325441283 23:12:10.325 TRC [api] register path path=/api/frame.jpeg 2023-08-07 23:12:10.325487682 23:12:10.325 TRC [api] register path path=/api/stream.mjpeg 2023-08-07 23:12:10.325651451 23:12:10.325 TRC [api] register path path=/static 2023-08-07 23:12:10.325666066 23:12:10.325 TRC [api] register path path=/streams 2023-08-07 23:12:10.325667898 23:12:10.325 TRC [api] register path path=/stream/ 2023-08-07 23:12:10.325749954 23:12:10.325 DBG [hass] can't import config: open .storage/core.config_entries: no such file or directory 2023-08-07 23:12:10.325753106 23:12:10.325 TRC [api] register path path=/api/hass 2023-08-07 23:12:10.325754690 23:12:10.325 TRC [api] register path path=/onvif/ 2023-08-07 23:12:10.325768001 23:12:10.325 TRC [api] register path path=/api/onvif 2023-08-07 23:12:10.325906062 23:12:10.325 TRC [api] register path path=/api/webtorrent 2023-08-07 23:12:10.325972336 23:12:10.325 TRC [api] register path path=/api/stream.flv 2023-08-07 23:12:10.326132842 23:12:10.326 TRC [api] register path path=/api/ffmpeg/devices 2023-08-07 23:12:10.326189700 23:12:10.326 TRC [api] register path path=/api/ffmpeg/hardware 2023-08-07 23:12:10.326235053 23:12:10.326 TRC [api] register path path=/api/dvrip 2023-08-07 23:12:10.326282459 23:12:10.326 TRC [api] register path path=/api/stream.ts 2023-08-07 23:12:10.326331459 23:12:10.326 TRC [api] register path path=/api/roborock 2023-08-07 23:12:10.326375662 23:12:10.326 TRC [api] register path path=/api/homekit 2023-08-07 23:12:10.326415371 23:12:10.326 TRC [api] register path path=/api/nest 2023-08-07 23:12:10.326690302 23:12:10.326 INF [srtp] listen addr=0.0.0.0:8443 2023-08-07 23:12:10.326745021 23:12:10.326 TRC [api] register path path=/api/stack 2023-08-07 23:12:13.224112285 23:12:13.223 TRC [api] GET / 127.0.0.1:58620 2023-08-07 23:12:13.252490166 23:12:13.252 TRC [api] GET /main.js 127.0.0.1:58620 2023-08-07 23:12:13.258700615 23:12:13.258 TRC [api] GET /api 127.0.0.1:58620 2023-08-07 23:12:13.259084069 23:12:13.259 TRC [api] GET /api/streams 127.0.0.1:58632 2023-08-07 23:12:18.897179284 23:12:18.897 TRC [api] GET /stream.html?src=Voordeur 127.0.0.1:58620 2023-08-07 23:12:18.922058294 23:12:18.921 TRC [api] GET /video-stream.js 127.0.0.1:58620 2023-08-07 23:12:18.927715197 23:12:18.927 TRC [api] GET /video-rtc.js 127.0.0.1:58620 2023-08-07 23:12:18.959509562 23:12:18.959 TRC [api] GET /api/ws?src=Voordeur 127.0.0.1:58636 2023-08-07 23:12:19.008998858 23:12:19.008 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://127.0.0.1:8554/Voordeur?audio -c:a pcm_mulaw -ar:a 8000 -ac:a 1 -vn -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}" 2023-08-07 23:12:24.129300239 rtsp://127.0.0.1:8554/Voordeur?audio: Invalid data found when processing input 2023-08-07 23:12:24.130864908 23:12:24.130 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://127.0.0.1:8554/Voordeur?audio -c:a pcm_mulaw -ar:a 8000 -ac:a 1 -vn -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}" 2023-08-07 23:12:29.245334401 rtsp://127.0.0.1:8554/Voordeur?audio: Invalid data found when processing input 2023-08-07 23:12:29.246869105 23:12:29.246 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://127.0.0.1:8554/Voordeur?audio -c:a pcm_mulaw -ar:a 8000 -ac:a 1 -vn -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}" 2023-08-07 23:12:34.361375362 rtsp://127.0.0.1:8554/Voordeur?audio: Invalid data found when processing input 2023-08-07 23:12:34.362759951 23:12:34.362 WRN [rtsp] error="exec: exit status 1" stream=Voordeur 2023-08-07 23:12:34.362863576 23:12:34.362 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://127.0.0.1:8554/Voordeur?audio -c:a pcm_mulaw -ar:a 8000 -ac:a 1 -vn -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}" 2023-08-07 23:12:35.107602402 23:12:35.107 TRC [api] GET /api/streams 127.0.0.1:52322

NickM-27 commented 1 year ago

That's fine, I understand why that would not work. But the previous logs show things working as expected, it is unclear what config correlates to the working logs and what the problem is.

If there is still a problem, need to see the config and logs for that

Forsskieken commented 1 year ago

The logs where everything works is obtained as follows. Start Frigate wit this config:

go2rtc:
  streams:
    Wachtkamer:
      - rtsp://user:passwd@192.168.4.33:554/h264Preview_01_main
    Gang:
      - rtsp://user:passwd@192.168.4.34:554/h264Preview_01_main
#    doorbirdaudio:
#      - exec:ffmpeg -f mulaw -ar 8000 -i http://user:passwd@192.168.1.31/bha-api/audio-receive.cgi -f rtsp {output}
    Voordeur:
      - rtsp://user:passwd@192.168.1.31/mpeg/media.amp
      - ffmpeg:doorbirdaudio#audio=copy

After Frigate started I do: System --> go2rtc dashboard -->config http://192.168.1.39:5000/live/webrtc/editor.html contains:

api:
  origin: '*'
log:
  api: trace
  exec: debug
  format: text
  level: debug
  ngrok: info
  rtsp: info
  streams: info
  webrtc: info
rtsp:
  default_query: mp4
streams:
  Wachtkamer:
    - rtsp://user:passwd@192.168.4.33:554/h264Preview_01_main
  Gang:
    - rtsp://user:passwd@192.168.4.34:554/h264Preview_01_main
   Voordeur:
    - rtsp://user:passwd@192.168.1.31/mpeg/media.amp
    - ffmpeg:doorbirdaudio#audio=copy
 webrtc:
  candidates:
  - stun:8555

I then add to this config right above the Voordeur camera

    doorbirdaudio:
      - exec:ffmpeg -f mulaw -ar 8000 -i http://user:passwd@192.168.1.31/bha-api/audio-receive.cgi -f rtsp {output}

I now push the button Save & Restart. I can now capture the working logs. The life video has sound.

NickM-27 commented 1 year ago

Need to see the logs for the first config

github-actions[bot] commented 1 year 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.

yvonneh7 commented 11 months ago

@Forsskieken thanks to the following code, it also worked for me.

doorbirdaudio:

I now have sound. How can I activate the microphone? It is http://user:passwd@192.168.1.31/bha-api/audio-transmit.cgi

Forsskieken commented 11 months ago

I never tried that...if you succeed let me know..

Op do 30 nov 2023 20:54 schreef yvonneh7 @.***>:

@Forsskieken https://github.com/Forsskieken thanks to the following code, it also worked for me.

doorbirdaudio:

  • exec:ffmpeg -f mulaw -ar 8000 -i @.***/bha-api/audio-receive.cgi -f rtsp {output}

I now have sound. How can I activate the microphone? It is @.***/bha-api/audio-transmit.cgi

— Reply to this email directly, view it on GitHub https://github.com/blakeblackshear/frigate/issues/7403#issuecomment-1834451952, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXGOAPH77HXLV4755V6ECLYHDP6HAVCNFSM6AAAAAA3F6SDUOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGQ2TCOJVGI . You are receiving this because you were mentioned.Message ID: @.***>