blakeblackshear / frigate

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

[Camera Support]: Android IP Webcam 2 way communication #9310

Closed zyznos321 closed 10 months ago

zyznos321 commented 10 months ago

Describe the problem you are having

I have Android phone with IP webcam app installed. Camera stream from phone is working fine with frigate on home assistant. I added mic and sound button on home assistant card. I can hear voice from camera but when I try to record sound from mic and play on camera it's not working.

Is there any way to use android ip webcam with frigate 2 way audio? Sound to ip webcam app can be send via curl --data-binary @rec.wav http://ip:port/audioin.wav

Version

0.12.1

Frigate config file

mqtt:
  host: homeassistant
  user: homeassistant
  password: PASS
environment_vars:
  LIBVA_DRIVER_NAME: radeonsi
go2rtc:
  streams:
    rtsp_cam: # <- for RTSP streams
      - rtsp://ip_addr:8080:8080/h264_opus.sdp 

ffmpeg:
  hwaccel_args: preset-vaapi
cameras:
  back:
    ffmpeg:
      inputs:
        - path: rtsp://ip_addr:8080/h264.sdp
          roles:
            - detect
    detect:
      enabled: true
      width: 720
      height: 480
    snapshots: # <----- Enable snapshots
      enabled: True
    live:
      stream_name: rtsp_cam

Relevant log output

empty

FFprobe output from your camera

empty

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Network connection

Wired

Camera make and model

android ip webcam

Any other information that may be helpful

No response

NickM-27 commented 10 months ago

does this camera support rtsp backchannel? if I had to guess it most likely does not. You can check by looking at the go2rtc stream info

zyznos321 commented 10 months ago

Unfortunately not support rtsp backchannel. Only like this: curl --data-binary @rec.wav http://ip:port/audioin.wav

Is possible to integrate frigate microphone in ha with this?

NickM-27 commented 10 months ago

No this is not possible, I'd suggest talking to go2rtc about supporting it.

Closing because there is nothing that can be done from the frigate side