Merging videos with VLC using command line
ShunOugarden
-
jee pee Posted messages 31912 Registration date Status Modérateur Last intervention -
jee pee Posted messages 31912 Registration date Status Modérateur Last intervention -
Hello,
I really struggled to find this on the site, all the answers are wrong but here's what works.
1. You will use VLC but you won't go through the software interface
2. You will need to type (or copy/paste) a DOS command
3. Here's what you need to do:
a. put your videos in the directory c:\users\yourUser
b. start with a test using 2 small mp4s or something else
c. in the Windows bar, type CMD and press enter, you will get an ugly black window
d. type (or rather copy/paste) the instruction below, MODIFYING IT
"%PROGRAMFILES%\VideoLAN\VLC\vlc.exe" Droid01.mp4 Droid02.mp4 --sout "#gather:std{access=file,mux=mp4,dst=Droid-final.mp4}" --no-sout-all --sout-keep vlc://quit
In this case, I am merging Droid01.mp4 and Droid02.mp4 into Droid-final.mp4
- If you are using different files: Change the original and final names
- If you are using a different extension than "mp4" change the value of "mux"
This is a question/answer...
P.S.: I'm not sure that the VLC interface allows for this merging.
I really struggled to find this on the site, all the answers are wrong but here's what works.
1. You will use VLC but you won't go through the software interface
2. You will need to type (or copy/paste) a DOS command
3. Here's what you need to do:
a. put your videos in the directory c:\users\yourUser
b. start with a test using 2 small mp4s or something else
c. in the Windows bar, type CMD and press enter, you will get an ugly black window
d. type (or rather copy/paste) the instruction below, MODIFYING IT
"%PROGRAMFILES%\VideoLAN\VLC\vlc.exe" Droid01.mp4 Droid02.mp4 --sout "#gather:std{access=file,mux=mp4,dst=Droid-final.mp4}" --no-sout-all --sout-keep vlc://quit
In this case, I am merging Droid01.mp4 and Droid02.mp4 into Droid-final.mp4
- If you are using different files: Change the original and final names
- If you are using a different extension than "mp4" change the value of "mux"
This is a question/answer...
P.S.: I'm not sure that the VLC interface allows for this merging.
1 réponse
Hello,
Thank you for this tutorial on how to merge with VLC.
For those who might be resistant or have trouble with the command line, avidemux can provide a simpler solution.
Launch avidemux, open the file explorer, drag a file into the avidemux window with your mouse, then drag a second file and go to file/save, and you will have a merged file. This works directly if the two files are of the same type, for example, coming from the same device, such as two files recorded on a phone. To merge files of different formats/types, you will need to perform a transcoding operation in avidemux, not just a simple copy.
--
a foreigner is a friend we haven't met yet.avidemux
Thank you for this tutorial on how to merge with VLC.
For those who might be resistant or have trouble with the command line, avidemux can provide a simpler solution.
Launch avidemux, open the file explorer, drag a file into the avidemux window with your mouse, then drag a second file and go to file/save, and you will have a merged file. This works directly if the two files are of the same type, for example, coming from the same device, such as two files recorded on a phone. To merge files of different formats/types, you will need to perform a transcoding operation in avidemux, not just a simple copy.
--
a foreigner is a friend we haven't met yet.avidemux