03-04-2016 01:36 AM - edited 03-04-2016 02:41 AM
I was wondering, if there is a commandline tool to mass export all of the video footage on the unifi-video system?
At worst, what's the best manual way to download/export all of the media without individually clicking each video; at the moment the export only seems to like ~50 videos in a single download.
03-06-2016 04:12 PM
Are you on windows or linux? You can manually copy the folders where the videos are stored.
Default on linux is /srv/unifi-video/videos and for windows its located at C:\ProgramData\unifi-video\data\videos.
Here's more info if you need to combined clips. Bulk Download
03-08-2016 07:59 AM
I've written a quick and dirty shell script to join all the daily video files YMMV
#!/bin/bash # # Purpose: # A Script to read in the segments of a UniFi video camera stream direct from # the HDD of the NVR, join them into a single files. Producing a mass export # ability. # # Usage: # recordings.sh <YEAR> <MONTH> <DAY> # # Author: # Adam Boutcher # # Date: # March 2016 RECORDINGS_DIR="/mnt/recordings" JOINED_DIR="/mnt/joined" YEAR=$1 MONTH=$2 DAY=$3 START=$(date +%s) echo UniFi Export Script By Adam Boutcher echo Export [Started] cd $RECORDINGS_DIR for i in `ls`; do echo Camera: $i [Selected] cd $RECORDINGS_DIR/$i/$YEAR/$MONTH/$DAY rm list.out &> /dev/null STARTC=$(date +%s) for ii in `ls -tr *.ts`; do echo "file '$ii'" >> list.out; done; echo Camera: $i [Processing...] ffmpeg -y -nostats -loglevel 0 -f concat -i list.out -c copy $JOINED_DIR/$i-$YEAR-$MONTH-$DAY.ts mv $JOINED_DIR/$i-$YEAR-$MONTH-$DAY.ts $JOINED_DIR/$i-$YEAR-$MONTH-$DAY.mp4 rm list.out &> /dev/null ENDC=$(date +%s) DIFFC=$(echo "$ENDC - $STARTC" | bc) echo Camera: $i export took $DIFFC seconds... echo Camera: $i [Completed] done; END=$(date +%s) DIFF=$(echo "$END - $START" | bc) echo Export took $DIFF seconds... echo Export [Completed]