Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > divide a big file, how to ?

divide a big file, how to ?
Thread Tools
Mac Elite
Join Date: Apr 2003
Location: The City Of Diamonds
Status: Offline
Reply With Quote
May 10, 2003, 05:31 AM
 
I have this 4,9 GB DV-file that I want to burn to CD for archiving but is there a way to divide this file into a few 650-700MB files ? (no, not to DVD as I don't have a SuperDrive). I know I could to this with a segmented StuffIt archive but this is SOOOOO slow and StuffIt hogs everything on my Ti867. Is there some nice terminalcommand that does this ? or any GUI for this sort of stuff ?
     
Junior Member
Join Date: Aug 2000
Status: Offline
Reply With Quote
May 10, 2003, 05:44 AM
 
you could use quicktime pro to chop up the file by hand into 650MB segments which could be stitched together again later. But I think the stuffit option is the best one because then everything will get put back together again automatically.

Try setting the compression to the fastest (although least efficient) in the preferences and just leave it going overnight. At least it can divide the file up automatically, rether than doing it by hand. The problem with any command line things is that they wouldn't respect the encoding in the DV file, so you might end up with messed up frames at the end of the file.

hope this helps

BJPirt
     
Lew
Senior User
Join Date: Dec 2001
Location: England, UK
Status: Offline
Reply With Quote
May 10, 2003, 11:40 AM
 
In the terminal, type
Code:
split -b 650m input_file output_file
where input_file is the name of your DV file and output_file is what you want the split files to be named.

For example, if your DV file is called Movie.dv you'd type
Code:
split -b 650m Movie.dv SplitMovie_
which would create files called SplitMovie_aa, Split_Movie_ab, Split_Movie_ac etc. If you're not in the same directory as the file you'd need to cd there or include the path in the filename. For more information, type
Code:
man split
in the terminal.

To join the files, type
Code:
cat SplitMovie_aa SplitMovie_ab SplitMovie_ac > Movie.dv
     
Mac Elite
Join Date: Apr 2003
Location: The City Of Diamonds
Status: Offline
Reply With Quote
May 11, 2003, 03:28 AM
 
Originally posted by GFive:
In the terminal, type
Code:
split -b 650m input_file output_file
where input_file is the name of your DV file and output_file is what you want the split files to be named.

For example, if your DV file is called Movie.dv you'd type
Code:
split -b 650m Movie.dv SplitMovie_
which would create files called SplitMovie_aa, Split_Movie_ab, Split_Movie_ac etc. If you're not in the same directory as the file you'd need to cd there or include the path in the filename. For more information, type
Code:
man split
in the terminal.

To join the files, type
Code:
cat SplitMovie_aa SplitMovie_ab SplitMovie_ac > Movie.dv
Thank you ! I knew it had something to do with the cat command. Thanks.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
May 11, 2003, 06:32 PM
 
There's also a (rather ugly) GUI for these commands called Split&Concat.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Dedicated MacNNer
Join Date: Dec 2002
Location: someplace
Status: Offline
Reply With Quote
May 12, 2003, 01:50 PM
 
     
Addicted to MacNN
Join Date: Oct 1999
Location: The Tollbooth Capital of the US
Status: Offline
Reply With Quote
May 12, 2003, 03:38 PM
 
How bout using Stuffit Deluxe? That will compress files to as many parts are you like in just aboue any size.
"Evil is Powerless If the Good are Unafraid." -Ronald Reagan

Apple and Intel, the dawning of a NEW era.
     
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
May 12, 2003, 05:19 PM
 
If you use split/cat, you need to make sure that the file you're encoding doesn't depend on a resource fork or on HFS+ metadata like type/creator codes.

I think. Right?
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
Addicted to MacNN
Join Date: Jun 1999
Location: Las Vegas, NV, USA
Status: Offline
Reply With Quote
May 12, 2003, 08:07 PM
 
I think Disk Copy will segment a disk image. So you can just make an image, copy the file onto it, and let Disk Copy segment it. The option to segment is in the Preferences, Imaging tab.

Chris
     
Mac Elite
Join Date: Apr 2003
Location: The City Of Diamonds
Status: Offline
Reply With Quote
May 13, 2003, 09:56 AM
 
Originally posted by typoon:
How bout using Stuffit Deluxe? That will compress files to as many parts are you like in just aboue any size.
Yep, I wanted to do this at first, but I didn't have the patience to wait for the extremely slow compression of StuffIt.

Anyway, I did it with split and cat. I'm not afraid of the command line anymore.

Originally posted by chabig:
I think Disk Copy will segment a disk image. So you can just make an image, copy the file onto it, and let Disk Copy segment it. The option to segment is in the Preferences, Imaging tab.

Chris
Yeah, I checked it out, but it only allows sizes of 90MB, 630MB, 1GB and 2GB for segments and I didnt' see an option to specify a value yourself.
     
Addicted to MacNN
Join Date: Jun 1999
Location: Las Vegas, NV, USA
Status: Offline
Reply With Quote
May 13, 2003, 07:11 PM
 
Yeah, I checked it out, but it only allows sizes of 90MB, 630MB, 1GB and 2GB for segments and I didnt' see an option to specify a value yourself.
Yeah, I saw the same thing, but I figured the 630MB size would be close enough to one CD worth of data.
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:12 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2