What's new

Tutorial How to join multiple security camera Video files in windows using ffmpeg (Sample using Xiaomi Security Cam)

raevillena

Honorary Poster
Joined
May 28, 2013
Posts
279
Reaction
480
Points
175
Age
28

Intro:​

Usually when using Xiaomi Security Camera, you will find the recording in multiple folders and files.​

These files are dated in file name and contains metadata about its creation time.​


How to combine them in single video file without re-encoding them?

HERE IS HOW TO DO IT:

Step 0: Download the latest ffmpeg executable.
You do not have permission to view the full content of this post. Log in or register now.
Place the ffmpeg.exe in a folder that will also contain the video files.

Step 1: Copy all the files you want to combine in a single directory, folder. This is tutorial uses .mp4 as reference.

Step 2: Open your windows power shell and change directory to the folder path.
cd C:\Users\xxx\Desktop\folder1
That is how to change directory to a folder. replace the path with the path to the video files folder.

Step 3: Create the list text file using the by pasting the code below in the opened power shell.
You do not have permission to view the full content of this post. Log in or register now.
A mylist.txt file will be created listing all the files sorted in the oldest to newest order.

Step 4: Open the text file using notepad. Click file, save as and change the encoding to UTF-8 then save.

Final Step:
You do not have permission to view the full content of this post. Log in or register now.
Wait and final video will can be located in the same directory afterwards.
 
if you get the error saying the ffmpeg is not registered command in the system then add the .exe extension in the command.

./ffmpeg -> ./ffmpeg.exe ...
 
Back
Top