How to Use VLC to Combine Two Clips

Though best known for video playback, VLC Media Player has a whole second life as a video editing tool. There's a good reason few know about these features, however: You can access some only through the Command Prompt. One of VLC's command-line features gathers multiple video clips and outputs them into a single file. To start, you need two clips with identical encoding, so begin by transcoding the files if necessary.

...
credit: Techwalla

Step

Transcode both of your clips into matching video formats. The format you use doesn't matter -- among supported VLC formats -- as long as both clips have the same format. If you got both clips from the same place or split them yourself, they probably have matching formats already, so you can skip this step, but if you run into trouble, try transcoding.

Step

To transcode in VLC, open the "Media" menu and pick "Convert/Save." Add one clip, press "Convert/Save" and pick a format from the Profile list. After VLC finishes, convert the second clip. You can also use another video editor to convert your clips, if you prefer.

Step

"Shift-right-click" in the Windows folder containing your video clips and pick "Open Command Window Here" to open a Command Prompt.

Step

Type the following command, replacing the components in brackets:

Step

"[Location of vlc.exe]" [first_clip.ext] [second_clip.ext] --sout "#gather:std{access=file,dst=[new_name.ext]}" --sout-keep

Step

For example, if you have VLC installed in the default directory and you want to combine two video clips named 1.avi and 2.avi into 3.avi, your complete command would read:

Step

"C:\Program Files (x86)\VideoLan\VLC\vlc.exe" 1.avi 2.avi --sout "#gather:std{access=file,dst=3.avi}" --sout-keep

Step

Press "Enter" and wait while VLC merges the files. When VLC's status bar appears blank, rather than showing the name of one of the clips, the program has finished.

Step

Close the VLC window before you try to open your new file, or the new file won't merge correctly, causing an incorrect time count or corrupted video.