So I’m no expert but this is what I use and it works on my Mac.
This will create a single .mkv file for each days worth of footage.
It requires FFMPEG to be installed. To install it I recommend installing homebrew and then using homebrew to install FFMPEG
- Copy SD card contents to the mac (I recommend downloads folder)
- Open terminal and change directory to the record folder that was on the sd card. If you had saved it in downloads this will be cd Downloads/nameofSDCARD/record
- Once the terminal is in the record directory copy and paste the below script
for day in $(ls); do
only executes loop for day folder
ls $day//.mp4 || continue
skip folders already concat
[ -f $day.mkv ] && continue
create txt lists
echo “Compiling $day…”
ls $day//.mp4 > $day.lst
Prepend txt lists
sed -i -e ‘s/^/file /’ $day.lst
Concat each day
ffmpeg -nostats -f concat -i $day.lst -c copy $day.mkv
This will then go through and you will be left with a .mkv for each day. This is usually pretty fast and takes 5 mins to do 5 days worth of footage on my 15" MacBook Pro.
Hope this helps someone.