Append multiple files into one file.
Posted: 08 Aug 2012 18:46
Hello
I was trying to use the vlc gui to append two files into one, but it did not work. I found a site on the wiki which gave info on how to do it. I used this method but it does not work. I get an output file with 0 bytes. Here is the batch file I used.
@echo off
set file1= xw-cw-top-heals-loss-a.avi
set file2= xw-cw-top-heals-loss-b.avi
vlc %file1% %file2% --sout "#gather:std{access=file,mux=ts,dst=out.avi}" --sout-keep
-----------------
I put this batch file in the directory where the two source avi files are located. I added the path to vlc.exe in my system path. Then I change directories to the directory where the two source files are located and run it. Running the batch file will pull up the vlc gui and it in the playlist pane it will show the two files and begin to save it - at least I think. The record button is red and it looks like it is doing something. When the red record button disables and the play progress bar stops, I close down vlc. In the folder where the two source files are located a new file named out.avi is located. However the file is zero bytes.
Once I get this working, I want to also want to merge an audio mp3 file. But, I can do that with the gui once I have a combined file.
John
I was trying to use the vlc gui to append two files into one, but it did not work. I found a site on the wiki which gave info on how to do it. I used this method but it does not work. I get an output file with 0 bytes. Here is the batch file I used.
@echo off
set file1= xw-cw-top-heals-loss-a.avi
set file2= xw-cw-top-heals-loss-b.avi
vlc %file1% %file2% --sout "#gather:std{access=file,mux=ts,dst=out.avi}" --sout-keep
-----------------
I put this batch file in the directory where the two source avi files are located. I added the path to vlc.exe in my system path. Then I change directories to the directory where the two source files are located and run it. Running the batch file will pull up the vlc gui and it in the playlist pane it will show the two files and begin to save it - at least I think. The record button is red and it looks like it is doing something. When the red record button disables and the play progress bar stops, I close down vlc. In the folder where the two source files are located a new file named out.avi is located. However the file is zero bytes.
Once I get this working, I want to also want to merge an audio mp3 file. But, I can do that with the gui once I have a combined file.
John