How to Merge Videos together using VLC player

Combine Videos using the VLC Player

VLC player is not just a media player but can also be used for basic video and audio editing.

VLC can combine multiple fragmented video clips or files into one single video file, provided the videos have the same resolution, encoding or file format. 

However, this doesn’t mean that videos with different file formats or codecs cannot be combined together. VLC can also convert videos with different formats to a common file format and then they can be combined together using VLC to make a single video file. 

If all of your videos have a common resolution and file format then you don’t need to convert them and you can straightaway combine them to create the combined file.

But if you have the files in different formats; let’s say you have some of the files in .avi and the rest of them in .mp4 formats, then you would have to convert the .avi files to .mp4 before you can combine them.

How to Convert the Files

Note: You don’t need to convert the files if they all have common file format or encoding. You can straightway skip to the steps to combine the files.

Before continuing, take a backup of all the files and then place the files to be converted, into a separate folder. 

To Convert the files open VLC player. Go to the Media Menu and click on Open Multiple Files. Click on +Add and navigate to the video files. Click on Add again to add all the video files you want to convert. 

After Adding all the Files, Click on Convert (Alt + O). This would open the Convert Dialog.

In the Convert dialog; from the dropdown list next to Profile select Video – h.264 + MP3 (MP4)

Make sure to check the checkbox labeled, Append ‘-converted’ to filename. This would ensure that the original files are not overwritten and the converted files have a different filename.

Click on Start to start the conversion process. This will open VLC which would start the conversion. This may take some time depending on the file size of the original videos.

Once the files have been converted they would all have the .mp4 file format and they would appear in the same folder where your original videos are located. 

The converted videos would have “converted-“ appended to their file names. Keep the converted files and delete or move the original files to a separate folder.

Give them a short file name like Video1.mp4, Vid1.mp4 etc., if they have a long file name. Now, you can combine them using VLC.

How to Combine Video using Command Line in VLC. 

To combine the videos we would be using the Windows Command Prompt. VLC does not offer the graphical user interface for doing so, and that’s why we would be using the command line commands. 

Before combining the videos open the folder where your files are located. They should have similar resolution and file formats.

We will use the following VLC command to combine all the files in the folder. 

The commands first parameter is the file location of the VLC executable or .exe file which is generally located in program files in C:/ drive. Then, you have to enter the name of the videos enclosed in quotes, separated by a single space. The dst=CombinedFile.mp4 is the parameter for specifying the file name of the combined file to be created. 

Now, go to the Folder where your videos are located and type cmd in the address bar of the file explorer and press enter. 

This would open the command prompt in that folder. Type the following command after replacing the file names with the names of your videos. Also replace the name of the destination file and press Enter.

"%PROGRAMFILES%\VideoLAN\VLC\vlc.exe" "Food.mp4" "Travel.mp4" --sout "#gather:std{access=file,dst=FoodTravel.mp4}" --sout-keep

Pressing Enter would open the VLC player and it would start combining the files. Close VLC when the seek bar reaches the end.

Open the Folder where your original videos are located. The combined files would appear in that folder.