Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-29-2005, 04:14 AM   #1
LQ Newbie
Registered: Aug 2005
Posts: 5

Rep: Reputation: 0
Splitting 1.4 GB avi files


Is there anyone who can tell me how can I split an avi file over 1GB big into smaller pieces?
I've already know I should try it with avisplit but it seems to be a small problem with my Ubuntu version so I've been wondering if there are any other options?
Thanks a lot for any response and help
Happy New Year to everone
Old 12-29-2005, 04:28 AM   #2
Senior Member
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
why dont u use the split command ??

you can split it to specific sizes
split -b 10m file
*it will split to to 10 MB parts*

then you could combine them using cat

cat file1 file2 file3 > newfile
you could even combine them in windows

copy /B file1 + file2 newfile

Last edited by heema; 12-29-2005 at 04:36 AM.
Old 12-29-2005, 04:33 AM   #3
Registered: May 2005
Distribution: Slackware 12.1
Posts: 50

Rep: Reputation: 15
I don't know for what purpose you are trying to split, but have you tried the command 'split'?
split --bytes=10m movie.avi splitmovie.
This will split your file into 10MB chunks prefixed with splitmovie. To get your movie into one piece again, use:
cat splitmovie.* > joinedmovie.avi
'split' will not remove your original file, and 'cat' will not remove your splitted files.
Old 12-29-2005, 04:36 AM   #4
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 167Reputation: 167
It depends on what you need to do with the pieces. If all you want to do is break the file into smaller pieces, there always /usr/bin/split. If for example you wanted to split an avi file called big.avi into pieces no bigger than 500MB, you could use something like
/usr/bin/split -d --bytes=536870912 big.avi big.avi-
This would output files of 500MB in size called big.avi-01, big.avi-02, etc.
To put them back together again, you just cat them, e.g.
/usr/bin/cat big.avi-01 > big.avi
/usr/bin/cat big.avi-02 >> big.avi
This last part should go in a loop - you don't want to be doing that manually...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Splitting XML Files Lanmate Linux - Software 0 11-09-2005 05:24 PM
splitting files columnwise manjushp Programming 3 08-25-2005 05:49 PM
change uploaded files from filename.avi to filename.avi.html like latheesan Linux - Newbie 3 06-16-2005 05:33 AM
OpenOffice files splitting bezaleel Linux - Software 0 07-22-2004 04:39 PM
Splitting AVI files gonniff Linux - Software 4 09-19-2003 10:49 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration