Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've had a little mishap with the external harddisk and I've had to restore some files.
Now I have a bunch of video fragments that I'd like to join up again.

I can play the fragments using VLC just fine.
So I went here:
and followed the instructions.

The commandline for joining 2 files with the same encoding is:

vlc c:\file1.avi file2.avi 
  --sout "#gather:std{access=file,mux=ts,dst=all.ts}" 

However nothing happens; an empty all.ts file gets created.

 Directory of C:\PROGRA~1\VideoLAN\VLC

               1 File(s)              0 bytes
               0 Dir(s)  108,900,364,288 bytes free

How do I get vlc to actually create a file with data in it?

If I use the transcoding option:

vlc -vvv c:\dir24.avi\fil57.avi c:\dir24.avi\fil58.avi

I get the following error: enter image description here

How do I get vlc to join the two files? Note that I do not know the actual encoding of the files.

share|improve this question
Note that free video joiner: does the job (it uses ffmpeg internally). But I'd like to see it working with vlc. – Johan Apr 1 '14 at 11:43

I just needed to do this myself. Your unanswered question helped. Here's what I did:

vlc c:\file1.avi file2.avi 
  --sout "#gather:std{access=file,dst=newFile.avi}" 

The example on the VLC wiki page you linked is mux-ing .ps into .ts. I dropped the mux altogether as it wasn't needed in my case. Then pointed it to a destination (dst=) having proper file extension.

share|improve this answer
This is not an answer to the original question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. – DavidPostill Jan 12 '15 at 9:01
It is. The OP imitated the VLC doc sample command line, which failed. @kevin-l modified that sample command for AVI files, as described, and it works. – Mulvya Jan 17 at 8:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.