Forum Discussion
How to cut and merge videos on PC with Windows 11/10
MP4Box is an excellent choice for a free and powerful tool to cut and merge videos on Windows 11 PC, especially if you prefer command-line tools. It is a multimedia packager from the GPAC framework that allows you to perform these operations without re-encoding, which preserves the original quality and is very fast.
MP4Box offers several ways to cut or split your MP4 files directly from the command line:
Split by size: This command splits input.mp4 into multiple parts of a maximum size. The number 716800 is the size in kilobytes (KB), which is roughly 700 MB.
bash
MP4Box -splits 716800 input, mp4
Split by duration: This splits the file into a sequence of parts that are each a maximum length, specified in seconds.
bash
MP4Box -split 60 input,mp4
Extract a specific segment: To extract just one portion of a video, use the -splitx option with the start and end times in seconds.
bash
MP4Box -add input, mp4 -splitx 0:15 -new segment,mp4
To cut and merge videos on Windows 11 PC, the -cat option is very useful. It allows you to concatenate multiple files into one.
The basic command to merge file1.mp4 and file2.mp4 into a new output,mp4 is:
bash
MP4Box -cat file1,mp4 -cat file2.mp4 -new output,mp4
For merging to work correctly without re-encoding, all the files you are joining should have the same encoding settings (like resolution, frame rate, and codecs).