keshavdv/unifi-cam-proxy

Microphone got disabled permanently

xrh0905 opened this issue · 10 comments

Camera

Frigate RTSP Restream

Firmware version of the camera

0.13.1-34FB1C2

Description

When the camera is setup, the Protect application said the microphone is disabled, and require a factory reset to reenabled it.
Remove the camera and change MAC address didn't solve the issues.

How to reproduce

  1. Setup the unifi-cam-proxy with dev tag
  2. Boom

Expected behaviour

Get voice on record and streaming.

Screenshots

image

Additional information

Now the voice cannot be turn on(Little speaker icon is disabled) and I can't get any voice from streaming.
FFProbe of my stream post below.

/app # ffprobe rtsp://192.168.2.7:8554/camera_garden\?video=h264\&audio
ffprobe version 5.1.3 Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r4) 20220924
  configuration: --prefix=/usr --enable-avfilter --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libpulse --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-lto --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-librist --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --disable-lzma --enable-libaom --enable-libopus --enable-libsoxr --enable-libwebp --enable-vaapi --enable-vdpau --enable-vulkan --enable-libdrm --enable-libzmq --optflags=-O2 --disable-debug --enable-libsvtav1
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
[rtsp @ 0x14e26721a100] method SETUP failed: 461 Unsupported transport
Input #0, rtsp, from 'rtsp://192.168.2.7:8554/camera_garden?video=h264&audio':
  Metadata:
    title           : go2rtc/1.8.5
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 2560x1440 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn
  Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp

The startup command is

unifi-cam-proxy --host 192.168.0.1 --mac 'AA:BB:CC:00:11:22' --token [REMOVED] --cert /client.pem -i 192.168.5.1 frigate -s rtsp://192.168.2.7:8554/camera_garden\?video=h264\&audio --mqtt-host 192.168.2.2 --frigate-camera camera_garden --ffmpeg-args='-c:v copy -bsf:v "h264_metadata=tick_rate=50000/1001:fixed_frame_rate_flag=1" -ar 32000 -ac 1 -codec:a aac -b:a 32k'

Using docker image tag dev

sabey commented

I have the same issue on the latest docker dev with a reolink camera, there's no audio.

-s "main" --ffmpeg-args='-c:v copy -vbsf "h264_metadata=tick_rate=60000/1001" -ar 32000 -ac 1 -codec:a aac -b:a 32k'

Just did a few test and confirm that this problem will only occur with dev branch of image, latest did not disable the microphone, but filled up logs with Broken Pipe.

Running into the same issue. Dev gives me no audio with video. Latest just breaks and doesn't work at all.