Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
Tool like Media File Segmenter for Linux

I know that one can use ffmpeg to extract a smallfile.avi from a largfile.avi. But What I am looking for is an tool/command to split a large file into several files of a given size.

share|improve this question
    
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. :) –  techie007 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. –  techie007 Sep 4 '11 at 3:51
add comment

marked as duplicate by techie007, Nifle, slhck, Mokubai, alex Sep 2 '11 at 12:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

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)

share|improve this answer
    
Using split will not result in valid avi files. –  Nifle Sep 1 '11 at 14:08
1  
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
add comment

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