What is the best CLI tool (preferably Linux based) that will allow concatenating video files, and also compressing them on the client-side for YouTube upload?


My best bet is ffmpeg. It is powerful enough to do what you want.


You can merge 2 video files with this command line:

mencoder -ovc copy -oac copy video1.avi video2.avi -o output.avi
  • mencoder is rather hard to find... The Google hits lead you to MPlayer, and when you download it's actually called SMPlayer. Any ideas where to find mencoder, really? – Alex R Dec 19 '09 at 20:06
  • For me, mencoder is in the mencoder ubuntu package. – Rory Dec 21 '09 at 10:30

mencoder, transcode and ffmpeg are your friends (amongst others) you could also use vlc in CLI mode (AFAIK uses ffmpeg) or mplayer (mencoder)

  • VLC tends to supply its own ffmpeg build internally, so it's worth trying separately if ffmpeg isn't quite doing what you want. – quack quixote Dec 9 '09 at 14:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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