Work in progress
Enable SSH on Cloud Key
Get ubnt_ubvinfo from Cloud Key:
scp [email protected]:/usr/share/unifi-protect/app/node_modules/.bin/ubnt_ubvinfo ubnt_ubvinfoDockerfile:
Build container:
docker build -t extract-video .Convert all files in a particular directory:
docker run -ti --rm -v video_directory:/video extract-video bash -c 'remux --with-audio *.ubv'Sync video from Cloud Key (Do not use -z option as the video is already compressed and the CPU on the Cloud Key is slow! When I used compression the transfer speed went from ~30 MB/sec to 8 MB/sec):
rsync -avP ubnt@cloud-key-ip:/srv/unifi-protect/video/2021/ 2021/