Problem with Audio

Describe the bug
Hello I have an error when Audio is on with an v4l2 camera + alsa device.
To Reproduce
The problem appear everytime I start the Video visualization in Home app. if I disable audio, all works fine.
Here is my config file :
"cameras": [
                {
                    "name": "Rpicam",
                    "motion": true,
                    "motionTimeout": 60,
                    "unbridge": true,
                    "hsv": true,
                    "prebuffering": true,
                    "prebufferLength": 4,
                    "videoConfig": {
                        "source": "-f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device",
                        "vcodec": "copy",
                        "audio": true,
                        "debug": true
                    },
                    "videoanalysis": {
                        "active": true
                    }
                }

Logs
Here are the Homebridge logs in debug mode :
[1/13/2022, 12:48:39 PM] Homebridge v1.4.0-beta.4 (HAP v0.10.0-beta.7) (Homebridge 34EB) is running on port 53540.
[1/13/2022, 12:48:40 PM] [CameraUI] Rpicam: Setting up camera, please be patient...
[1/13/2022, 12:48:40 PM] [CameraUI] Rpicam: Probe stream: ffmpeg -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device
[1/13/2022, 12:48:40 PM] [CameraUI] Rpicam: {"probe":true,"timedout":false,"audio":["pcm_s16le","48000 Hz","stereo","s16","1536 kb/s"],"video":["h264 (High)","yuv420p(progressive)","1280x720","25 fps","25 tbr","1000k tbn","2000k tbc"]}
[1/13/2022, 12:48:40 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 12:48:40 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 12:48:40 PM] [CameraUI] Rpicam: Start prebuffering...
[1/13/2022, 12:48:40 PM] [CameraUI] Rpicam: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -vcodec copy -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 0:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://<IP_ADDRESS>:31319|[f=mpegts]tcp://<IP_ADDRESS>:20080
[1/13/2022, 12:48:41 PM] [CameraUI] Rpicam: Prebuffering scheduled for restart at 2AM: 791 minutes
[1/13/2022, 12:48:41 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 12:48:41 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 12:48:41 PM] [CameraUI] Rpicam: Start videoanalysis...
[1/13/2022, 12:48:41 PM] [CameraUI] Rpicam: Videoanalysis command: ffmpeg -hide_banner -loglevel error -hwaccel auto -analyzeduration 0 -probesize 500000 -f mpegts -i tcp://<IP_ADDRESS>:27137 -an -vcodec pam -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[1/13/2022, 12:48:41 PM] [CameraUI] Rpicam: Videoanalysis: Currently active zones: []
[1/13/2022, 12:48:41 PM] [CameraUI] Rpicam: Videoanalysis scheduled for restart at 3AM: 851 minutes
[1/13/2022, 12:48:42 PM] [CameraUI] Rpicam: Configuring unbridged accessory...
[1/13/2022, 12:48:42 PM] [CameraUI] Rpicam: Setting up accessory...
[1/13/2022, 12:48:42 PM] [CameraUI] Rpicam: Adding motion sensor service
[1/13/2022, 12:48:42 PM] [CameraUI] Rpicam: Initializing HomeKit Secure Video
[1/13/2022, 12:48:42 PM] [CameraUI] camera.ui v5.0.5 is listening on port 8081 (http)
[1/13/2022, 12:48:42 PM] Rpicam 5BC7 is running on port 46199.
[1/13/2022, 12:48:42 PM] Please add [Rpicam 5BC7] manually in Home app. Setup Code: 031-45-154
[1/13/2022, 12:48:49 PM] [CameraUI] Rpicam: Start stream requested: 1920x1080, 30 fps, 802 kbps
[1/13/2022, 12:48:49 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 12:48:49 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 12:48:49 PM] [CameraUI] Rpicam: Setting prebuffer stream as input
[1/13/2022, 12:48:49 PM] [CameraUI] Rpicam: Starting video stream: native
[1/13/2022, 12:48:49 PM] [CameraUI] Rpicam: Stream command: ffmpeg -hide_banner -loglevel level+verbose -analyzeduration 0 -probesize 3100684 -f mpegts -i tcp://<IP_ADDRESS>:35830 -an -sn -dn -vcodec copy -pix_fmt yuv420p -color_range mpeg -f rawvideo -payload_type 99 -ssrc 13233275 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params olWC8D5/55LfjPg2dTckqgnV8nngwHnnIim7WcBF srtp://<IP_ADDRESS>:50190?rtcpport=50190&pkt_size=1318 -vn -sn -dn -acodec libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -ac 1 -payload_type 110 -ssrc 6957011 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params PsJ4fF8LPDGQb9aQHt9G95+QrlOtoSKDg8xuAri0 srtp://<IP_ADDRESS>:52863?rtcpport=52863&pkt_size=188 -progress pipe:1
[1/13/2022, 12:48:49 PM] [CameraUI] Rpicam: [tcp @ 0xb6f2f650] [verbose] Starting connection attempt to <IP_ADDRESS> port 35830
[1/13/2022, 12:48:49 PM] [CameraUI] Rpicam: [tcp @ 0xb6f2f650] [verbose] Successfully connected to <IP_ADDRESS> port 35830
[1/13/2022, 12:48:49 PM] [CameraUI] Rpicam: [h264 @ 0xb6f32870] [verbose] Reinit context to 1280x720, pix_fmt: yuv420p
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: [mpegts @ 0xb6f2f010] [verbose] max_analyze_duration 5000000 reached at 5037411 microseconds st:0
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: [info] Input #0, mpegts, from 'tcp://<IP_ADDRESS>:35830':
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: [info]   Duration: N/A, start: 2.958478, bitrate: N/A
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: [info]   Program 1
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: [info]     Metadata:
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: [info]       service_name    : Service01
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: [info]       service_provider: FFmpeg
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: [info]     Stream #0:0[0x100]: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(progressive, left), 1280x720, 25 tbr, 90k tbn, 180k tbc
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: [info] Output #1, rtp, to 'srtp://<IP_ADDRESS>:52863?rtcpport=52863&pkt_size=188':
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: [error] Output file #1 does not contain any stream
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: [AVIOContext @ 0x2b23290] [verbose] Statistics: 0 seeks, 0 writeouts
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: [AVIOContext @ 0xb6f2f7b0] [verbose] Statistics: 2785168 bytes read, 0 seeks
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: Prebuffer request ended
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: FFmpeg exited with code: 1 and signal: null - [error] Output file #1 does not contain any stream
[1/13/2022, 12:48:50 PM] [CameraUI] Rpicam: Stopped video stream.
[1/13/2022, 12:48:53 PM] [CameraUI] Rpicam: Snapshot requested: 1280 x 720
[1/13/2022, 12:48:53 PM] [CameraUI] Rpicam: Snapshot command: ffmpeg -hide_banner -loglevel error -analyzeduration 0 -probesize 3096736 -f mpegts -i tcp://<IP_ADDRESS>:17187 -frames:v 1 -f image2 -
[1/13/2022, 12:48:53 PM] [CameraUI] Rpicam: Prebuffer request ended

Environment

Homebridge Version: v1.4.0-beta.4 in Docker
Camera UI Version: v5.0.5
Operating System: Raspbian Bullseye on RPI v4
Browser: Home App in iOS

Hey @macjl
yeah because you have two inputs, index 0 (your first input) contains the video stream and index 1 (your second input) contains your audio stream, you need to map them, otherwise camera.ui will only use index 0 for video (0:0) and audio (0:1)
according to FFmpeg Wiki the following config should do the trick (hopefully 😄 )
{
  "name": "Rpicam",
  "motion": true,
  "motionTimeout": 60,
  "unbridge": true,
  "hsv": true,
  "prebuffering": true,
  "prebufferLength": 4,
  "videoConfig": {
    "source": "-f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device",
    "vcodec": "copy",
    "acodec": "libfdk_aac",
    "mapvideo": "0:v",
    "mapaudio": "1:a",
    "audio": true,
    "debug": true
  },
  "videoanalysis": {
    "active": true
  }
}

Unfortunately, this leads to another error :
[1/13/2022, 1:55:06 PM] Homebridge v1.4.0-beta.4 (HAP v0.10.0-beta.7) (Homebridge 34EB) is running on port 53540.
[1/13/2022, 1:55:07 PM] [CameraUI] Rpicam: Setting up camera, please be patient...
[1/13/2022, 1:55:07 PM] [CameraUI] Rpicam: Probe stream: ffmpeg -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device
[1/13/2022, 1:55:07 PM] [CameraUI] Rpicam: {"probe":true,"timedout":false,"audio":["pcm_s16le","48000 Hz","stereo","s16","1536 kb/s"],"video":["h264 (High)","yuv420p(progressive)","1280x720","25 fps","25 tbr","1000k tbn","2000k tbc"]}
[1/13/2022, 1:55:07 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 1:55:07 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 1:55:07 PM] [CameraUI] Rpicam: Start prebuffering...
[1/13/2022, 1:55:07 PM] [CameraUI] Rpicam: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -map 0:v -vcodec copy -map 1:a -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 0:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://<IP_ADDRESS>:38969|[f=mpegts]tcp://<IP_ADDRESS>:28602
[1/13/2022, 1:55:08 PM] [CameraUI] Rpicam: Prebuffering scheduled for restart at 2AM: 725 minutes
[1/13/2022, 1:55:08 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 1:55:08 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 1:55:08 PM] [CameraUI] Rpicam: Start videoanalysis...
[1/13/2022, 1:55:08 PM] [CameraUI] Rpicam: Videoanalysis command: ffmpeg -hide_banner -loglevel error -hwaccel auto -analyzeduration 0 -probesize 500000 -f mpegts -i tcp://<IP_ADDRESS>:19680 -an -vcodec pam -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[1/13/2022, 1:55:08 PM] [CameraUI] Rpicam: Videoanalysis: Currently active zones: []
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Videoanalysis scheduled for restart at 3AM: 785 minutes
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Configuring unbridged accessory...
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Setting up accessory...
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Adding motion sensor service
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Initializing HomeKit Secure Video
[1/13/2022, 1:55:09 PM] [CameraUI] camera.ui v5.0.5 is listening on port 8081 (http)
[1/13/2022, 1:55:09 PM] Rpicam 5BC7 is running on port 35195.
[1/13/2022, 1:55:09 PM] Please add [Rpicam 5BC7] manually in Home app. Setup Code: 031-45-154
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: FFmpeg prebuffer process exited with error! (null) - [mpegts @ 0x4ad86c0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 23018 >= 23018[tee @ 0x49a6300] Slave muxer #1 failed, aborting.av_interleaved_write_frame(): Invalid argument
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Prebufferring process closed
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Prebuffer request ended
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Prebuffer request ended
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Restart prebuffer session..
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: FFMPEG socket closed during read for 8 bytes!
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: FFmpeg videoanalysis process exited (expected)
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Videoanalysis process closed
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Restart videoanalysis session..
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Start prebuffering...
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -map 0:v -vcodec copy -map 1:a -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 0:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://<IP_ADDRESS>:38580|[f=mpegts]tcp://<IP_ADDRESS>:13055
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Start videoanalysis...
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Videoanalysis command: ffmpeg -hide_banner -loglevel error -hwaccel auto -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -an -vcodec pam -map 0:v -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Videoanalysis: Currently active zones: []
[1/13/2022, 1:55:20 PM] [CameraUI] Rpicam: Videoanalysis scheduled for restart at 3AM: 785 minutes
[1/13/2022, 1:55:20 PM] [CameraUI] Rpicam: FFmpeg videoanalysis process exited with error! (null) - /dev/video0: Resource busy
[1/13/2022, 1:55:20 PM] [CameraUI] Rpicam: Videoanalysis process closed
[1/13/2022, 1:55:20 PM] [CameraUI] Rpicam: Restart videoanalysis session..
[1/13/2022, 1:55:20 PM] [CameraUI] Rpicam: Prebuffering scheduled for restart at 2AM: 725 minutes
[1/13/2022, 1:55:21 PM] [CameraUI] Rpicam: FFMPEG socket closed during read for 8 bytes!
[1/13/2022, 1:55:21 PM] [CameraUI] Rpicam: FFmpeg prebuffer process exited (expected)
[1/13/2022, 1:55:21 PM] [CameraUI] Rpicam: Prebufferring process closed
[1/13/2022, 1:55:21 PM] [CameraUI] Rpicam: Restart prebuffer session..
[1/13/2022, 1:55:30 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 1:55:30 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 1:55:30 PM] [CameraUI] Rpicam: Start videoanalysis...
[1/13/2022, 1:55:30 PM] [CameraUI] Rpicam: Videoanalysis command: ffmpeg -hide_banner -loglevel error -hwaccel auto -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -an -vcodec pam -map 0:v -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[1/13/2022, 1:55:30 PM] [CameraUI] Rpicam: Videoanalysis: Currently active zones: []
[1/13/2022, 1:55:30 PM] [CameraUI] Rpicam: Videoanalysis scheduled for restart at 3AM: 784 minutes
[1/13/2022, 1:55:31 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 1:55:31 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 1:55:31 PM] [CameraUI] Rpicam: Start prebuffering...
[1/13/2022, 1:55:31 PM] [CameraUI] Rpicam: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -map 0:v -vcodec copy -map 1:a -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 0:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://<IP_ADDRESS>:18393|[f=mpegts]tcp://<IP_ADDRESS>:16055
[1/13/2022, 1:55:31 PM] [CameraUI] Rpicam: FFmpeg prebuffer process exited with error! (null) - /dev/video0: Resource busy
[1/13/2022, 1:55:31 PM] [CameraUI] Rpicam: Prebufferring process closed
[1/13/2022, 1:55:31 PM] [CameraUI] Rpicam: Restart prebuffer session..
[1/13/2022, 1:55:41 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 1:55:41 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 1:55:41 PM] [CameraUI] Rpicam: Start prebuffering...
[1/13/2022, 1:55:41 PM] [CameraUI] Rpicam: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -map 0:v -vcodec copy -map 1:a -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 0:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://<IP_ADDRESS>:14407|[f=mpegts]tcp://<IP_ADDRESS>:25212
[1/13/2022, 1:55:41 PM] [CameraUI] Rpicam: FFmpeg prebuffer process exited with error! (null) - /dev/video0: Resource busy
[1/13/2022, 1:55:41 PM] [CameraUI] Rpicam: Prebufferring process closed
[1/13/2022, 1:55:41 PM] [CameraUI] Rpicam: Restart prebuffer session..

Unfortunately, this leads to another error :
[1/13/2022, 1:55:06 PM] Homebridge v1.4.0-beta.4 (HAP v0.10.0-beta.7) (Homebridge 34EB) is running on port 53540.
[1/13/2022, 1:55:07 PM] [CameraUI] Rpicam: Setting up camera, please be patient...
[1/13/2022, 1:55:07 PM] [CameraUI] Rpicam: Probe stream: ffmpeg -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device
[1/13/2022, 1:55:07 PM] [CameraUI] Rpicam: {"probe":true,"timedout":false,"audio":["pcm_s16le","48000 Hz","stereo","s16","1536 kb/s"],"video":["h264 (High)","yuv420p(progressive)","1280x720","25 fps","25 tbr","1000k tbn","2000k tbc"]}
[1/13/2022, 1:55:07 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 1:55:07 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 1:55:07 PM] [CameraUI] Rpicam: Start prebuffering...
[1/13/2022, 1:55:07 PM] [CameraUI] Rpicam: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -map 0:v -vcodec copy -map 1:a -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 0:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://<IP_ADDRESS>:38969|[f=mpegts]tcp://<IP_ADDRESS>:28602
[1/13/2022, 1:55:08 PM] [CameraUI] Rpicam: Prebuffering scheduled for restart at 2AM: 725 minutes
[1/13/2022, 1:55:08 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 1:55:08 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 1:55:08 PM] [CameraUI] Rpicam: Start videoanalysis...
[1/13/2022, 1:55:08 PM] [CameraUI] Rpicam: Videoanalysis command: ffmpeg -hide_banner -loglevel error -hwaccel auto -analyzeduration 0 -probesize 500000 -f mpegts -i tcp://<IP_ADDRESS>:19680 -an -vcodec pam -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[1/13/2022, 1:55:08 PM] [CameraUI] Rpicam: Videoanalysis: Currently active zones: []
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Videoanalysis scheduled for restart at 3AM: 785 minutes
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Configuring unbridged accessory...
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Setting up accessory...
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Adding motion sensor service
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Initializing HomeKit Secure Video
[1/13/2022, 1:55:09 PM] [CameraUI] camera.ui v5.0.5 is listening on port 8081 (http)
[1/13/2022, 1:55:09 PM] Rpicam 5BC7 is running on port 35195.
[1/13/2022, 1:55:09 PM] Please add [Rpicam 5BC7] manually in Home app. Setup Code: 031-45-154
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: FFmpeg prebuffer process exited with error! (null) - [mpegts @ 0x4ad86c0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 23018 >= 23018[tee @ 0x49a6300] Slave muxer #1 failed, aborting.av_interleaved_write_frame(): Invalid argument
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Prebufferring process closed
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Prebuffer request ended
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Prebuffer request ended
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Restart prebuffer session..
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: FFMPEG socket closed during read for 8 bytes!
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: FFmpeg videoanalysis process exited (expected)
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Videoanalysis process closed
[1/13/2022, 1:55:09 PM] [CameraUI] Rpicam: Restart videoanalysis session..
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Start prebuffering...
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -map 0:v -vcodec copy -map 1:a -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 0:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://<IP_ADDRESS>:38580|[f=mpegts]tcp://<IP_ADDRESS>:13055
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Start videoanalysis...
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Videoanalysis command: ffmpeg -hide_banner -loglevel error -hwaccel auto -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -an -vcodec pam -map 0:v -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[1/13/2022, 1:55:19 PM] [CameraUI] Rpicam: Videoanalysis: Currently active zones: []
[1/13/2022, 1:55:20 PM] [CameraUI] Rpicam: Videoanalysis scheduled for restart at 3AM: 785 minutes
[1/13/2022, 1:55:20 PM] [CameraUI] Rpicam: FFmpeg videoanalysis process exited with error! (null) - /dev/video0: Resource busy
[1/13/2022, 1:55:20 PM] [CameraUI] Rpicam: Videoanalysis process closed
[1/13/2022, 1:55:20 PM] [CameraUI] Rpicam: Restart videoanalysis session..
[1/13/2022, 1:55:20 PM] [CameraUI] Rpicam: Prebuffering scheduled for restart at 2AM: 725 minutes
[1/13/2022, 1:55:21 PM] [CameraUI] Rpicam: FFMPEG socket closed during read for 8 bytes!
[1/13/2022, 1:55:21 PM] [CameraUI] Rpicam: FFmpeg prebuffer process exited (expected)
[1/13/2022, 1:55:21 PM] [CameraUI] Rpicam: Prebufferring process closed
[1/13/2022, 1:55:21 PM] [CameraUI] Rpicam: Restart prebuffer session..
[1/13/2022, 1:55:30 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 1:55:30 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 1:55:30 PM] [CameraUI] Rpicam: Start videoanalysis...
[1/13/2022, 1:55:30 PM] [CameraUI] Rpicam: Videoanalysis command: ffmpeg -hide_banner -loglevel error -hwaccel auto -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -an -vcodec pam -map 0:v -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[1/13/2022, 1:55:30 PM] [CameraUI] Rpicam: Videoanalysis: Currently active zones: []
[1/13/2022, 1:55:30 PM] [CameraUI] Rpicam: Videoanalysis scheduled for restart at 3AM: 784 minutes
[1/13/2022, 1:55:31 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 1:55:31 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 1:55:31 PM] [CameraUI] Rpicam: Start prebuffering...
[1/13/2022, 1:55:31 PM] [CameraUI] Rpicam: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -map 0:v -vcodec copy -map 1:a -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 0:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://<IP_ADDRESS>:18393|[f=mpegts]tcp://<IP_ADDRESS>:16055
[1/13/2022, 1:55:31 PM] [CameraUI] Rpicam: FFmpeg prebuffer process exited with error! (null) - /dev/video0: Resource busy
[1/13/2022, 1:55:31 PM] [CameraUI] Rpicam: Prebufferring process closed
[1/13/2022, 1:55:31 PM] [CameraUI] Rpicam: Restart prebuffer session..
[1/13/2022, 1:55:41 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 1:55:41 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 1:55:41 PM] [CameraUI] Rpicam: Start prebuffering...
[1/13/2022, 1:55:41 PM] [CameraUI] Rpicam: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -map 0:v -vcodec copy -map 1:a -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 0:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://<IP_ADDRESS>:14407|[f=mpegts]tcp://<IP_ADDRESS>:25212
[1/13/2022, 1:55:41 PM] [CameraUI] Rpicam: FFmpeg prebuffer process exited with error! (null) - /dev/video0: Resource busy
[1/13/2022, 1:55:41 PM] [CameraUI] Rpicam: Prebufferring process closed
[1/13/2022, 1:55:41 PM] [CameraUI] Rpicam: Restart prebuffer session..

Yeah i think the prebuffering command needs to be changed, can you try without prebuffering (only videoanalysis) pls

Still problems :
[1/13/2022, 2:10:17 PM] Homebridge v1.4.0-beta.4 (HAP v0.10.0-beta.7) (Homebridge 34EB) is running on port 53540.
[1/13/2022, 2:10:18 PM] [CameraUI] Clear timer for notification (44a9f02203) reached
[1/13/2022, 2:10:18 PM] [CameraUI] Clear timer for notification (c3aab5f491) reached
[1/13/2022, 2:10:18 PM] [CameraUI] Clear timer for notification (027b5eb79f) reached
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Setting up camera, please be patient...
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Probe stream: ffmpeg -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: {"probe":true,"timedout":false,"audio":["pcm_s16le","48000 Hz","stereo","s16","1536 kb/s"],"video":["h264 (High)","yuv420p(progressive)","1280x720","25 fps","25 tbr","1000k tbn","2000k tbc"]}
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Start videoanalysis...
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Videoanalysis command: ffmpeg -hide_banner -loglevel error -hwaccel auto -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -an -vcodec pam -map 0:v -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Videoanalysis: Currently active zones: []
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Videoanalysis scheduled for restart at 3AM: 770 minutes
[1/13/2022, 2:10:19 PM] [CameraUI] Rpicam: Configuring unbridged accessory...
[1/13/2022, 2:10:19 PM] [CameraUI] Rpicam: Setting up accessory...
[1/13/2022, 2:10:19 PM] [CameraUI] Rpicam: Adding motion sensor service
[1/13/2022, 2:10:19 PM] [CameraUI] Rpicam: Initializing HomeKit Secure Video
[1/13/2022, 2:10:19 PM] [CameraUI] camera.ui v5.0.5 is listening on port 8081 (http)
[1/13/2022, 2:10:19 PM] Rpicam 5BC7 is running on port 38733.
[1/13/2022, 2:10:19 PM] Please add [Rpicam 5BC7] manually in Home app. Setup Code: 031-45-154
[1/13/2022, 2:10:34 PM] [CameraUI] Rpicam: Snapshot requested: 1280 x 720
[1/13/2022, 2:10:34 PM] [CameraUI] Rpicam: Snapshot command: ffmpeg -hide_banner -loglevel error -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -frames:v 1 -f image2 -
[1/13/2022, 2:10:34 PM] [CameraUI] Rpicam: Failed to fetch snapshot. Showing "offline" image instead.
[1/13/2022, 2:10:34 PM] [CameraUI] Rpicam: /dev/video0: Resource busy
[1/13/2022, 2:10:34 PM] [CameraUI] Rpicam: Sending snapshot: 1280x720
[1/13/2022, 2:10:34 PM] [CameraUI] Rpicam: Resize command: ffmpeg -i pipe: -frames:v 1 -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease -f image2 -
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: Start stream requested: 1920x1080, 30 fps, 802 kbps
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: Starting video stream: native
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: Stream command: ffmpeg -hide_banner -loglevel level+verbose -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -map 0:v -vcodec copy -pix_fmt yuv420p -color_range mpeg -f rawvideo -payload_type 99 -ssrc 6018443 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params lJmXaRBP+IGnjEwekeiSp8c1I0qXPv7mjzYA3qi4 srtp://<IP_ADDRESS>:50674?rtcpport=50674&pkt_size=1318 -map 1:a -acodec libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -ac 1 -payload_type 110 -ssrc 13921307 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params I+XEun3LkvzeaHLdVy1e5qajEhYHNimJD/O5p87I srtp://<IP_ADDRESS>:53915?rtcpport=53915&pkt_size=188 -progress pipe:1
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: [video4linux2,v4l2 @ 0xb6fde2c0] [verbose] fd:3 capabilities:85200005
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: [error] /dev/video0: Resource busy
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: FFmpeg exited with code: 1 and signal: null - [error] /dev/video0: Resource busy
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: Stopped video stream.
[1/13/2022, 2:10:44 PM] [CameraUI] Rpicam: Snapshot requested: 1280 x 720
[1/13/2022, 2:10:44 PM] [CameraUI] Rpicam: Snapshot command: ffmpeg -hide_banner -loglevel error -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -frames:v 1 -f image2 -
[1/13/2022, 2:10:44 PM] [CameraUI] Rpicam: Failed to fetch snapshot. Showing "offline" image instead.
[1/13/2022, 2:10:44 PM] [CameraUI] Rpicam: /dev/video0: Resource busy
[1/13/2022, 2:10:44 PM] [CameraUI] Rpicam: Sending snapshot: 1280x720
[1/13/2022, 2:10:44 PM] [CameraUI] Rpicam: Resize command: ffmpeg -i pipe: -frames:v 1 -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease -f image2 -

Maybe you should use an internal RSTP server instead of the pipe muxer ? That would avoid opening the same device multiple times.

Still problems :
[1/13/2022, 2:10:17 PM] Homebridge v1.4.0-beta.4 (HAP v0.10.0-beta.7) (Homebridge 34EB) is running on port 53540.
[1/13/2022, 2:10:18 PM] [CameraUI] Clear timer for notification (44a9f02203) reached
[1/13/2022, 2:10:18 PM] [CameraUI] Clear timer for notification (c3aab5f491) reached
[1/13/2022, 2:10:18 PM] [CameraUI] Clear timer for notification (027b5eb79f) reached
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Setting up camera, please be patient...
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Probe stream: ffmpeg -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: {"probe":true,"timedout":false,"audio":["pcm_s16le","48000 Hz","stereo","s16","1536 kb/s"],"video":["h264 (High)","yuv420p(progressive)","1280x720","25 fps","25 tbr","1000k tbn","2000k tbc"]}
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Start videoanalysis...
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Videoanalysis command: ffmpeg -hide_banner -loglevel error -hwaccel auto -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -an -vcodec pam -map 0:v -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Videoanalysis: Currently active zones: []
[1/13/2022, 2:10:18 PM] [CameraUI] Rpicam: Videoanalysis scheduled for restart at 3AM: 770 minutes
[1/13/2022, 2:10:19 PM] [CameraUI] Rpicam: Configuring unbridged accessory...
[1/13/2022, 2:10:19 PM] [CameraUI] Rpicam: Setting up accessory...
[1/13/2022, 2:10:19 PM] [CameraUI] Rpicam: Adding motion sensor service
[1/13/2022, 2:10:19 PM] [CameraUI] Rpicam: Initializing HomeKit Secure Video
[1/13/2022, 2:10:19 PM] [CameraUI] camera.ui v5.0.5 is listening on port 8081 (http)
[1/13/2022, 2:10:19 PM] Rpicam 5BC7 is running on port 38733.
[1/13/2022, 2:10:19 PM] Please add [Rpicam 5BC7] manually in Home app. Setup Code: 031-45-154
[1/13/2022, 2:10:34 PM] [CameraUI] Rpicam: Snapshot requested: 1280 x 720
[1/13/2022, 2:10:34 PM] [CameraUI] Rpicam: Snapshot command: ffmpeg -hide_banner -loglevel error -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -frames:v 1 -f image2 -
[1/13/2022, 2:10:34 PM] [CameraUI] Rpicam: Failed to fetch snapshot. Showing "offline" image instead.
[1/13/2022, 2:10:34 PM] [CameraUI] Rpicam: /dev/video0: Resource busy
[1/13/2022, 2:10:34 PM] [CameraUI] Rpicam: Sending snapshot: 1280x720
[1/13/2022, 2:10:34 PM] [CameraUI] Rpicam: Resize command: ffmpeg -i pipe: -frames:v 1 -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease -f image2 -
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: Start stream requested: 1920x1080, 30 fps, 802 kbps
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: Starting video stream: native
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: Stream command: ffmpeg -hide_banner -loglevel level+verbose -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -map 0:v -vcodec copy -pix_fmt yuv420p -color_range mpeg -f rawvideo -payload_type 99 -ssrc 6018443 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params lJmXaRBP+IGnjEwekeiSp8c1I0qXPv7mjzYA3qi4 srtp://<IP_ADDRESS>:50674?rtcpport=50674&pkt_size=1318 -map 1:a -acodec libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -ac 1 -payload_type 110 -ssrc 13921307 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params I+XEun3LkvzeaHLdVy1e5qajEhYHNimJD/O5p87I srtp://<IP_ADDRESS>:53915?rtcpport=53915&pkt_size=188 -progress pipe:1
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: [video4linux2,v4l2 @ 0xb6fde2c0] [verbose] fd:3 capabilities:85200005
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: [error] /dev/video0: Resource busy
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: FFmpeg exited with code: 1 and signal: null - [error] /dev/video0: Resource busy
[1/13/2022, 2:10:38 PM] [CameraUI] Rpicam: Stopped video stream.
[1/13/2022, 2:10:44 PM] [CameraUI] Rpicam: Snapshot requested: 1280 x 720
[1/13/2022, 2:10:44 PM] [CameraUI] Rpicam: Snapshot command: ffmpeg -hide_banner -loglevel error -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -frames:v 1 -f image2 -
[1/13/2022, 2:10:44 PM] [CameraUI] Rpicam: Failed to fetch snapshot. Showing "offline" image instead.
[1/13/2022, 2:10:44 PM] [CameraUI] Rpicam: /dev/video0: Resource busy
[1/13/2022, 2:10:44 PM] [CameraUI] Rpicam: Sending snapshot: 1280x720
[1/13/2022, 2:10:44 PM] [CameraUI] Rpicam: Resize command: ffmpeg -i pipe: -frames:v 1 -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease -f image2 -

Maybe you should use an internal RSTP server instead of the pipe muxer ? That would avoid opening the same device multiple times.

Allright can you try without prebuffering and without videoanalysis pls just to be sure that the stream is working in home

I think an internal rtsp server is something for v5.1 because it needs a refactoring of prebuffering, videoanalysis and streaming, but i will put it in my todo list
Until then, it is enough if prebuffering works, because with prebuffering there is only one connection to the device, i just need to figure out how i need to start the prebuffering process with mapping video/audio and therefore i need to be sure that streaming (apple home AND web) is working for you without prebuffering/videoanalysis

I can wait for v5.1 !
I will add an external rtsp server within a container, and a ffmpeg process that stream to that server till then.
I'll post my configuration soon for those who need it.

No problem ! I can switch the config back and forward without delay for your tests.

For information, here is my conf with an intermediate RTSP Server :
In the dockerfile, I defined 3 containers. The first, "rtsp", is the rtsp server. The image I found works on RPi ARM and x86 machines.
The second, "ffmpeg-usbcam", is based on the homebridge image to keep the same ffmpeg binary. The start command is replaced by a ffmpeg command that read the v4l2 Camera and audio streams, and send them to the RTSP Server.
The third, "hombridge", is the standard homebridge server.
  rtsp:
    image: aler9/rtsp-simple-server
    restart: always
    environment:
      - TZ=Europe/Paris
      - RTSP_PROTOCOLS=tcp
    ports:
      - 8554:8554

  ffmpeg-usbcam:
    image: oznu/homebridge
    restart: always
    environment:
      - TZ=Europe/Paris
    devices:
      - /dev/video0
      - /dev/snd
    entrypoint: /bin/exec
    command: /bin/sh -c "apk add alsa-utils && ffmpeg -thread_queue_size 512 -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -thread_queue_size 512 -fflags +genpts -f alsa -i default:CARD=Device -map 0:v -map 1:a -codec:v copy -preset:v ultrafast -codec:a libfdk_aac -shortest -f rtsp rtsp://rtsp:8554/live/usbcam.stream"

  homebridge:
    image: oznu/homebridge:latest
    container_name: homebridge
    restart: always
    network_mode: host
    environment:
      - TZ=Europe/Paris
      - PGID=1000
      - PUID=1000
      - HOMEBRIDGE_CONFIG_UI=1
      - HOMEBRIDGE_CONFIG_UI_PORT=8085
    volumes:
      - ~/dockers/data/homebridge:/homebridge

Then the config.json file of homebridge is like this :
"cameras": [
                {
                    "name": "Rpicam",
                    "motion": true,
                    "motionTimeout": 60,
                    "unbridge": true,
                    "hsv": true,
                    "prebuffering": true,
                    "prebufferLength": 4,
                    "videoConfig": {
                        "source": "-i rtsp://<IP_ADDRESS>:8554/live/usbcam.stream",
                        "vcodec": "copy",
                        "audio": true,
                        "debug": true
                    },
                    "videoanalysis": {
                        "active": true
                    }
                }

All seems to work with this configuration, even if I'm sure I can improve it to be able to use the "copy" codec for audio stream too.

For information, here is my conf with an intermediate RTSP Server :
In the dockerfile, I defined 3 containers. The first, "rtsp", is the rtsp server. The image I found works on RPi ARM and x86 machines.
The second, "ffmpeg-usbcam", is based on the homebridge image to keep the same ffmpeg binary. The start command is replaced by a ffmpeg command that read the v4l2 Camera and audio streams, and send them to the RTSP Server.
The third, "homebridge", is the standard homebridge server.
  rtsp:
    image: aler9/rtsp-simple-server
    restart: always
    environment:
      - TZ=Europe/Paris
      - RTSP_PROTOCOLS=tcp
    ports:
      - 8554:8554

  ffmpeg-usbcam:
    image: oznu/homebridge
    restart: always
    environment:
      - TZ=Europe/Paris
    devices:
      - /dev/video0
      - /dev/snd
    entrypoint: /bin/exec
    command: /bin/sh -c "apk add alsa-utils && ffmpeg -thread_queue_size 512 -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -thread_queue_size 512 -fflags +genpts -f alsa -i default:CARD=Device -map 0:v -map 1:a -codec:v copy -preset:v ultrafast -codec:a libfdk_aac -shortest -f rtsp rtsp://rtsp:8554/live/usbcam.stream"

  homebridge:
    image: oznu/homebridge:latest
    container_name: homebridge
    restart: always
    network_mode: host
    environment:
      - TZ=Europe/Paris
      - PGID=1000
      - PUID=1000
      - HOMEBRIDGE_CONFIG_UI=1
      - HOMEBRIDGE_CONFIG_UI_PORT=8085
    volumes:
      - ~/dockers/data/homebridge:/homebridge

Then the config.json file of homebridge is like this :
"cameras": [
                {
                    "name": "Rpicam",
                    "motion": true,
                    "motionTimeout": 60,
                    "unbridge": true,
                    "hsv": true,
                    "prebuffering": true,
                    "prebufferLength": 4,
                    "videoConfig": {
                        "source": "-i rtsp://<IP_ADDRESS>:8554/live/usbcam.stream",
                        "vcodec": "copy",
                        "audio": true,
                        "debug": true
                    },
                    "videoanalysis": {
                        "active": true
                    }
                }

All seems to work with this configuration, even if I'm sure I can improve it to be able to use the "copy" codec for audio stream too.

Nice, will add these later into the Wiki section, thanks!
But for testing purposes, can you revert back and test the first situation again pls. I need to be sure that this kind of config (with mapping) works for other even with prebuffering/videoanalysis.
Therefore i pushed a new version for you to test the first situation.
v5.0.6-beta.0 is online
Config:
{
  "name": "Rpicam",
  "motion": true,
  "motionTimeout": 60,
  "unbridge": true,
  "hsv": true,
  "prebuffering": true,
  "prebufferLength": 4,
  "videoConfig": {
    "source": "-f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device",
    "vcodec": "copy",
    "acodec": "libfdk_aac",
    "mapvideo": "0:v",
    "mapaudio": "1:a",
    "audio": true,
    "debug": true
  },
  "videoanalysis": {
    "active": true
  }
}

Still no luck with v5.0.6-beta.0
[1/13/2022, 3:58:48 PM] Homebridge v1.4.0-beta.4 (HAP v0.10.0-beta.7) (Homebridge 34EB) is running on port 53540.
[1/13/2022, 3:58:48 PM] [CameraUI] Rpicam: Setting up camera, please be patient...
[1/13/2022, 3:58:48 PM] [CameraUI] Rpicam: Probe stream: ffmpeg -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device
[1/13/2022, 3:58:49 PM] [CameraUI] Rpicam: {"probe":true,"timedout":false,"audio":["pcm_s16le","48000 Hz","stereo","s16","1536 kb/s"],"video":["h264 (High)","yuv420p(progressive)","1280x720","25 fps","25 tbr","1000k tbn","2000k tbc"]}
[1/13/2022, 3:58:49 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 3:58:49 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 3:58:49 PM] [CameraUI] Rpicam: Start prebuffering...
[1/13/2022, 3:58:49 PM] [CameraUI] Rpicam: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -vcodec copy -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 1:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://<IP_ADDRESS>:16589|[f=mpegts]tcp://<IP_ADDRESS>:20619
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Prebuffering scheduled for restart at 2AM: 601 minutes
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Start videoanalysis...
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Videoanalysis command: ffmpeg -hide_banner -loglevel error -hwaccel auto -analyzeduration 0 -probesize 500000 -f mpegts -i tcp://<IP_ADDRESS>:27179 -an -vcodec pam -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Videoanalysis: Currently active zones: []
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Videoanalysis scheduled for restart at 3AM: 661 minutes
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Configuring unbridged accessory...
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Setting up accessory...
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Adding motion sensor service
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Initializing HomeKit Secure Video
[1/13/2022, 3:58:50 PM] [CameraUI] camera.ui v5.0.6-beta.0 is listening on port 8081 (http)
[1/13/2022, 3:58:50 PM] Rpicam 5BC7 is running on port 42217.
[1/13/2022, 3:58:50 PM] Please add [Rpicam 5BC7] manually in Home app. Setup Code: 031-45-154
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: FFmpeg prebuffer process exited with error! (null) - [mpegts @ 0x46ff680] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 23040 >= 23040[tee @ 0x4667aa0] Slave muxer #1 failed, aborting.av_interleaved_write_frame(): Invalid argument
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Prebufferring process closed
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Prebuffer request ended
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Prebuffer request ended
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Restart prebuffer session..
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: FFMPEG socket closed during read for 8 bytes!
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: FFmpeg videoanalysis process exited (expected)
[1/13/2022, 3:58:50 PM] [CameraUI] Rpicam: Videoanalysis process closed
[1/13/2022, 3:58:51 PM] [CameraUI] Rpicam: Restart videoanalysis session..
[1/13/2022, 3:59:00 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 3:59:00 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 3:59:00 PM] [CameraUI] Rpicam: Start prebuffering...
[1/13/2022, 3:59:00 PM] [CameraUI] Rpicam: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -vcodec copy -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 1:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://<IP_ADDRESS>:35324|[f=mpegts]tcp://<IP_ADDRESS>:14232
[1/13/2022, 3:59:01 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 3:59:01 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 3:59:01 PM] [CameraUI] Rpicam: Start videoanalysis...
[1/13/2022, 3:59:01 PM] [CameraUI] Rpicam: Videoanalysis command: ffmpeg -hide_banner -loglevel error -hwaccel auto -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -map 0:v -an -vcodec pam -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[1/13/2022, 3:59:01 PM] [CameraUI] Rpicam: Videoanalysis: Currently active zones: []
[1/13/2022, 3:59:01 PM] [CameraUI] Rpicam: Videoanalysis scheduled for restart at 3AM: 661 minutes
[1/13/2022, 3:59:01 PM] [CameraUI] Rpicam: FFmpeg videoanalysis process exited with error! (null) - /dev/video0: Resource busy
[1/13/2022, 3:59:01 PM] [CameraUI] Rpicam: Videoanalysis process closed
[1/13/2022, 3:59:01 PM] [CameraUI] Rpicam: Restart videoanalysis session..
[1/13/2022, 3:59:01 PM] [CameraUI] Rpicam: Prebuffering scheduled for restart at 2AM: 601 minutes
[1/13/2022, 3:59:02 PM] [CameraUI] Rpicam: FFMPEG socket closed during read for 8 bytes!
[1/13/2022, 3:59:02 PM] [CameraUI] Rpicam: FFmpeg prebuffer process exited (expected)
[1/13/2022, 3:59:02 PM] [CameraUI] Rpicam: Prebufferring process closed
[1/13/2022, 3:59:02 PM] [CameraUI] Rpicam: Restart prebuffer session..
[1/13/2022, 3:59:11 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 3:59:11 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 3:59:11 PM] [CameraUI] Rpicam: Start videoanalysis...
[1/13/2022, 3:59:11 PM] [CameraUI] Rpicam: Videoanalysis command: ffmpeg -hide_banner -loglevel error -hwaccel auto -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -map 0:v -an -vcodec pam -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[1/13/2022, 3:59:11 PM] [CameraUI] Rpicam: Videoanalysis: Currently active zones: []
[1/13/2022, 3:59:11 PM] [CameraUI] Rpicam: Videoanalysis scheduled for restart at 3AM: 661 minutes
[1/13/2022, 3:59:12 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 3:59:12 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 3:59:12 PM] [CameraUI] Rpicam: Start prebuffering...
[1/13/2022, 3:59:12 PM] [CameraUI] Rpicam: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -vcodec copy -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 1:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://<IP_ADDRESS>:10387|[f=mpegts]tcp://<IP_ADDRESS>:22796
[1/13/2022, 3:59:12 PM] [CameraUI] Rpicam: FFmpeg prebuffer process exited with error! (null) - /dev/video0: Resource busy
[1/13/2022, 3:59:12 PM] [CameraUI] Rpicam: Prebufferring process closed

Note that it's better with thos config :
    "mapaudio": "0:a",

But stiil have problems when opening live video rome Apple Home app  :
[1/13/2022, 4:18:44 PM] Homebridge v1.4.0-beta.4 (HAP v0.10.0-beta.7) (Homebridge 34EB) is running on port 53540.
[1/13/2022, 4:18:45 PM] [CameraUI] Rpicam: Setting up camera, please be patient...
[1/13/2022, 4:18:45 PM] [CameraUI] Rpicam: Probe stream: ffmpeg -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device
[1/13/2022, 4:18:46 PM] [CameraUI] Rpicam: {"probe":true,"timedout":false,"audio":["pcm_s16le","48000 Hz","stereo","s16","1536 kb/s"],"video":["h264 (High)","yuv420p(progressive)","1280x720","25 fps","25 tbr","1000k tbn","2000k tbc"]}
[1/13/2022, 4:18:46 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 4:18:46 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 4:18:46 PM] [CameraUI] Rpicam: Start prebuffering...
[1/13/2022, 4:18:46 PM] [CameraUI] Rpicam: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -vcodec copy -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 0:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://<IP_ADDRESS>:19875|[f=mpegts]tcp://<IP_ADDRESS>:11294
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Prebuffering scheduled for restart at 2AM: 581 minutes
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Start videoanalysis...
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Videoanalysis command: ffmpeg -hide_banner -loglevel error -hwaccel auto -analyzeduration 0 -probesize 500000 -f mpegts -i tcp://<IP_ADDRESS>:16169 -an -vcodec pam -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Videoanalysis: Currently active zones: []
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Videoanalysis scheduled for restart at 3AM: 641 minutes
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Configuring unbridged accessory...
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Setting up accessory...
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Adding motion sensor service
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Initializing HomeKit Secure Video
[1/13/2022, 4:18:47 PM] [CameraUI] camera.ui v5.0.6-beta.0 is listening on port 8081 (http)
[1/13/2022, 4:18:47 PM] Rpicam 5BC7 is running on port 39403.
[1/13/2022, 4:18:47 PM] Please add [Rpicam 5BC7] manually in Home app. Setup Code: 031-45-154
[1/13/2022, 4:18:55 PM] [CameraUI] Rpicam: Snapshot requested: 1280 x 720
[1/13/2022, 4:18:55 PM] [CameraUI] Rpicam: Snapshot command: ffmpeg -hide_banner -loglevel error -analyzeduration 0 -probesize 3019844 -f mpegts -i tcp://<IP_ADDRESS>:25526 -frames:v 1 -f image2 -
[1/13/2022, 4:18:56 PM] [CameraUI] Rpicam: Prebuffer request ended
[1/13/2022, 4:18:56 PM] [CameraUI] Rpicam: Fetching snapshot took 0.58 seconds.
[1/13/2022, 4:18:56 PM] [CameraUI] Rpicam: Sending snapshot: 1280x720
[1/13/2022, 4:18:56 PM] [CameraUI] Rpicam: Resize command: ffmpeg -i pipe: -frames:v 1 -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease -f image2 -
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Start stream requested: 1920x1080, 30 fps, 802 kbps
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Setting prebuffer stream as input
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Starting video stream: native
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Stream command: ffmpeg -hide_banner -loglevel level+verbose -analyzeduration 0 -probesize 3000480 -f mpegts -i tcp://<IP_ADDRESS>:12539 -an -sn -dn -vcodec copy -pix_fmt yuv420p -color_range mpeg -f rawvideo -payload_type 99 -ssrc 10510859 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params pASKzRlv2Sxq8HD/c9htj+4gpjTHQsfADPvt5Smv srtp://<IP_ADDRESS>:52659?rtcpport=52659&pkt_size=1318 -vn -sn -dn -acodec libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -ac 1 -payload_type 110 -ssrc 15962292 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params 6GIC7IiioHNopZeCsSBxuawYsYGA2l76oQklprVa srtp://<IP_ADDRESS>:50168?rtcpport=50168&pkt_size=188 -progress pipe:1
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [tcp @ 0xb6f90660] [verbose] Starting connection attempt to <IP_ADDRESS> port 12539
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [tcp @ 0xb6f90660] [verbose] Successfully connected to <IP_ADDRESS> port 12539
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [h264 @ 0xb6f93900] [verbose] Reinit context to 1280x720, pix_fmt: yuv420p
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [mpegts @ 0xb6f90020] [verbose] max_analyze_duration 5000000 reached at 5037389 microseconds st:0
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info] Input #0, mpegts, from 'tcp://<IP_ADDRESS>:12539':
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info]   Duration: N/A, start: 6.956389, bitrate: N/A
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info]   Program 1
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info]     Metadata:
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info]       service_name    : Service01
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info]       service_provider: FFmpeg
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info]     Stream #0:0[0x100]: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(progressive, left), 1280x720, 25 tbr, 90k tbn, 180k tbc
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info] Output #1, rtp, to 'srtp://<IP_ADDRESS>:50168?rtcpport=50168&pkt_size=188':
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [AVIOContext @ 0x3689f80] [verbose] Statistics: 0 seeks, 0 writeouts
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [AVIOContext @ 0xb6f907c0] [verbose] Statistics: 2712696 bytes read, 0 seeks
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Prebuffer request ended
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: FFmpeg exited with code: 1 and signal: null - [error] Output file #1 does not contain any stream
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Stopped video stream.

Note that it's better with this config :
    "mapaudio": "0:a",

But still have problems when opening live video in Apple Home app :
[1/13/2022, 4:18:44 PM] Homebridge v1.4.0-beta.4 (HAP v0.10.0-beta.7) (Homebridge 34EB) is running on port 53540.
[1/13/2022, 4:18:45 PM] [CameraUI] Rpicam: Setting up camera, please be patient...
[1/13/2022, 4:18:45 PM] [CameraUI] Rpicam: Probe stream: ffmpeg -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device
[1/13/2022, 4:18:46 PM] [CameraUI] Rpicam: {"probe":true,"timedout":false,"audio":["pcm_s16le","48000 Hz","stereo","s16","1536 kb/s"],"video":["h264 (High)","yuv420p(progressive)","1280x720","25 fps","25 tbr","1000k tbn","2000k tbc"]}
[1/13/2022, 4:18:46 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 4:18:46 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 4:18:46 PM] [CameraUI] Rpicam: Start prebuffering...
[1/13/2022, 4:18:46 PM] [CameraUI] Rpicam: Prebuffering command: ffmpeg -hide_banner -loglevel error -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -vcodec copy -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 0:a? [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]tcp://<IP_ADDRESS>:19875|[f=mpegts]tcp://<IP_ADDRESS>:11294
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Prebuffering scheduled for restart at 2AM: 581 minutes
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Start videoanalysis...
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Videoanalysis command: ffmpeg -hide_banner -loglevel error -hwaccel auto -analyzeduration 0 -probesize 500000 -f mpegts -i tcp://<IP_ADDRESS>:16169 -an -vcodec pam -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Videoanalysis: Currently active zones: []
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Videoanalysis scheduled for restart at 3AM: 641 minutes
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Configuring unbridged accessory...
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Setting up accessory...
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Adding motion sensor service
[1/13/2022, 4:18:47 PM] [CameraUI] Rpicam: Initializing HomeKit Secure Video
[1/13/2022, 4:18:47 PM] [CameraUI] camera.ui v5.0.6-beta.0 is listening on port 8081 (http)
[1/13/2022, 4:18:47 PM] Rpicam 5BC7 is running on port 39403.
[1/13/2022, 4:18:47 PM] Please add [Rpicam 5BC7] manually in Home app. Setup Code: 031-45-154
[1/13/2022, 4:18:55 PM] [CameraUI] Rpicam: Snapshot requested: 1280 x 720
[1/13/2022, 4:18:55 PM] [CameraUI] Rpicam: Snapshot command: ffmpeg -hide_banner -loglevel error -analyzeduration 0 -probesize 3019844 -f mpegts -i tcp://<IP_ADDRESS>:25526 -frames:v 1 -f image2 -
[1/13/2022, 4:18:56 PM] [CameraUI] Rpicam: Prebuffer request ended
[1/13/2022, 4:18:56 PM] [CameraUI] Rpicam: Fetching snapshot took 0.58 seconds.
[1/13/2022, 4:18:56 PM] [CameraUI] Rpicam: Sending snapshot: 1280x720
[1/13/2022, 4:18:56 PM] [CameraUI] Rpicam: Resize command: ffmpeg -i pipe: -frames:v 1 -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease -f image2 -
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Start stream requested: 1920x1080, 30 fps, 802 kbps
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Incoming ping request for: /dev/video0 -f alsa  - Timeout: 1s
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Pinging /dev/video0 -f alsa  - successfull
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Setting prebuffer stream as input
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Starting video stream: native
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Stream command: ffmpeg -hide_banner -loglevel level+verbose -analyzeduration 0 -probesize 3000480 -f mpegts -i tcp://<IP_ADDRESS>:12539 -an -sn -dn -vcodec copy -pix_fmt yuv420p -color_range mpeg -f rawvideo -payload_type 99 -ssrc 10510859 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params pASKzRlv2Sxq8HD/c9htj+4gpjTHQsfADPvt5Smv srtp://<IP_ADDRESS>:52659?rtcpport=52659&pkt_size=1318 -vn -sn -dn -acodec libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -ac 1 -payload_type 110 -ssrc 15962292 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params 6GIC7IiioHNopZeCsSBxuawYsYGA2l76oQklprVa srtp://<IP_ADDRESS>:50168?rtcpport=50168&pkt_size=188 -progress pipe:1
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [tcp @ 0xb6f90660] [verbose] Starting connection attempt to <IP_ADDRESS> port 12539
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [tcp @ 0xb6f90660] [verbose] Successfully connected to <IP_ADDRESS> port 12539
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [h264 @ 0xb6f93900] [verbose] Reinit context to 1280x720, pix_fmt: yuv420p
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [mpegts @ 0xb6f90020] [verbose] max_analyze_duration 5000000 reached at 5037389 microseconds st:0
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info] Input #0, mpegts, from 'tcp://<IP_ADDRESS>:12539':
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info]   Duration: N/A, start: 6.956389, bitrate: N/A
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info]   Program 1
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info]     Metadata:
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info]       service_name    : Service01
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info]       service_provider: FFmpeg
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info]     Stream #0:0[0x100]: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(progressive, left), 1280x720, 25 tbr, 90k tbn, 180k tbc
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [info] Output #1, rtp, to 'srtp://<IP_ADDRESS>:50168?rtcpport=50168&pkt_size=188':
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [AVIOContext @ 0x3689f80] [verbose] Statistics: 0 seeks, 0 writeouts
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: [AVIOContext @ 0xb6f907c0] [verbose] Statistics: 2712696 bytes read, 0 seeks
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Prebuffer request ended
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: FFmpeg exited with code: 1 and signal: null - [error] Output file #1 does not contain any stream
[1/13/2022, 4:18:59 PM] [CameraUI] Rpicam: Stopped video stream.

Yeah because the stream does not contain an audio stream.
It has something to do with -f alsa -i default:CARD=Device
I could test it successfully without any issues (with two different inputs video/audio)
Does the following command work for you?
ffmpeg -hide_banner -loglevel verbose -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -vcodec copy -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 1:a? "[movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]test1.mp4|[f=mpegts]test2.ts"

I had to add -ac 2 -ar 44100 to paramters of audio input, to avoid some I/O errors.
Then, the process failed with thos logs :
/homebridge # ffmpeg -hide_banner -loglevel verbose -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i de
fault:CARD=Device -vcodec copy -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 1:a? "
[movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]test1.mp4|[f=mpegts]test2.ts"
[video4linux2,v4l2 @ 0xb6f48010] fd:3 capabilities:85200005
[h264 @ 0xb6f4b200] Reinit context to 1280x720, pix_fmt: yuv420p
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start:<PHONE_NUMBER>50, bitrate: N/A
    Stream #0:0: Video: h264 (High), 1 reference frame, yuv420p(progressive, left), 1280x720, 25 fps, 25 tbr, 1000k tbn, 2000k tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'default:CARD=Device':
  Duration: N/A, start:<PHONE_NUMBER>.554415, bitrate: 1536 kb/s
    Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[graph_0_in_1_0 @ 0x45b66b0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
[format_out_0_1 @ 0x45b00d0] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1'
[auto_resampler_0 @ 0x45b0260] ch:2 chl:stereo fmt:s16 r:48000Hz -> ch:1 chl:mono fmt:s16 r:8000Hz
[mp4 @ 0x46101e0] Empty MOOV enabled; disabling automatic bitstream filtering
Not writing 'clli' atom. No content light level info.
Not writing 'mdcv' atom. Missing mastering metadata.
[tee @ 0x45ac830] filename:'test1.mp4' format:mp4
[tee @ 0x45ac830]     stream:0 codec:h264 type:video bsfs: null
[tee @ 0x45ac830]     stream:1 codec:aac type:audio bsfs: null
[mpegts @ 0x46149a0] service 1 using PCR in pid=256, pcr_period=80ms
[mpegts @ 0x46149a0] muxrate VBR, sdt every 500 ms, pat/pmt every 100 ms
[tee @ 0x45ac830] filename:'test2.ts' format:mpegts
[tee @ 0x45ac830]     stream:0 codec:h264 type:video bsfs: null
[tee @ 0x45ac830]     stream:1 codec:aac type:audio bsfs: null
Output #0, tee, to '[movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]test1.mp4|[f=mpegts]test2.ts':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0: Video: h264 (High), 1 reference frame, yuv420p(progressive, left), 1280x720 (0x0), q=2-31, 25 fps, 25 tbr, 1000k tbn, 1000k tbc
    Stream #0:1: Audio: aac (libfdk_aac) (LC), 8000 Hz, mono, s16, delay 2048, 100 kb/s
    Metadata:
      encoder         : Lavc58.91.100 libfdk_aac
[tee @ 0x45ac830] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[tee @ 0x45ac830] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
[mpegts @ 0x46149a0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 23018 >= 23018
[video4linux2,v4l2 @ 0xb6f48010] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[AVIOContext @ 0x4616920] Statistics: 0 seeks, 1 writeouts
[tee @ 0x45ac830] Slave muxer #1 failed, aborting.
av_interleaved_write_frame(): Invalid argument
No more output streams to write to, finishing.
[mp4 @ 0x46101e0] Estimating the duration of the last packet in a fragment, consider setting the duration field in AVPacket instead.
[AVIOContext @ 0x4613260] Statistics: 0 seeks, 2 writeouts
frame=    2 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.38 bitrate=N/A speed=0.958x
video:69kB audio:4kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (/dev/video0):
  Input stream #0:0 (video): 2 packets read (70672 bytes);
  Total: 2 packets (70672 bytes) demuxed
Input file #1 (default:CARD=Device):
  Input stream #1:0 (audio): 41 packets read (74952 bytes); 41 frames decoded (18738 samples);
  Total: 41 packets (74952 bytes) demuxed
Output file #0 ([movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]test1.mp4|[f=mpegts]test2.ts):
  Output stream #0:0 (video): 2 packets muxed (70672 bytes);
  Output stream #0:1 (audio): 3 frames encoded (3072 samples); 5 packets muxed (3840 bytes);
  Total: 7 packets (74512 bytes) muxed
Conversion failed!

av_interleaved_write_frame(): Invalid argument

Hmm we need to find out the correct ffmpeg command for your use case..
what about with following command(s)
ffmpeg -hide_banner -loglevel verbose -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i de fault:CARD=Device -an -sn -dn -vcodec copy -vn -sn -dn -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map 0:v? -map 1:a? " [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]test1.mp4|[f=mpegts]test2.ts"
ffmpeg -hide_banner -loglevel verbose -fflags +genpts -i rtsp://<IP_ADDRESS>/ch0_1.h264 -f lavfi -i anullsrc=cl=1 -shortest -sn -dn -vcodec copy -sn -dn -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map_metadata 0 -map 0:v? -map_metadata 1 -map 1:a? "[movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]test1.mp4|[f=mpegts]test2.ts"

Both failed. The problem seems to come from the mpegts muxer :
/homebridge # ffmpeg -hide_banner -loglevel verbose -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i de
fault:CARD=Device -sn -dn -vcodec copy -sn -dn -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map_
metadata 0 -map 0:v? -map_metadata 1 -map 1:a? "[f=mpegts]test2.ts"
[video4linux2,v4l2 @ 0xb6f44010] fd:3 capabilities:85200005
[h264 @ 0xb6f47200] Reinit context to 1280x720, pix_fmt: yuv420p
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start:<PHONE_NUMBER>16, bitrate: N/A
    Stream #0:0: Video: h264 (High), 1 reference frame, yuv420p(progressive, left), 1280x720, 25 fps, 25 tbr, 1000k tbn, 2000k tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'default:CARD=Device':
  Duration: N/A, start:<PHONE_NUMBER>.553035, bitrate: 1536 kb/s
    Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[graph_0_in_1_0 @ 0x45fb900] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
[format_out_0_1 @ 0x4585490] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1'
[auto_resampler_0 @ 0x4585a80] ch:2 chl:stereo fmt:s16 r:48000Hz -> ch:1 chl:mono fmt:s16 r:8000Hz
[mpegts @ 0x45e1a70] service 1 using PCR in pid=256, pcr_period=80ms
[mpegts @ 0x45e1a70] muxrate VBR, sdt every 500 ms, pat/pmt every 100 ms
[tee @ 0x4580d30] filename:'test2.ts' format:mpegts
[tee @ 0x4580d30]     stream:0 codec:h264 type:video bsfs: null
[tee @ 0x4580d30]     stream:1 codec:aac type:audio bsfs: null
Output #0, tee, to '[f=mpegts]test2.ts':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0: Video: h264 (High), 1 reference frame, yuv420p(progressive, left), 1280x720 (0x0), q=2-31, 25 fps, 25 tbr, 1000k tbn, 1000k tbc
    Stream #0:1: Audio: aac (libfdk_aac) (LC), 8000 Hz, mono, s16, delay 2048, 100 kb/s
    Metadata:
      encoder         : Lavc58.91.100 libfdk_aac
[tee @ 0x4580d30] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[tee @ 0x4580d30] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
[mpegts @ 0x45e1a70] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 22995 >= 22995
[video4linux2,v4l2 @ 0xb6f44010] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[AVIOContext @ 0x465aa30] Statistics: 0 seeks, 1 writeouts
[tee @ 0x4580d30] All tee outputs failed.
av_interleaved_write_frame(): Invalid argument
No more output streams to write to, finishing.
frame=    2 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.38 bitrate=N/A speed=0.963x
video:51kB audio:4kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (/dev/video0):
  Input stream #0:0 (video): 2 packets read (52208 bytes);
  Total: 2 packets (52208 bytes) demuxed
Input file #1 (default:CARD=Device):
  Input stream #1:0 (audio): 43 packets read (74760 bytes); 43 frames decoded (18690 samples);
  Total: 43 packets (74760 bytes) demuxed
Output file #0 ([f=mpegts]test2.ts):
  Output stream #0:0 (video): 2 packets muxed (52208 bytes);
  Output stream #0:1 (audio): 3 frames encoded (3072 samples); 5 packets muxed (3840 bytes);
  Total: 7 packets (56048 bytes) muxed
Conversion failed!

Yeah need to find out how to fix this:
[mpegts @ 0x45e1a70] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 22995 >= 22995
which ffmpeg version?

Here is a last one
ffmpeg -hide_banner -loglevel verbose -fflags + igndts+genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -f alsa -i de fault:CARD=Device -sn -dn -vcodec copy -sn -dn -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map_metadata 0 -map 0:v? -map_metadata 1 -map 1:a? " [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]test1.mp4|[f=mpegts]test2.ts"

Still no luck :
/homebridge # ffmpeg -hide_banner -loglevel verbose -fflags +igndts+genpts -f video4linux2 -input_format h264 -framerate 25
-video_size hd720 -i /dev/video0 -f alsa -i default:CARD=Device -sn -dn -vcodec copy -sn -dn -bsf:a aac_adtstoasc -acodec li
bfdk_aac -profile:a aac_low -flags +global_header -ar 8k -b:a 100k -ac 1 -f tee -map_metadata 0 -map 0:v? -map_metadata 1 -m
ap 1:a? " [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]test1.mp4|[f=mpegts]test2.ts"
[video4linux2,v4l2 @ 0xb6f3c010] fd:3 capabilities:85200005
[h264 @ 0xb6f3f200] Reinit context to 1280x720, pix_fmt: yuv420p
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start:<PHONE_NUMBER>00, bitrate: N/A
    Stream #0:0: Video: h264 (High), 1 reference frame, yuv420p(progressive, left), 1280x720, 25 fps, 25 tbr, 1000k tbn, 2000k tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'default:CARD=Device':
  Duration: N/A, start:<PHONE_NUMBER>.112945, bitrate: 1536 kb/s
    Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[graph_0_in_1_0 @ 0x36c24b0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
[format_out_0_1 @ 0x36b4c80] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1'
[auto_resampler_0 @ 0x36b5260] ch:2 chl:stereo fmt:s16 r:48000Hz -> ch:1 chl:mono fmt:s16 r:8000Hz
[mp4 @ 0x3792150] Empty MOOV enabled; disabling automatic bitstream filtering
Not writing 'clli' atom. No content light level info.
Not writing 'mdcv' atom. Missing mastering metadata.
[tee @ 0x372ea40] filename:'test1.mp4' format:mp4
[tee @ 0x372ea40]     stream:0 codec:h264 type:video bsfs: null
[tee @ 0x372ea40]     stream:1 codec:aac type:audio bsfs: null
[mpegts @ 0x3795890] service 1 using PCR in pid=256, pcr_period=80ms
[mpegts @ 0x3795890] muxrate VBR, sdt every 500 ms, pat/pmt every 100 ms
[tee @ 0x372ea40] filename:'test2.ts' format:mpegts
[tee @ 0x372ea40]     stream:0 codec:h264 type:video bsfs: null
[tee @ 0x372ea40]     stream:1 codec:aac type:audio bsfs: null
Output #0, tee, to ' [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]test1.mp4|[f=mpegts]test2.ts':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0: Video: h264 (High), 1 reference frame, yuv420p(progressive, left), 1280x720 (0x0), q=2-31, 25 fps, 25 tbr, 1000k tbn, 1000k tbc
    Stream #0:1: Audio: aac (libfdk_aac) (LC), 8000 Hz, mono, s16, delay 2048, 100 kb/s
    Metadata:
      encoder         : Lavc58.91.100 libfdk_aac
[tee @ 0x372ea40] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[tee @ 0x372ea40] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
[video4linux2,v4l2 @ 0xb6f3c010] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[mpegts @ 0x3795890] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 23006 >= 23006
[AVIOContext @ 0x37977f0] Statistics: 0 seeks, 1 writeouts
[tee @ 0x372ea40] Slave muxer #1 failed, aborting.
av_interleaved_write_frame(): Invalid argument
No more output streams to write to, finishing.
[mp4 @ 0x3792150] Estimating the duration of the last packet in a fragment, consider setting the duration field in AVPacket instead.
[AVIOContext @ 0x3794150] Statistics: 0 seeks, 2 writeouts
frame=    2 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.38 bitrate=N/A speed=0.933x
video:54kB audio:4kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (/dev/video0):
  Input stream #0:0 (video): 2 packets read (54987 bytes);
  Total: 2 packets (54987 bytes) demuxed
Input file #1 (default:CARD=Device):
  Input stream #1:0 (audio): 41 packets read (75036 bytes); 41 frames decoded (18759 samples);
  Total: 41 packets (75036 bytes) demuxed
Output file #0 ( [movflags=frag_keyframe+empty_moov+default_base_moof:f=mp4]test1.mp4|[f=mpegts]test2.ts):
  Output stream #0:0 (video): 2 packets muxed (54987 bytes);
  Output stream #0:1 (audio): 3 frames encoded (3072 samples); 5 packets muxed (3840 bytes);
  Total: 7 packets (58827 bytes) muxed
Conversion failed!

I found something. If I change the codecto libx264, no more problems in for those commands.
So the problem appear when input stream is copied, and audio enabled.

I found something. If I change the vcodecto libx264, no more problems in for those commands.
So the problem appears when input stream is copied, and audio enabled.

Oh, good to know.
Then I don't need to try any further. But I could still adjust the ffmpeg process so that streams with mapping will work now.
We can close this issue or, I will also add your entry above to the wiki.

You can also create a new issue (feature request) for an internal rtsp server

An other workaround is to use 'forceprebuffer' on. But it consumes much CPU. I think you could add the option -preset:v ultrafast with the forceprebuffer option to lower the CPU impact.

For the wiki, I tuned a little bit more the configuration. Here is what it's look like now :
docker-compose.yml :
version: '3.7'
services:

  rtsp:
    image: aler9/rtsp-simple-server
    restart: always
    environment:
      - TZ=Europe/Paris
      - RTSP_PROTOCOLS=tcp
    ports:
      - 8554:8554

  ffmpeg-usbcam:
    image: oznu/homebridge
    restart: always
    environment:
      - TZ=Europe/Paris
    devices:
      - /dev/video0
      - /dev/snd
    entrypoint: /bin/exec
    command: /bin/sh -c "apk add alsa-utils && ffmpeg -thread_queue_size 512 -fflags +genpts -f video4linux2 -input_format h264 -framerate 25 -video_size hd720 -i /dev/video0 -thread_queue_size 512 -fflags +genpts -f alsa -ac 1 -ar 32k -i default:CARD=Device -map 0:v -map 1:a -codec:v copy -preset:v ultrafast -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -ar 32k -b:a 64k -ac 1 -shortest -f rtsp rtsp://rtsp:8554/live/usbcam.stream"

  homebridge:
    image: oznu/homebridge:latest
    container_name: homebridge
    restart: always
    network_mode: host
    environment:
      - TZ=Europe/Paris
      - PGID=1000
      - PUID=1000
      - HOMEBRIDGE_CONFIG_UI=1
      - HOMEBRIDGE_CONFIG_UI_PORT=8085
    volumes:
      - ~/dockers/data/homebridge:/homebridge

And the config.json :
            "cameras": [
                {
                    "name": "Rpicam",
                    "motion": true,
                    "motionTimeout": 60,
                    "unbridge": true,
                    "hsv": true,
                    "prebuffering": true,
                    "prebufferLength": 4,
                    "videoConfig": {
                        "source": "-i rtsp://localhost:8554/live/usbcam.stream",
                        "vcodec": "copy",
                        "acodec": "copy",
                        "audio": true,
                        "debug": false
                    },
                    "videoanalysis": {
                        "active": true
                    }

And the internal rtsp server will also reduce the CPU consumption against the "tee" muxer. So I'll open a feature request for that.
[EDIT] For my information, why are you using the mpegts muxer and mp4 muxer ? I think the mpegs muxer is much more constraining, and that's the cause of the problem I had.

The mp4 muxer is for caching the last 15s of the stream for HSV (HSV works only with fragmented mp4) and the mpegts muxer is for caching the stream to allow Apple Home to start the stream immediately or show a new Snapshot instant in Apple Home

Thank you for your help 🥇 !
I'm closing this issue, as I opened the feature request for rtsp server.


Add ability to edit the timesheets in localstorage

Use cases

To log time that wasn't tracked through the stopwatch splits
To add/modify details in the splits

https://github.com/nitinav/stopwatch-timesheets/commit/1ec271ea2feb1e4f21f32dd82bc135ba06e94522


chore(pui): update deps

All of these libs relied upon iconography and therefore require a bump
when iconography made a breaking chage.
None of these libraries relied upon the part of iconography that changed

Looks good!


Client::new requirement not clear

Version
hyper 0.14(.17)
Description
In the documentation, it is not clear that the function Client::new needs the tcp feature enable, otherwise it would throw an function not found error
Example
Cargo.toml:
[package]
name = "hyper_test"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
hyper = { version = "0.14", features = ["client", "http1", "http2"] }

main.rs:
use hyper::client::Client;

fn main() {
    let client = Client::new();
}

output:
error[E0599]: no function or associated item named `new` found for struct `Client` in the current scope
 --> src/main.rs:4:26
  |
4 |     let client = Client::new();
  |                          ^^^ function or associated item not found in `Client<_, _>`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `hyper_test` due to previous error

Ah ok, seems like we can add a doc(cfg(tcp)) to that function.


[optim] Add pytorch reference for adam

Add pytorch reference mode for adam which references adam implementation
of pytorch.
Signed-off-by: Parichay Kapoor<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #1790. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnstreamer.mooo.com/.

:octocat: cibot: @kparichay, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1790-202112141634140.52379202842712-bccfe34e54da0e7b112897f5cbc480d2065e37b7/.

:octocat: cibot: @kparichay, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1790-202112221900080.84332799911499-bccfe34e54da0e7b112897f5cbc480d2065e37b7/.


Add docsting on eval_max_episode_len

LGTM.  Travis CI's fails are OK because they are fixed by #180


feat: update worker config to use cronjobs

@shyim the crons directive is currently missing in your PR, right before line 213 scheduler.
It should be something like:
crons:
    scheduler:
        spec: '*/5 * * * *'
        cmd: 'php bin/console scheduled-task:run --no-wait'


Clustering in mesh mode

I tried to have two instances of peer calls in mesh mode and used a common redis to share data between instances.
First i faced a problem: the ws always returns client size 0, i found that the names (metadata) was not written in redis so i put their id instead of their name. i think there are some issue with negotiation.
Then i can see empty boxes of all users but not the live videos. could you write some instructions how to make clusters?
PS:
I found that SetMetadata for redisadapter just reads the data and does not set anything is it right?
func (a *RedisAdapter) SetMetadata(clientID string, metadata string) (ok bool) {
	metadata, err := a.pubRedis.HGet(a.keys.roomClients, clientID).Result()
	a.log.Printf("SetMetadata for clientID: %s, metadata: %s (err: %s)", clientID, metadata, err)
	return err != nil
}

Regards

Thanks for pointing this out @iesreza! That was indeed a bug.
I was focusing on the SFU to work, and currently SFU only supports a single node. Once I implement transports for server node-to-node communication, that'll be the time write more tests for redis support.
In the meantime, please let me know if you are stilll experiencing issues with redis when using the mesh network?

You done great job.
Unfortunately i faced some issue when i tried clustering using mesh mode. i can get list of users but not the live video. i think its related to storing data on redis.
For now i accomplished to make cluster in memory mode using path hash load balancing.

Sorry to hear you're still having issues. I'm going to have a deeper look at this over the weekend.

@iesreza This should be fixed now. Please reopen the issue if you continue experiencing problems!


Shared Folders not working on kernel 4.0.5-1

kernel 4.0.5-1 is the default kernel for openSUSE Tumbleweed.
This should be a tested and supported kernel.
Compiling Tools 9.9.3.
No error thrown compiling vmhgfs.
Shared Folders "No Device" found when attempting to mount.
All other Tools capabilities seem to be working properly.

Fixed by #64? If not, please reopen.

Just checked on an openSUSE Tumbleweed, shared folders is broken after doing a git pull to ensure running latest main branch. Earlier today, I updated an Ubuntu running kernel 3.13.x and an openSUSE 13.2 running kernel 3.16.x with no problems.
So, it appears there is probably a current problem running kernel 4.x.
From my TW
uname -a
Linux linux-cm8y 4.1.4-1-desktop #1 SMP PREEMPT Mon Aug 3 18:25:04 UTC 2015 (a37e14f) x86_64 x86_64 x86_64 GNU/Linux

For anyone who wants to set up a test environment, I'm using openSUSE Tumbleweed.
I also expect that Fedora Rawhide likely runs with a bleeding edge kernel release.
Both the above distribute and run bleeding edge kernels by default so you don't have to do anything unusual to get a bleeding edge kernel installed, is default.
For anyone who wants to set up an openSUSE Tumbleweed, these are the main requirements...
From the TW portal page
https://en.opensuse.org/openSUSE:Tumbleweed_installation#Repositories
You can download an install ISO, the following link is to the x64 iso
http://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso
When installing openSUSE TW, I recommend choosing "advanced" so that you do not accept all the defaults (although you can do so). You then have the ability to choose non-default options like the DE.
I recommend installing a lightweight DE like LXDE or XFCE which will run easily with 2GB RAM instead of the default KDE which I've found requires twice as much RAM.
Once the install has been completed, you must install a special package that contains legacy net tools to run VMware-tools-patches(VMware should fix their Tools to use ip instead). Run the following command from a root console (su). I included "git" just so it isn't forgotten
zypper install net-tools-deprecated git
Your system is now prepped to clone this project's repo and install the VMware tools patches.
You can verify tools has been successfully installed by re-sizing your Guest Window,  tools will enable the Guest to auto-resize the display to fill the window. But, when you test for the shared folders mount you will find it's not created.

Update: I found an error message I don't remember seeing before... "This program could not find a valid path to  the gcc binary."
Have verified gcc is properly installed, am speculating for now that gcc 5.1.1 is not supported by the VMware tools compiler. Am looking for a way to downgrade the compiler.
As I described earlier, this is a new development since Tools was partially working.
At the moment I will need to do some investigation to verify my suspicion that the problem is the gcc version.


[Feature]: dedicated quicksaving integration

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I need to take my hands off of my (fictional) controller to load a quicksave/make one during a difficult time.
What is the issue that you are facing, that you would like resolved? How would it benefit players?

To add in a custom packet to handle creating quicksaves, loading the last quicksave, and bringing up the quicksave menu.
Is it an existing/new feature in the game that would benefit from support by this mod?

The standard game saving 🤷♂

For the record, this is doable in Windows with the keyboard emulation.

May be done using the GamePersistence class and/or the QuickSaveLoad class.
In particular, this seems to be handled in kos here for quicksave and here for quickload.


defaultStackFilter and/or tests need updating for causal async stacks

@Hixie @johnmccutchan
Trying to roll the engine, I see that a few tests are failing because the new causal async stacktraces include new frames the tests don't expect. There's a tension between the defaultStackFilter trying to reduce verbosity and causal async stack trying to provide context.

Sorry, that test is over testing.  Feel free to change the test.

Please feel free to change the test, as @abarth suggests, but I'd like to review the change before checkin.
Also, the stack trace in https://travis-ci.org/flutter/flutter/builds/201356918 is crazy, what is going on there?

For a program like
baz() async => throw "XYZ";
bar() async => await baz();
foo() async => await bar();
main() async => await foo();

the stack trace used to be
#0      baz.<baz_async_body> (file:///Users/rmacnak/dart1/sdk/a.dart:2:16)
#1      Future.Future.microtask.<anonymous closure> (dart:async/future.dart:184)
#2      _microtaskLoop (dart:async/schedule_microtask.dart:41)
#3      _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)
#4      _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149)

but now is
#0      baz (file:///Users/rmacnak/dart1/sdk/a.dart:2:16)
<asynchronous suspension>
#1      bar (file:///Users/rmacnak/dart1/sdk/a.dart:3:22)
<asynchronous suspension>
#2      foo (file:///Users/rmacnak/dart1/sdk/a.dart:4:22)
<asynchronous suspension>
#3      main (file:///Users/rmacnak/dart1/sdk/a.dart:5:23)
<asynchronous suspension>
#4      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:261)
#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)

@rmacnak-google Can you clarify what needs changing here?

@rmacnak-google since there hasn't been a response since 2017, I am going to close the issue. If this is still relevant, please reopen and provide more information.


[SL-GRID] Custom sort function doesn't seem to work

Provide a general summary of the issue here
When using a custom sort function with sl-grid-sort-column, the sort function is not used.
<sl-grid-sort-column path="description" direction="asc" .sorter=${sort}></sl-grid-sort-column>

🤔 Expected Behavior?
given the sort function (a: Foo, b: Foo) => a.description.toLocaleLowerCase().localeCompare(b.description.toLocaleLowerCase())
The sort order should be a, B, c and not B, a, c
😯 Current Behavior

💁 Possible Solution

🖥 Steps to Reproduce
Clone the repository at https://github.com/fransdeboer/grid-sort
run npm ci to install all dependencies
run npm run dev to start the application. Open a browser at http://localhost:5173/
What browsers are you seeing the problem on? (only for bugs in code)
Chrome
If other, please specify.
No response
What operating system are you using?
WSL
👤 Your name
Frans de Boer
🧢 Your product/team
Magister
🎨 Your Theme(s)
Magister

@fransdeboer the sorting will be improved in this PR: https://github.com/sl-design-system/components/pull/1676,
so your previous example will work fine without changes on your side :) It will just work with custom sorter function and path added to the sl-grid-sort-column.


URL query is missing when started with no_prefix & ssr:false

Environment

Operating System: Darwin
Node Version:     v18.13.0
Nuxt Version:     3.7.3
CLI Version:      3.8.4
Nitro Version:    2.6.3
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      ssr, modules, i18n, devtools
Runtime Modules<EMAIL_ADDRESS>Build Modules:    -

Reproduction
https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-tc3aqw?file=nuxt.config.ts

Wait for the start command to complete.
Open preview in a new tab
Refresh the screen with an appropriate query to the URL e.g.  https://bobbiegoedenuxti18nstartertc3a-ds0n-bmnkfze2--3000--5291dfc1.local-credentialless.webcontainer.io/?test=1
The query granted in (3) is deleted and redirected

Describe the bug
When nuxt-i18n is configured with certain conditions and nuxt is built (generate) in production mode, when accessing a URL with a query, the query is redirected to the missing URL.
This problem appears to be caused by the following preconditions

Set to no_prefix mode.
-ssr is set tofalse.

Additional context
Some redirects with URL queries are assumed during page initialization, such as modules for authentication, and this issue affects them.
Logs
No response

This issue has been fixed by https://github.com/nuxt-modules/i18n/pull/2397 but has not yet been released in an RC version. You can try it out by installing the edge channel like so: npm i -D @nuxtjs/i18n@npm:@nuxtjs/i18n-edge

@BobbieGoede
I see that it was a known issue! Thanks a lot.


fix: show response on errors upon login(unauthorized(401) or server error(500))

Changes are made, please review again


Error during project build "postcss-svgo: TypeError: Cannot set property 'multipassCount' of undefined"

Describe the bug
Getting failed to compile error during build process on
`$ react-scripts build
Creating an optimized production build...
Failed to compile.
postcss-svgo: TypeError: Cannot set property 'multipassCount' of undefined
error Command failed with exit code 1.`
Environment

Environment Info:
System:
OS: macOS 10.14.6
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Binaries:
Node: 12.13.0 - /usr/local/bin/node
Yarn: 1.19.1 - ~/.yarn/bin/yarn
npm: 6.12.0 - /usr/local/bin/npm
Browsers:
Chrome: 78.0.3904.70
Firefox: Not Found
Safari: 13.0.3
npmPackages:
react: ^16.8.6 => 16.11.0
react-dom: ^16.8.6 => 16.11.0
react-scripts: 3.1.2 => 3.1.2
npmGlobalPackages:
create-react-app: Not Found
Steps to reproduce

(Write your steps here:)

yarn install
2.yarn build

Expected behavior
React build process will spit out a Build folder with project files.

Looks like the problem not in create-react-app: I had the same error right now on docker build without react ecosystem.

Related:
https://github.com/svg/svgo/issues/1174

FWIW, Both css-tree and postcss pushed releases recently that are getting picked up by create-react-app now. Don't know if related.

Related:
svg/svgo#1174

Thank you @jsphstls , This issue is being talked about here.
Temporary fix: https://github.com/svg/svgo/issues/1174#issuecomment-547643398

i have a same problem, and my problem was a bootstrap library, i recommend that remove some libraries and then run the build stage.

i have a samem problem for my problec react built with webpack or not.

The solution that worked for me:
manually install the svgo dependency, either with npm or by popping the below into your package.json file as a dependency:
  "svgo": "1.3.0",
rm -rf node_modules
npm i
This seems to force bootstrap (and it is react-bootstrap, not create-react-app) to use the working version.

The cause of this issue a new release of svgo with 1.3.1 version; So if you encountered this issue probably you don't use package-lock.json; Adding package-lock with 1.3.0 version of svgo fixed issue for me.

Yes and also do that for yarn https://github.com/svg/svgo/issues/1174#issuecomment-547658450 @Piotrovskyi

Fixed in<EMAIL_ADDRESS>(https://github.com/svg/svgo/pull/1176)
For yarn users, package.json:
  "devDependencies": {
    // ...
    "svgo": "1.3.2",
    // ...
  },
  "resolutions": {
    // ...
    "svgo": "1.3.2"
    // ...
  }


Add APIs to get ordinal and category cache hit/miss count and hit rate in DirectoryTaxonomyReader

Description
Added apis in DirectoryTaxonomyReader to get the ordinalCache and categoryCache hit/miss count and also cache hit rate and a unit test testCacheHitAndMissCount to check the behaviour.

Thats a good point @gsmiller. Looks like we didn't achieve to an conclusion there. I'll run some benchmarks with/without these caches and see if they are still useful.

Thanks @shubhamvishu! Really curious to see what we learn there.

Thanks again @shubhamvishu for raising the idea and looking into the effectiveness of the caches more generally!


Fix building with ghc 7.8.

Import Data.Traversable as needed. Builds and all tests pass with
ghc-7.8.4 and ghc-7.10.2.
Closes: https://github.com/bttr/psqueues/issues/13

Thanks!


Fixed redundant scripts section in package.json

Broken when testcafe/jest has been added.

Closed because it's not the only issue, gulpfile looks to be broken too.