Closed JasonGehring closed 8 months ago
I would definitely like to try this out. But I'm not sure how I can try your version since this has not been merged yet.
Loving this, great job! :)
I tried something similar a while ago and remember using UVC G4 PTZ
as the simulated Unifi camera, so I was getting PTZ controls inside Protect. That way there was no need for hacking into brightness controls.
I found some old code I used, in entrypoint.sh I had:
exec unifi-cam-proxy --host "$HOST" --model "UVC G4 PTZ" --name "${NAME:-unifi-cam-proxy}" --mac "${MAC:-'AA:BB:CC:00:11:22'}" --cert /client.pem --token "$TOKEN" --ip="192.168.0.222" tapo --username="xxxx" --password="xxxx" --ffmpeg-args='-c:a copy -c:v copy -bsf:v "h264_metadata=tick_rate=30000/1001"'
I could then use process_continuous_move(self, msg: AVClientRequest)
to do the moving stuff..
async def process_continuous_move(self, msg: AVClientRequest) -> None:
xDirection = msg["payload"]["x"]
yDirection = msg["payload"]["y"]
print(f"xDirection: {xDirection}")
If you want more details lmk, I could give you access to my private repo (too ashamed to make that public :D) and we could discuss more.
I would definitely like to try this out. But I'm not sure how I can try your version since this has not been merged yet.
Change the image: ...
line in docker-compose.yml
to build: https://github.com/JasonGehring/unifi-cam-proxy.git
, and run sudo docker compose up --force-recreate
.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Thanks for your contribution. I planed to take some Tapo camera and tring to make my unifi Protect work with (of course unifi-cam-proxy). I hope the author considerate this PR for Tapo camera.
@alexandruboboc any chance you could share your repo? would love to give it a try
I made a fork of Jason's repo and cherry-picked some other fixes into it here: https://github.com/zacharee/unifi-cam-proxy.
I don't plan on actively developing it, but I will check out and merge PRs made against it, so we can hopefully have a less fragmented and more active proxy repo.
@zacharee
Really appreciate you giving this a go !
I gave yours a try and it fails due to some mqtt errors
AttributeError: 'Client' object has no attribute 'message_retry_set'
We renamed asyncio-mqtt to aiomqtt and released a version 1.0.0 in the process. This is the last release under the asyncio-mqtt name. You can find the new repository at https://github.com/sbtinstruments/aiomqtt
2024-05-04 20:49:49 ae0a2a7c3eca Core[1] INFO Creating ws connection to wss://192.168.100.1:7442/camera/1.0/ws?token=xxxxxx
2024-05-04 20:49:49 ae0a2a7c3eca FrigateCam[1] INFO Adopting with token [xxxxx] and mac [AA:BB:CC:00:11:22]
2024-05-04 20:49:49 ae0a2a7c3eca FrigateCam[1] INFO Cleaning up instance
Traceback (most recent call last):
File "/usr/local/bin/unifi-cam-proxy", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/unifi/main.py", line 174, in main
loop.run_until_complete(run())
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/site-packages/unifi/main.py", line 169, in run
await c.run()
File "/usr/local/lib/python3.9/site-packages/unifi/core.py", line 81, in run
await connect()
File "/usr/local/lib/python3.9/site-packages/backoff/_async.py", line 76, in retry
ret = await target(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/unifi/core.py", line 72, in connect
await asyncio.gather(*tasks)
File "/usr/local/lib/python3.9/site-packages/unifi/cams/frigate.py", line 88, in run
await mqtt_connect()
File "/usr/local/lib/python3.9/site-packages/backoff/_async.py", line 76, in retry
ret = await target(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/unifi/cams/frigate.py", line 68, in mqtt_connect
async with Client(
File "/usr/local/lib/python3.9/site-packages/asyncio_mqtt/client.py", line 349, in __init__
self._client.message_retry_set(message_retry_set)
AttributeError: 'Client' object has no attribute 'message_retry_set'
We renamed asyncio-mqtt to aiomqtt and released a version 1.0.0 in the process. This is the last release under the asyncio-mqtt name. You can find the new repository at https://github.com/sbtinstruments/aiomqtt
2024-05-04 20:49:58 ae0a2a7c3eca Core[1] INFO Creating ws connection to wss://192.168.100.1:7442/camera/1.0/ws?token=gv24c7A88wkiBMmLjo0RSscvjjDGK7nL
2024-05-04 20:49:58 ae0a2a7c3eca FrigateCam[1] INFO Adopting with token [gv24c7A88wkiBMmLjo0RSscvjjDGK7nL] and mac [AA:BB:CC:00:11:22]
2024-05-04 20:49:58 ae0a2a7c3eca FrigateCam[1] INFO Cleaning up instance
Traceback (most recent call last):
File "/usr/local/bin/unifi-cam-proxy", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/unifi/main.py", line 174, in main
loop.run_until_complete(run())
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/site-packages/unifi/main.py", line 169, in run
await c.run()
File "/usr/local/lib/python3.9/site-packages/unifi/core.py", line 81, in run
await connect()
File "/usr/local/lib/python3.9/site-packages/backoff/_async.py", line 76, in retry
ret = await target(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/unifi/core.py", line 72, in connect
await asyncio.gather(*tasks)
File "/usr/local/lib/python3.9/site-packages/unifi/cams/frigate.py", line 88, in run
await mqtt_connect()
File "/usr/local/lib/python3.9/site-packages/backoff/_async.py", line 76, in retry
ret = await target(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/unifi/cams/frigate.py", line 68, in mqtt_connect
async with Client(
File "/usr/local/lib/python3.9/site-packages/asyncio_mqtt/client.py", line 349, in __init__
self._client.message_retry_set(message_retry_set)
AttributeError: 'Client' object has no attribute 'message_retry_set'
We renamed asyncio-mqtt to aiomqtt and released a version 1.0.0 in the process. This is the last release under the asyncio-mqtt name. You can find the new repository at https://github.com/sbtinstruments/aiomqtt
2024-05-04 20:50:13 ae0a2a7c3eca Core[1] INFO Creating ws connection to wss://192.168.100.1:7442/camera/1.0/ws?token=gv24c7A88wkiBMmLjo0RSscvjjDGK7nL
2024-05-04 20:50:13 ae0a2a7c3eca FrigateCam[1] INFO Adopting with token [gv24c7A88wkiBMmLjo0RSscvjjDGK7nL] and mac [AA:BB:CC:00:11:22]
2024-05-04 20:50:13 ae0a2a7c3eca FrigateCam[1] INFO Cleaning up instance
Traceback (most recent call last):
File "/usr/local/bin/unifi-cam-proxy", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/unifi/main.py", line 174, in main
loop.run_until_complete(run())
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/site-packages/unifi/main.py", line 169, in run
await c.run()
File "/usr/local/lib/python3.9/site-packages/unifi/core.py", line 81, in run
await connect()
File "/usr/local/lib/python3.9/site-packages/backoff/_async.py", line 76, in retry
ret = await target(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/unifi/core.py", line 72, in connect
await asyncio.gather(*tasks)
File "/usr/local/lib/python3.9/site-packages/unifi/cams/frigate.py", line 88, in run
await mqtt_connect()
File "/usr/local/lib/python3.9/site-packages/backoff/_async.py", line 76, in retry
ret = await target(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/unifi/cams/frigate.py", line 68, in mqtt_connect
async with Client(
File "/usr/local/lib/python3.9/site-packages/asyncio_mqtt/client.py", line 349, in __init__
self._client.message_retry_set(message_retry_set)
AttributeError: 'Client' object has no attribute 'message_retry_set'
We renamed asyncio-mqtt to aiomqtt and released a version 1.0.0 in the process. This is the last release under the asyncio-mqtt name. You can find the new repository at https://github.com/sbtinstruments/aiomqtt
2024-05-04 20:50:42 ae0a2a7c3eca Core[1] INFO Creating ws connection to wss://192.168.100.1:7442/camera/1.0/ws?token=gv24c7A88wkiBMmLjo0RSscvjjDGK7nL
2024-05-04 20:50:42 ae0a2a7c3eca FrigateCam[1] INFO Adopting with token [gv24c7A88wkiBMmLjo0RSscvjjDGK7nL] and mac [AA:BB:CC:00:11:22]
2024-05-04 20:50:42 ae0a2a7c3eca FrigateCam[1] INFO Cleaning up instance
Traceback (most recent call last):
File "/usr/local/bin/unifi-cam-proxy", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/unifi/main.py", line 174, in main
loop.run_until_complete(run())
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/site-packages/unifi/main.py", line 169, in run
await c.run()
File "/usr/local/lib/python3.9/site-packages/unifi/core.py", line 81, in run
await connect()
File "/usr/local/lib/python3.9/site-packages/backoff/_async.py", line 76, in retry
ret = await target(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/unifi/core.py", line 72, in connect
await asyncio.gather(*tasks)
File "/usr/local/lib/python3.9/site-packages/unifi/cams/frigate.py", line 88, in run
await mqtt_connect()
File "/usr/local/lib/python3.9/site-packages/backoff/_async.py", line 76, in retry
ret = await target(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/unifi/cams/frigate.py", line 68, in mqtt_connect
async with Client(
File "/usr/local/lib/python3.9/site-packages/asyncio_mqtt/client.py", line 349, in __init__
self._client.message_retry_set(message_retry_set)
AttributeError: 'Client' object has no attribute 'message_retry_set'
➜ shared-config
unifi-driveway-proxy:
image: unifi-cam-proxy:dyer-latest
# keshavdv/unifi-cam-proxy:dev
container_name: "unifi-driveway-proxy"
restart: unless-stopped
networks:
frigate:
labels:
com.centurylinklabs.watchtower.enable: true
volumes:
- "/common/shared-config/unifi-cam-proxy/client.pem:/client.pem"
command: >-
unifi-cam-proxy
--host 192.168.100.1
--mac 'AA:BB:CC:00:11:22'
--ip '192.168.100.3'
--model 'UVC G4 PTZ'
--name 'Proxy Test'
--cert /client.pem
--token xxxxx
--model 'UVC G4 PTZ'
frigate -s "rtsp://frigate:8554/driveway_low"
--mqtt-host "192.168.120.254" --mqtt-port 1883
--frigate-camera frigate_driveway
--snapshot-url "http://admin:xxxxx*xxx@http://192.168.140.123/cgi-bin/snapshot.cgi"
I would have opened under your repo but you're not allowing issues there :)
Hmm, you're not able to see the Issues tab? I enabled it in the repo settings so I'm not sure what's up:
@zacharee and strange, it is there now... maybe I was just blind the first time... want me to reopen this under your fork?
I just pushed a commit to update dependencies that should hopefully fix the error. Can you try it,since I don't have a Frigate camera instance myself?
@zacharee seemed to have gotten much further... Now getting some random ffmpeg error I'll have to work through
2024-05-04 21:09:59 d870de6da53d FrigateCam[1] INFO Spawning ffmpeg for video1 (pKNVvXcmjgTZi7rb): ffmpeg -nostdin -loglevel error -y -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -timeout 15000000 -rtsp_transport tcp -i "rtsp://frigate:8554/driveway_low" -metadata streamName=pKNVvXcmjgTZi7rb -f flv - | /usr/local/bin/python -m unifi.clock_sync --timestamp-modifier 90 | nc 192.168.100.1 7550
Option b:a (video bitrate (please use -b:v)) cannot be applied to input url rtsp://frigate:8554/driveway_low -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for input file rtsp://frigate:8554/driveway_low.
Error opening input files: Invalid argument
2024-05-04 21:09:59 d870de6da53d FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:10:02 d870de6da53d FrigateCam[1] INFO Processing [ChangeIspSettings] message
2024-05-04 21:10:03 d870de6da53d FrigateCam[1] INFO Processing [ChangeOsdSettings] message
2024-05-04 21:10:03 d870de6da53d FrigateCam[1] INFO Processing [ChangeSoundLedSettings] message
2024-05-04 21:10:03 d870de6da53d FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:10:03 d870de6da53d FrigateCam[1] INFO Processing [ChangeSmartMotionSettings] message
2024-05-04 21:10:03 d870de6da53d FrigateCam[1] INFO Processing [EnableLogging] message
2024-05-04 21:10:03 d870de6da53d FrigateCam[1] INFO Processing [ChangeDeviceSettings] message
2024-05-04 21:10:03 d870de6da53d FrigateCam[1] INFO Processing [ChangeDeviceSettings] message
2024-05-04 21:10:03 d870de6da53d FrigateCam[1] INFO Processing [SmartMotionTest] message
2024-05-04 21:10:03 d870de6da53d FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:10:03 d870de6da53d FrigateCam[1] INFO Processing [AudioAgentChangeTuning] message
2024-05-04 21:10:03 d870de6da53d FrigateCam[1] INFO Processing [UpdateUsernamePassword] message
2024-05-04 21:10:03 d870de6da53d FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:10:03 d870de6da53d FrigateCam[1] INFO Processing [ChangeSmartDetectSettings] message
2024-05-04 21:10:03 d870de6da53d FrigateCam[1] INFO Processing [ChangeSmartDetectSettings] message
2024-05-04 21:10:04 d870de6da53d FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:10:09 d870de6da53d FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:10:14 d870de6da53d FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:10:17 d870de6da53d FrigateCam[1] INFO Processing [ChangeVideoSettings] message
ffmpeg version 5.1.4 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r4) 20220924
configuration: --prefix=/usr --enable-avfilter --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libpulse --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-lto --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-librist --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --disable-lzma --enable-libaom --enable-libopus --enable-libsoxr --enable-libwebp --enable-vaapi --enable-vdpau --enable-vulkan --enable-libdrm --enable-libzmq --optflags=-O2 --disable-debug --enable-libsvtav1
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
2024-05-04 21:10:18 d870de6da53d FrigateCam[1] WARNING Previous ffmpeg process for video3 died.
2024-05-04 21:10:18 d870de6da53d FrigateCam[1] INFO Spawning ffmpeg for video3 (xfhwCDFGBZi1rzsm): ffmpeg -nostdin -loglevel error -y -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -timeout 15000000 -rtsp_transport tcp -i "rtsp://frigate:8554/driveway_low" -metadata streamName=xfhwCDFGBZi1rzsm -f flv - | /usr/local/bin/python -m unifi.clock_sync --timestamp-modifier 90 | nc 192.168.100.1 7550
Option b:a (video bitrate (please use -b:v)) cannot be applied to input url rtsp://frigate:8554/driveway_low -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for input file rtsp://frigate:8554/driveway_low.
Error opening input files: Invalid argument
2024-05-04 21:10:19 d870de6da53d FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:10:22 d870de6da53d FrigateCam[1] INFO Processing [ChangeVideoSettings] message
ffmpeg version 5.1.4 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r4) 20220924
configuration: --prefix=/usr --enable-avfilter --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libpulse --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-lto --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-librist --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --disable-lzma --enable-libaom --enable-libopus --enable-libsoxr --enable-libwebp --enable-vaapi --enable-vdpau --enable-vulkan --enable-libdrm --enable-libzmq --optflags=-O2 --disable-debug --enable-libsvtav1
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
2024-05-04 21:10:22 d870de6da53d FrigateCam[1] WARNING Previous ffmpeg process for video1 died.
2024-05-04 21:10:22 d870de6da53d FrigateCam[1] INFO Spawning ffmpeg for video1 (pKNVvXcmjgTZi7rb): ffmpeg -nostdin -loglevel error -y -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -timeout 15000000 -rtsp_transport tcp -i "rtsp://frigate:8554/driveway_low" -metadata streamName=pKNVvXcmjgTZi7rb -f flv - | /usr/local/bin/python -m unifi.clock_sync --timestamp-modifier 90 | nc 192.168.100.1 7550
Option b:a (video bitrate (please use -b:v)) cannot be applied to input url rtsp://frigate:8554/driveway_low -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for input file rtsp://frigate:8554/driveway_low.
Error opening input files: Invalid argument
Were you getting that error with the original repo's image?
Nope, appears not
024-05-04 21:18:59 b60024189291 Core[1] INFO Creating ws connection to wss://192.168.100.1:7442/camera/1.0/ws?token=xxxxx
2024-05-04 21:18:59 b60024189291 FrigateCam[1] INFO Adopting with token [xxxxxx] and mac [AA:BB:CC:00:11:22]
2024-05-04 21:18:59 b60024189291 FrigateCam[1] INFO Connected to 192.168.120.254:1883
filtered_messages() is deprecated and will be removed in a future version. Use messages() together with Topic.matches() instead.
filtered_messages() is deprecated and will be removed in a future version. Use messages() together with Topic.matches() instead.
2024-05-04 21:18:59 b60024189291 FrigateCam[1] INFO Processing [ubnt_avclient_hello] message
2024-05-04 21:18:59 b60024189291 FrigateCam[1] INFO Processing [ubnt_avclient_paramAgreement] message
2024-05-04 21:18:59 b60024189291 FrigateCam[1] INFO Processing [StopService] message
2024-05-04 21:18:59 b60024189291 FrigateCam[1] INFO Processing [ubnt_avclient_hello] message
2024-05-04 21:18:59 b60024189291 FrigateCam[1] INFO Processing [ChangeDeviceSettings] message
2024-05-04 21:18:59 b60024189291 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
ffmpeg version 5.1.3 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r4) 20220924
configuration: --prefix=/usr --enable-avfilter --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libpulse --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-lto --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-librist --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --disable-lzma --enable-libaom --enable-libopus --enable-libsoxr --enable-libwebp --enable-vaapi --enable-vdpau --enable-vulkan --enable-libdrm --enable-libzmq --optflags=-O2 --disable-debug --enable-libsvtav1
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
2024-05-04 21:19:00 b60024189291 FrigateCam[1] INFO Spawning ffmpeg for video3 (xfhwCDFGBZi1rzsm): ffmpeg -nostdin -loglevel error -y -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -timeout 15000000 -rtsp_transport tcp -i "rtsp://frigate:8554/driveway_low" -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamName=xfhwCDFGBZi1rzsm -f flv - | /usr/local/bin/python -m unifi.clock_sync --write-timestamps | nc 192.168.100.1 7550
2024-05-04 21:19:00 b60024189291 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:19:00 b60024189291 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:19:00 b60024189291 FrigateCam[1] INFO Processing [ubnt_avclient_paramAgreement] message
2024-05-04 21:19:04 b60024189291 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:19:04 b60024189291 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
ffmpeg version 5.1.3 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r4) 20220924
configuration: --prefix=/usr --enable-avfilter --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libpulse --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-lto --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-librist --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --disable-lzma --enable-libaom --enable-libopus --enable-libsoxr --enable-libwebp --enable-vaapi --enable-vdpau --enable-vulkan --enable-libdrm --enable-libzmq --optflags=-O2 --disable-debug --enable-libsvtav1
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
2024-05-04 21:19:04 b60024189291 FrigateCam[1] INFO Spawning ffmpeg for video1 (pKNVvXcmjgTZi7rb): ffmpeg -nostdin -loglevel error -y -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -timeout 15000000 -rtsp_transport tcp -i "rtsp://frigate:8554/driveway_low" -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamName=pKNVvXcmjgTZi7rb -f flv - | /usr/local/bin/python -m unifi.clock_sync --write-timestamps | nc 192.168.100.1 7550
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [ChangeIspSettings] message
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [ChangeOsdSettings] message
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [ChangeSoundLedSettings] message
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [ChangeSmartMotionSettings] message
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [EnableLogging] message
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [ChangeDeviceSettings] message
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [ChangeDeviceSettings] message
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [SmartMotionTest] message
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [AudioAgentChangeTuning] message
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [UpdateUsernamePassword] message
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [ChangeSmartDetectSettings] message
2024-05-04 21:19:05 b60024189291 FrigateCam[1] INFO Processing [ChangeSmartDetectSettings] message
2024-05-04 21:19:09 b60024189291 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:19:14 b60024189291 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:19:19 b60024189291 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:19:24 b60024189291 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:19:29 b60024189291 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:19:34 b60024189291 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:19:39 b60024189291 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:19:44 b60024189291 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:19:49 b60024189291 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:19:54 b60024189291 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:19:59 b60024189291 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:20:04 b60024189291 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:20:09 b60024189291 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:20:14 b60024189291 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:20:19 b60024189291 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:20:24 b60024189291 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:20:29 b60024189291 FrigateCam[1] INFO Processing [NetworkStatus] message
Try again now. I had played around with moving where the ffmpeg args were passed since I was getting that error where they originally were. I've reverted that commit now.
Basically back to parity but not getting video w/ your fork
➜ shared-config docker logs unifi-driveway-proxy -f
2024-05-04 21:34:03 5e8121b32ad1 Core[1] INFO Creating ws connection to wss://192.168.100.1:7442/camera/1.0/ws?token=gv24c7A88wkiBMmLjo0RSscvjjDGK7nL
2024-05-04 21:34:03 5e8121b32ad1 FrigateCam[1] INFO Adopting with token [gv24c7A88wkiBMmLjo0RSscvjjDGK7nL] and mac [AA:BB:CC:00:11:22]
2024-05-04 21:34:03 5e8121b32ad1 FrigateCam[1] INFO Connected to 192.168.120.254:1883
2024-05-04 21:34:03 5e8121b32ad1 FrigateCam[1] INFO Processing [ubnt_avclient_hello] message
2024-05-04 21:34:04 5e8121b32ad1 FrigateCam[1] INFO Processing [ubnt_avclient_paramAgreement] message
2024-05-04 21:34:04 5e8121b32ad1 FrigateCam[1] INFO Processing [StopService] message
2024-05-04 21:34:04 5e8121b32ad1 FrigateCam[1] INFO Processing [ubnt_avclient_hello] message
2024-05-04 21:34:04 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeDeviceSettings] message
2024-05-04 21:34:04 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
ffmpeg version 5.1.4 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r4) 20220924
configuration: --prefix=/usr --enable-avfilter --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libpulse --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-lto --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-librist --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --disable-lzma --enable-libaom --enable-libopus --enable-libsoxr --enable-libwebp --enable-vaapi --enable-vdpau --enable-vulkan --enable-libdrm --enable-libzmq --optflags=-O2 --disable-debug --enable-libsvtav1
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
2024-05-04 21:34:04 5e8121b32ad1 FrigateCam[1] INFO Spawning ffmpeg for video3 (xfhwCDFGBZi1rzsm): ffmpeg -nostdin -loglevel error -y -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -timeout 15000000 -rtsp_transport tcp -i "rtsp://frigate:8554/driveway_low" -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamName=xfhwCDFGBZi1rzsm -f flv - | /usr/local/bin/python -m unifi.clock_sync --timestamp-modifier 90 | nc 192.168.100.1 7550
2024-05-04 21:34:04 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:34:04 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:34:04 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:34:05 5e8121b32ad1 FrigateCam[1] INFO Processing [ubnt_avclient_paramAgreement] message
2024-05-04 21:34:06 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
ffmpeg version 5.1.4 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r4) 20220924
configuration: --prefix=/usr --enable-avfilter --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libpulse --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-lto --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-librist --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --disable-lzma --enable-libaom --enable-libopus --enable-libsoxr --enable-libwebp --enable-vaapi --enable-vdpau --enable-vulkan --enable-libdrm --enable-libzmq --optflags=-O2 --disable-debug --enable-libsvtav1
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
2024-05-04 21:34:06 5e8121b32ad1 FrigateCam[1] INFO Spawning ffmpeg for video1 (pKNVvXcmjgTZi7rb): ffmpeg -nostdin -loglevel error -y -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -timeout 15000000 -rtsp_transport tcp -i "rtsp://frigate:8554/driveway_low" -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamName=pKNVvXcmjgTZi7rb -f flv - | /usr/local/bin/python -m unifi.clock_sync --timestamp-modifier 90 | nc 192.168.100.1 7550
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeIspSettings] message
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeOsdSettings] message
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeSoundLedSettings] message
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeSmartMotionSettings] message
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [EnableLogging] message
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeDeviceSettings] message
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeDeviceSettings] message
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [SmartMotionTest] message
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [AudioAgentChangeTuning] message
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [UpdateUsernamePassword] message
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeSmartDetectSettings] message
2024-05-04 21:34:09 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeSmartDetectSettings] message
2024-05-04 21:34:10 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:34:14 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:34:20 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:34:24 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:34:30 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:34:34 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:34:37 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
ffmpeg version 5.1.4 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r4) 20220924
configuration: --prefix=/usr --enable-avfilter --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libpulse --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-lto --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-librist --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --disable-lzma --enable-libaom --enable-libopus --enable-libsoxr --enable-libwebp --enable-vaapi --enable-vdpau --enable-vulkan --enable-libdrm --enable-libzmq --optflags=-O2 --disable-debug --enable-libsvtav1
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
2024-05-04 21:34:37 5e8121b32ad1 FrigateCam[1] INFO Spawning ffmpeg for video2 (x9YTItyxK0KGMMeH): ffmpeg -nostdin -loglevel error -y -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -timeout 15000000 -rtsp_transport tcp -i "rtsp://frigate:8554/driveway_low" -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamName=x9YTItyxK0KGMMeH -f flv - | /usr/local/bin/python -m unifi.clock_sync --timestamp-modifier 90 | nc 192.168.100.1 7550
2024-05-04 21:34:38 5e8121b32ad1 FrigateCam[1] INFO Processing [GetRequest] message
2024-05-04 21:34:38 5e8121b32ad1 FrigateCam[1] WARNING Snapshot file /tmp/tmps2_nwmsn/screen.jpg is not ready yet, skipping upload
2024-05-04 21:34:40 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:34:44 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:34:50 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:34:52 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:34:54 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:35:00 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:35:04 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:35:10 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:35:10 5e8121b32ad1 FrigateCam[1] INFO Processing [GetRequest] message
2024-05-04 21:35:10 5e8121b32ad1 FrigateCam[1] WARNING Snapshot file /tmp/tmps2_nwmsn/screen.jpg is not ready yet, skipping upload
2024-05-04 21:35:14 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:35:20 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:35:24 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:35:24 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:35:27 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:35:30 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:35:30 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:35:34 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:35:36 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:35:39 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:35:40 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:35:41 5e8121b32ad1 FrigateCam[1] INFO Processing [GetRequest] message
2024-05-04 21:35:41 5e8121b32ad1 FrigateCam[1] WARNING Snapshot file /tmp/tmps2_nwmsn/screen.jpg is not ready yet, skipping upload
2024-05-04 21:35:42 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:35:44 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:35:45 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:35:48 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:35:50 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:35:51 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:35:53 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:35:54 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:36:00 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:36:04 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:36:10 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:36:12 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:36:13 5e8121b32ad1 FrigateCam[1] INFO Processing [GetRequest] message
2024-05-04 21:36:13 5e8121b32ad1 FrigateCam[1] WARNING Snapshot file /tmp/tmps2_nwmsn/screen.jpg is not ready yet, skipping upload
2024-05-04 21:36:14 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:36:14 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:36:17 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:36:20 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:36:20 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:36:23 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:36:24 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:36:26 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:36:29 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:36:30 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:36:32 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:36:34 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:36:35 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:36:38 5e8121b32ad1 FrigateCam[1] INFO Processing [ChangeVideoSettings] message
2024-05-04 21:36:40 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:36:44 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:36:50 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:36:54 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
2024-05-04 21:37:00 5e8121b32ad1 FrigateCam[1] INFO Processing [NetworkStatus] message
2024-05-04 21:37:04 5e8121b32ad1 FrigateCam[1] INFO Processing [GetSystemStats] message
retesting same config w/ the upstream image now ..
Yea, looks like I'm back to parity in terms of behavior w/ your fork and the primary repo... Was hoping for some new behavior but still just get a preview w/ video and as soon as I open the modal it freezes and I get a broken pipe exception when using rtsp
2024-05-04 21:47:52 903f682ed3b6 RTSPCam[1] WARNING Previous ffmpeg process for video1 died.
2024-05-04 21:47:52 903f682ed3b6 RTSPCam[1] INFO Spawning ffmpeg for video1 (pKNVvXcmjgTZi7rb): ffmpeg -nostdin -loglevel error -y -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -timeout 15000000 -rtsp_transport tcp -i "rtsp://frigate:8554/driveway_high" -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamName=pKNVvXcmjgTZi7rb -f flv - | /usr/local/bin/python -m unifi.clock_sync --timestamp-modifier 90 | nc 192.168.100.1 7550
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/app/unifi/clock_sync.py", line 183, in <module>
main(parse_args())
File "/app/unifi/clock_sync.py", line 157, in main
write(read_bytes(source, payload_size))
File "/app/unifi/clock_sync.py", line 29, in write
sys.stdout.buffer.write(data)
BrokenPipeError: [Errno 32] Broken pipe
av_interleaved_write_frame(): Broken pipe
Error writing trailer of pipe:: Broken pipe
Error closing file pipe:: Broken pipe
2024-05-04 21:47:55 903f682ed3b6 RTSPCam[1] INFO Processing [GetSystemStats] message
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/app/unifi/clock_sync.py", line 183, in <module>
main(parse_args())
File "/app/unifi/clock_sync.py", line 157, in main
write(read_bytes(source, payload_size))
File "/app/unifi/clock_sync.py", line 29, in write
sys.stdout.buffer.write(data)
BrokenPipeError: [Errno 32] Broken pipe
av_interleaved_write_frame(): Broken pipe
Error writing trailer of pipe:: Broken pipe
Error closing file pipe:: Broken pipe
unifi-driveway-proxy:
image: unifi-cam-proxy:dyer-latest
container_name: "unifi-driveway-proxy"
restart: unless-stopped
networks:
frigate:
labels:
com.centurylinklabs.watchtower.enable: true
volumes:
- "/common/shared-config/unifi-cam-proxy/client.pem:/client.pem"
command: >-
unifi-cam-proxy
--host 192.168.100.1
--mac 'AA:BB:CC:00:11:22'
--ip '192.168.100.3'
--model 'UVC G4 PTZ'
--name 'Proxy Test'
--cert /client.pem
--token gv24c7A88wkiBMmLjo0RSscvjjDGK7nL
--model 'UVC G4 PTZ'
rtsp -s rtsp://frigate:8554/driveway_high
Unfortunately, I don't really know enough about how ffmpeg works to know what's happening. Can you try again with the latest commit? I think I made it so the ffmpeg subprocess will log errors now instead of throwing them away.
Some basic support for Tapo Cameras.