Script to merge thousands of 60 seconds (~ 5 MB) video clips into 1


#1

Is there a script to merge thousands of 60 seconds (~5 MB) video clips used by “continuous recording”?
Adding hundreds of video clips into VLC playlist is a lousy workaround. I’d like 1 large video clip so I can fast forward/rewind.

I can’t imagine dealing with thousands of 60 seconds (~5MB) clips on personal roadmap for Network Attached Storage (NAS)


#2

I believe FFMPEG can do this, but I haven’t done it myself.


#3

This is too complex for an average user https://trac.ffmpeg.org/wiki/Concatenate#samecodec
You must know every files name, which has to be unique. Wyze writes same file name in every folder. In other word, there’s no continuous sequence, so it won’t work.

Is there a simple solution to drag 10 folders (10 days of footage) with 14400 video files (10 days of footage) recorded by Wyze and get 1 video file?


#4

Still looking for a program suggested by @mpulsiv.

Did find a temporary work around using ffmpeg and bash

  1. cd to the destination of the file ex: cd /mnt/e/record/20190218/12
  2. then run this ffmpeg command: ffmpeg -f concat -safe 0 -i <(find . -name ‘*.mp4’ -printf “file ‘$PWD/%p’\n”) -c copy output.mp4

this will put a merged file in the directory. You can then just use the up arrow key twice to call back teh cd command and go to the next subdirectory (i.e. hour) ex: cd /mnt/e/record/20190218/13
Then up arrow twice again and re-run the command from step 2.

There must be a way to loop this, but I’m not experienced enough.

If you’re on windows you can get BASH by installing ubuntu in the windows store