blakeblackshear / frigate

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

[Support]: Audio in recordings #9817

Closed backslashV closed 7 months ago

backslashV commented 7 months ago

Describe the problem you are having

Hi, I am unable to get audio in the recordings. The live view from the addon does have audio.

Version

0.13.1

Frigate config file

detectors:
  coral:
    type: edgetpu
    device: usb 

mqtt:
  enabled: true
  host: <REDACTED>
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: <REDACTED>
  password: <REDACTED>
  stats_interval: 60

ffmpeg:
  output_args:
    record: preset-record-generic-audio-aac

detect:
  enabled: false

record:
  enabled: false
  retain:
    days: 0
    mode: all
  export:
    timelapse_args: "-vf setpts=0.04*PTS -r 30"
  events:
    pre_capture: 10
    post_capture: 20
    objects:
      - person
    retain:
      default: 10
      mode: motion
      objects:
        person: 30

go2rtc:
  streams:
    doorbell:
      - echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell
      - "ffmpeg:doorbell#audio=aac"

cameras:
  doorbell_frigate:
    live:
      stream_name: doorbell
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/doorbell?video&audio
          input_args: preset-rtsp-restream-low-latency
          roles:
            - detect
            - record
    detect:
      enabled: true
      fps: 3
    record:
      enabled: true
    snapshots:
      enabled: true
      timestamp: true
    objects:
      track:
        - person

motion:
  mask:
    - 713,486,698,107,405,129,399,477
    - 272,492,324,0,0,0,0,485
    - 693,720,701,509,566,507,553,702

timestamp_style:
  position: "br"
  format: "%m/%d/%Y %H:%M:%S"
  color:
    red: 255
    green: 255
    blue: 255
  thickness: 2
  effect: shadow

Relevant log output

2024-02-12 06:29:28.318654446  [2024-02-11 22:29:28] peewee_migrate.logs            INFO    : Starting migrations
2024-02-12 06:29:28.321260059  [2024-02-11 22:29:28] peewee_migrate.logs            INFO    : There is nothing to migrate
2024-02-12 06:29:28.324403339  [2024-02-11 22:29:28] frigate.app                    INFO    : Recording process started: 314
2024-02-12 06:29:28.325724345  [2024-02-11 22:29:28] frigate.app                    INFO    : go2rtc process pid: 89
2024-02-12 06:29:28.340940606  [2024-02-11 22:29:28] frigate.app                    INFO    : Output process started: 326
2024-02-12 06:29:28.362349109  [2024-02-11 22:29:28] frigate.app                    INFO    : Camera processor started for doorbell_frigate: 335
2024-02-12 06:29:28.367593172  [2024-02-11 22:29:28] frigate.app                    INFO    : Capture process started for doorbell_frigate: 341
2024-02-12 06:29:31.486107459  [2024-02-11 22:29:28] detector.coral                 INFO    : Starting detection process: 324
2024-02-12 06:29:31.488702382  [2024-02-11 22:29:28] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2024-02-12 06:29:31.488773681  [2024-02-11 22:29:31] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2024-02-12 06:29:33.489752803  [2024-02-11 22:29:33] frigate.video                  ERROR   : doorbell_frigate: Unable to read frames from ffmpeg process.
2024-02-12 06:29:33.489935487  [2024-02-11 22:29:33] frigate.video                  ERROR   : doorbell_frigate: ffmpeg process is not running. exiting capture thread...
2024-02-12 06:29:33.968842089  [INFO] Starting go2rtc healthcheck service...
2024-02-12 06:29:48.389963258  [2024-02-11 22:29:48] watchdog.doorbell_frigate      ERROR   : Ffmpeg process crashed unexpectedly for doorbell_frigate.
2024-02-12 06:29:48.390133191  [2024-02-11 22:29:48] watchdog.doorbell_frigate      ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2024-02-12 06:29:48.390337475  [2024-02-11 22:29:48] ffmpeg.doorbell_frigate.detect ERROR   : rtsp://127.0.0.1:8554/doorbell?video&audio: Invalid data found when processing input

FFprobe output from your camera

[{"return_code":0,"stderr":"","stdout":{"programs":[],"streams":[{"avg_frame_rate":"15/1","codec_long_name":"H.264/AVC/MPEG-4AVC/MPEG-4part10","display_aspect_ratio":"4:3","height":864,"width":1152},{"avg_frame_rate":"0/0","codec_long_name":"AAC(AdvancedAudioCoding)"}]}}]

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Network connection

Wired

Camera make and model

Nest Hello Wired 1st Gen

Any other information that may be helpful

No response

NickM-27 commented 7 months ago

please open the go2rtc stream info from the frigate system page and paste it here

backslashV commented 7 months ago

please open the go2rtc stream info from the frigate system page and paste it here

2024-02-12 06:29:23.971653126  [INFO] Preparing new go2rtc config...
2024-02-12 06:29:23.996654540  [INFO] Got IP address from supervisor: 192.168.0.119
2024-02-12 06:29:24.018145207  [WARN] Failed to get WebRTC port from supervisor
2024-02-12 06:29:24.238288185  [INFO] Starting go2rtc...
2024-02-12 06:29:24.292408677  22:29:24.292 INF go2rtc version 1.8.4 linux/amd64
2024-02-12 06:29:24.292754080  22:29:24.292 INF [api] listen addr=:1984
2024-02-12 06:29:24.292786935  22:29:24.292 INF [rtsp] listen addr=:8554
2024-02-12 06:29:24.292919933  22:29:24.292 INF [webrtc] listen addr=:8555
2024-02-12 06:29:33.968842089  [INFO] Starting go2rtc healthcheck service...
2024-02-12 07:19:36.525758385  23:19:36.525 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:33148->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 07:31:35.056456172  23:31:35.056 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:53006->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 07:32:24.977114528  23:32:24.976 WRN [rtsp] error="streams: read tcp 172.30.33.8:56966->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-12 07:32:35.350990797  23:32:35.350 WRN [rtsp] error="streams: read tcp 172.30.33.8:52082->34.96.85.215:443: i/o timeout, exec: exit status 1, read tcp 172.30.33.8:32818->34.96.85.215:443: i/o timeout" stream=doorbell
2024-02-12 11:33:19.892888524  03:33:19.892 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:40990->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 11:54:23.673899141  03:54:23.673 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:52624->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 11:55:53.906086588  03:55:53.905 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:35048->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 11:57:09.674103002  03:57:09.673 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:60132->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 11:57:54.605628802  03:57:54.605 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:59014->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 12:07:01.144620287  04:07:01.144 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:51386->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 12:07:12.105095292  04:07:12.105 WRN [streams] json locked
2024-02-12 12:07:36.845295426  04:07:36.845 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:41986->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 12:09:28.223642387  04:09:28.223 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:43086->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 12:10:06.748839257  04:10:06.748 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:50294->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 12:13:57.569610660  04:13:57.569 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:40484->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 12:14:35.706576213  04:14:35.706 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:35120->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 12:14:42.259503474  04:14:42.259 WRN [streams] json locked
2024-02-12 12:17:31.927525651  04:17:31.927 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:44442->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 12:17:42.322506039  04:17:42.322 WRN [streams] json locked
2024-02-12 12:18:12.331565817  04:18:12.331 WRN [streams] json locked
2024-02-12 12:20:16.564517329  04:20:16.564 WRN [rtsp] error="streams: read tcp 172.30.33.8:57410->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-12 12:20:16.564642612  04:20:16.564 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:39168: write: broken pipe"
2024-02-12 12:20:22.409338817  04:20:22.409 WRN [rtsp] error="streams: read tcp 172.30.33.8:53172->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-12 12:20:22.409438674  04:20:22.409 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:39166: write: broken pipe"
2024-02-12 12:21:28.678586102  04:21:28.678 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:33742: write: broken pipe"
2024-02-12 12:21:33.363206757  04:21:33.363 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:56858: write: broken pipe"
2024-02-12 12:21:33.363457846  04:21:33.363 WRN [rtsp] error="streams: read tcp 172.30.33.8:34002->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-12 12:23:19.366772997  04:23:19.366 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:59520->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 12:24:07.485325572  04:24:07.485 WRN [rtsp] error="streams: read tcp 172.30.33.8:52960->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-12 12:25:00.824238990  04:25:00.824 WRN [rtsp] error="streams: read tcp 172.30.33.8:33804->34.96.85.215:443: i/o timeout, exec: exit status 1, read tcp 172.30.33.8:38582->34.96.85.215:443: i/o timeout" stream=doorbell
2024-02-12 12:25:00.824372135  04:25:00.824 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:35414: write: broken pipe"
2024-02-12 12:25:53.346335813  04:25:53.346 WRN [rtsp] error="streams: read tcp 172.30.33.8:43868->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-12 12:25:53.346468264  04:25:53.346 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:55042: write: broken pipe"
2024-02-12 12:25:59.851901595  04:25:59.851 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:34296: write: broken pipe"
2024-02-12 12:26:04.465785480  04:26:04.465 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:36772: write: broken pipe"
2024-02-12 12:26:04.465821500  04:26:04.465 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:36696: write: broken pipe"
2024-02-12 12:26:04.465986864  04:26:04.465 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:36712: write: broken pipe"
2024-02-12 12:26:04.466255131  04:26:04.465 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:47176: write: broken pipe"
2024-02-12 12:26:04.466261801  04:26:04.465 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:60206: write: broken pipe"
2024-02-12 12:26:04.466282783  04:26:04.466 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:55056: write: broken pipe"
2024-02-12 12:26:04.466324906  04:26:04.465 WRN [rtsp] error="streams: read tcp 172.30.33.8:39396->34.96.85.215:443: i/o timeout, exec: exit status 1, read tcp 172.30.33.8:38134->34.96.85.215:443: i/o timeout" stream=doorbell
2024-02-12 12:26:04.466331685  04:26:04.466 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:36322: write: broken pipe"
2024-02-12 12:26:04.466401637  04:26:04.466 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:52634: write: broken pipe"
2024-02-12 12:27:45.510544129  04:27:45.510 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:38144->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 12:30:02.276498910  04:30:02.276 WRN [rtsp] error="streams: read tcp 172.30.33.8:33532->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-12 12:30:02.276569257  04:30:02.276 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:48808: write: broken pipe"
2024-02-12 12:30:14.262731047  04:30:14.262 WRN [rtsp] error="streams: read tcp 172.30.33.8:52546->34.96.85.215:443: i/o timeout, exec: exit status 1, read tcp 172.30.33.8:47636->34.96.85.215:443: i/o timeout" stream=doorbell
2024-02-12 12:30:14.262837885  04:30:14.262 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:52592: write: broken pipe"
2024-02-12 12:30:30.568162416  04:30:30.567 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:48010: write: broken pipe"
2024-02-12 12:30:30.568306304  04:30:30.568 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:36886: write: broken pipe"
2024-02-12 12:30:30.568545643  04:30:30.567 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:37686: write: broken pipe"
2024-02-12 12:30:30.898688979  04:30:30.898 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:36890: write: broken pipe"
2024-02-12 12:30:30.898725877  04:30:30.898 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:56906: write: broken pipe"
2024-02-12 12:30:30.898738139  04:30:30.898 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:39514: write: broken pipe"
2024-02-12 12:30:30.899741580  04:30:30.898 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:45714: write: broken pipe"
2024-02-12 12:30:30.899749727  04:30:30.899 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:51400: write: broken pipe"
2024-02-12 12:30:30.899755017  04:30:30.899 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:48820: write: broken pipe"
2024-02-12 12:30:30.899821359  04:30:30.899 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:56904: write: broken pipe"
2024-02-12 12:32:48.609598894  04:32:48.609 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:54096->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 12:33:52.876358075  04:33:52.876 WRN [rtsp] error="streams: read tcp 172.30.33.8:53984->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-12 12:34:15.348151276  04:34:15.347 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:45758->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 12:34:42.663473558  04:34:42.663 WRN [streams] json locked
2024-02-12 15:54:06.138483328  07:54:06.138 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:55866->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 15:59:57.195532183  07:59:57.195 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:56904->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 16:52:25.305515088  08:52:25.305 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:56622->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 17:37:52.306370125  09:37:52.306 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:41976->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 18:04:39.452906142  10:04:39.452 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:35192->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 18:05:50.553217865  10:05:50.553 WRN [streams] json locked
2024-02-12 18:06:10.802576691  10:06:10.802 INF [streams] can't get track error="read tcp 172.30.33.8:56392->34.96.85.215:443: i/o timeout"
2024-02-12 18:06:10.802586673  10:06:10.802 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="start from CONN state" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 18:06:20.299486554  10:06:20.299 INF [streams] can't get track error="get track from none state"
2024-02-12 18:07:06.842479110  10:07:06.842 INF [streams] can't get track error="get track from none state"
2024-02-12 18:07:06.842577710  10:07:06.842 INF [streams] can't get track error="get track from none state"
2024-02-12 18:07:06.842791842  10:07:06.842 INF [streams] can't get track error="get track from none state"
2024-02-12 18:07:17.076205265  10:07:17.076 WRN [rtsp] error="streams: codecs not matched: AAC, H264 => ANY" stream=doorbell
2024-02-12 18:07:17.076383964  10:07:17.076 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:50584: write: broken pipe"
2024-02-12 18:07:18.148503619  10:07:18.148 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:54112: write: broken pipe"
2024-02-12 18:07:20.584815429  10:07:20.584 WRN [streams] json locked
2024-02-12 18:07:32.422731032  10:07:32.422 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:46360: write: broken pipe"
2024-02-12 18:07:32.423038491  10:07:32.422 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:58000: write: broken pipe"
2024-02-12 18:07:32.423069548  10:07:32.422 WRN [rtsp] error="streams: read tcp 172.30.33.8:40066->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-12 18:08:20.926102832  10:08:20.925 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:40080->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 18:14:50.505606306  10:14:50.505 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:51016->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 18:17:45.608573815  10:17:45.608 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:32826->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 18:18:17.397849862  10:18:17.397 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:45060->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 18:21:19.586593625  10:21:19.586 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:37008->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 18:21:58.109550478  10:21:58.109 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:55094->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 18:52:35.086614012  10:52:35.086 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:46588->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 18:53:17.337383201  10:53:17.337 WRN [rtsp] error="streams: read tcp 172.30.33.8:50112->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-12 18:53:29.527072548  10:53:29.526 WRN [rtsp] error="streams: read tcp 172.30.33.8:50264->34.96.85.215:443: i/o timeout, exec: exit status 1, read tcp 172.30.33.8:46100->34.96.85.215:443: i/o timeout" stream=doorbell
2024-02-12 18:53:52.669055832  10:53:52.668 WRN [rtsp] error="streams: read tcp 172.30.33.8:43038->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-12 18:55:17.166125797  10:55:17.165 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:60722->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 18:56:06.371470724  10:56:06.371 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:54284->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 19:14:05.690130938  11:14:05.689 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:60610->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 20:31:11.150408084  12:31:11.150 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:42764->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 20:51:07.622336262  12:51:07.622 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:57152->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 21:33:48.920285491  13:33:48.920 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:46530->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 21:34:38.241575474  13:34:38.241 WRN [rtsp] error="streams: read tcp 172.30.33.8:37092->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-12 21:34:48.658589838  13:34:48.658 WRN [rtsp] error="streams: read tcp 172.30.33.8:50300->34.96.85.215:443: i/o timeout, exec: exit status 1, read tcp 172.30.33.8:41984->34.96.85.215:443: i/o timeout" stream=doorbell
2024-02-12 21:35:09.513839231  13:35:09.513 WRN [rtsp] error="streams: read tcp 172.30.33.8:43406->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-12 21:35:19.973648857  13:35:19.973 WRN [rtsp] error="streams: read tcp 172.30.33.8:35940->34.96.85.215:443: i/o timeout, exec: exit status 1, read tcp 172.30.33.8:39892->34.96.85.215:443: i/o timeout" stream=doorbell
2024-02-12 21:40:06.043452194  13:40:06.043 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:43922->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 22:07:42.091721646  14:07:42.091 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:34564->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 22:12:52.775189681  14:12:52.774 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:44814->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-12 22:25:14.245351612  14:25:14.245 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:46108->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-13 00:30:07.607810778  16:30:07.607 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:40760->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-13 00:31:09.939777291  16:31:09.939 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:60374->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-13 00:31:58.320712376  16:31:58.320 WRN [rtsp] error="streams: read tcp 172.30.33.8:39878->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-13 00:32:08.724428533  16:32:08.724 WRN [rtsp] error="streams: read tcp 172.30.33.8:58192->34.96.85.215:443: i/o timeout, exec: exit status 1, read tcp 172.30.33.8:36526->34.96.85.215:443: i/o timeout" stream=doorbell
2024-02-13 00:32:29.493842995  16:32:29.493 WRN [rtsp] error="streams: read tcp 172.30.33.8:50300->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-13 00:32:39.879869560  16:32:39.879 WRN [rtsp] error="streams: read tcp 172.30.33.8:50174->34.96.85.215:443: i/o timeout, exec: exit status 1, read tcp 172.30.33.8:38092->34.96.85.215:443: i/o timeout" stream=doorbell
2024-02-13 00:32:39.879987485  16:32:39.879 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:225 > error="write tcp 127.0.0.1:8554->127.0.0.1:35430: write: broken pipe"
2024-02-13 00:33:06.635218930  16:33:06.635 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:52060->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-13 00:33:49.984753138  16:33:49.984 WRN [rtsp] error="streams: read tcp 172.30.33.8:34132->34.96.85.215:443: i/o timeout, exec: exit status 1" stream=doorbell
2024-02-13 00:34:00.450279398  16:34:00.450 WRN [rtsp] error="streams: read tcp 172.30.33.8:46870->34.96.85.215:443: i/o timeout, exec: exit status 1, read tcp 172.30.33.8:52348->34.96.85.215:443: i/o timeout" stream=doorbell
2024-02-13 01:55:59.619756173  17:55:59.619 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:43392->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-13 03:37:11.535568333  19:37:11.535 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:40350->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-13 04:01:06.181159740  20:01:06.180 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:39052->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-13 04:02:21.309548513  20:02:21.309 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:43964->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
2024-02-13 04:03:04.063667120  20:03:04.063 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.8:48692->34.96.85.215:443: i/o timeout" url="echo:bash /config/custom_components/expose_camera_stream_source/get_stream.sh camera.doorbell"
NickM-27 commented 7 months ago

these are the logs, need to see the stream info

backslashV commented 7 months ago

these are the logs, need to see the stream info

Apologies. I get "404: Not Found" when I click on stream info.

backslashV commented 7 months ago

I can somehow hear the audio now. Not sure what changed. Will close this bug for now.

rici44 commented 3 weeks ago

I am unable to record audio, but go2rtc and liveview play audio correctly. What could cause the problem?

{ "producers": [ { "type": "RTSP active producer", "url": "rtsp://192.168.0.143/stream1/", "remote_addr": "192.168.0.143:554", "user_agent": "go2rtc/1.9.2", "sdp": "v=0\r\no=- 1724793257394708 1 IN IP4 192.168.0.143\r\ns=stream server\r\ni=stream1\r\nt=0 0\r\na=tool:LIVE555 Streaming Media v2014.03.25\r\na=type:broadcast\r\na=control:*\r\na=range:npt=0-\r\na=x-qt-text-nam:stream server\r\na=x-qt-text-inf:stream1\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:1228\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=4D4032;sprop-parameter-sets=Z01AMpWgCQAwabAQ,aO48gA==\r\na=Media_header:MEDIAINFO=494D4B48010100000400010010710110401F000000FA000000000000000000000000000000000000\r\na=framerate:15\r\na=framesize:96 2304-1536\r\na=control:trackID=1\r\nm=audio 0 RTP/AVP 0\r\nc=IN IP4 0.0.0.0\r\nb=AS:12\r\na=control:trackID=2\r\n", "medias": [ "video, recvonly, H.264 Main 5.0", "audio, recvonly, PCMU/8000" ], "receivers": [ "96 H264, bytes=128015796, senders=1", "0 PCMU/8000, bytes=2577600, senders=0" ], "recv": 131735700 }, { "url": "ffmpeg:camera_vzadu#audio=opus" } ], "consumers": [ { "type": "RTSP passive consumer", "url": "rtsp://127.0.0.1:8554/camera_vzadu", "remote_addr": "127.0.0.1:53486", "user_agent": "FFmpeg Frigate/0.14.0-da913d8", "sdp": "v=0\r\no=- 1 1 IN IP4 0.0.0.0\r\ns=go2rtc/1.9.2\r\nc=IN IP4 0.0.0.0\r\nt=0 0\r\nm=video 0 RTP/AVP 96\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=4D4032;sprop-parameter-sets=Z01AMpWgCQAwabAQ,aO48gA==\r\na=control:trackID=0\r\n", "medias": [ "video, sendonly, H264, H265", "audio, sendonly, MPEG4-GENERIC" ], "senders": [ "96 H264, bytes=128015796, receivers=1" ], "send": 129102760 } ] }

I tested VLC on these links: rtsp with only one video and one audio / codecs: any - AUDIO DOES NOT WORK rtsp for MP4 recording (Hass or Frigate) / codecs: H264, H265, AAC - AUDIO DOES NOT WORK rtsp with all tracks / codecs: any - AUDIO WORKS