LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

Rep: Reputation: 0
Splitting 1.4 GB avi files


Hello

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, 03:28 AM   #2
heema
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
Code:
split -b 10m file
*it will split to to 10 MB parts*

then you could combine them using cat

e.g:
Code:
cat file1 file2 file3 > newfile
you could even combine them in windows

e.g:
Code:
copy /B file1 + file2 newfile

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

Rep: Reputation: 16
I don't know for what purpose you are trying to split, but have you tried the command 'split'?
Code:
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:
Code:
cat splitmovie.* > joinedmovie.avi
'split' will not remove your original file, and 'cat' will not remove your splitted files.
 
Old 12-29-2005, 03:36 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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
Code:
/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.
Code:
/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...
 
  


Reply



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 04:24 PM
splitting files columnwise manjushp Programming 3 08-25-2005 04:49 PM
change uploaded files from filename.avi to filename.avi.html like www.rapidshare.de latheesan Linux - Newbie 3 06-16-2005 04:33 AM
OpenOffice files splitting bezaleel Linux - Software 0 07-22-2004 03:39 PM
Splitting AVI files gonniff Linux - Software 4 09-19-2003 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:09 AM.

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