Possible Duplicate:
Tool like Media File Segmenter for Linux

I know that ffmpeg can extract a smallfile.avi from a largfile.avi. But what I am looking for is a tool/command to split a large video into several smaller videos of a given size.

  • OK, I found the perfect tool for splitting avi videos: manpages.ubuntu.com/manpages/hardy/man1/avisplit.1.html – hnns Sep 1 '11 at 13:04
  • Why not go add that to the linked 'dupe' as an answer? Seems like a good one. :) – Ƭᴇcʜιᴇ007 Sep 1 '11 at 13:06
  • You don't need to install any software on Linux to do that. This is not Windows ^^ Look at my answer. Cheers. – m0skit0 Sep 1 '11 at 13:17
  • @techie007 Apparently I can not answer my own question. but I'll be happy to give the answer elsewhere, if you provide the link of the duplicate question. – hnns Sep 4 '11 at 0:23
  • NP, It shows in your question now. – Ƭᴇcʜιᴇ007 Sep 4 '11 at 3:51

Use split tool available for all UNIX-like systems. For example, to split a file in 100 MiB chunks.

split –bytes=100m /path/to/large/file /path/to/output/file/prefix

Refer to the manual for more information (man split)

| improve this answer | |
  • Using split will not result in valid avi files. – Nifle Sep 1 '11 at 14:08
  • 2
    The question didn't ask for valid AVI files. The question began by pointing out that this was not the functionality desired. The question starts out by pointing out a way to create smaller valid AVI files and then says "But What I am looking for is" ... – David Schwartz Sep 1 '11 at 18:51
  • @David - Don't be silly, of course he wants valid files. Otherwise he wouldn't have mentioned ffmpeg. – Nifle Sep 1 '11 at 21:33
  • @m0skit0 I had tried split and it led to faulty clips (quality lost), hence I started asking the question. – hnns Sep 1 '11 at 22:28

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