Thread: File Compression

  1. #1
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897

    File Compression

    I have a file that i need to burn to a 700MB CDR. The file is 733MB. I used the compression tool built into windows xp, and it changed it to 721MB. Can anyone suggest to me a program that can get it down enough to fit onto the CD?
    My best code is written with the delete key.

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Have you tried winzip with max compression? www.winzip.com It has a free trial (that never truely expires).

  3. #3
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Windows native compression bites. IMO the best compression utility is WinRAR. Search google and you'll find out where to download it. If that doesn't work, just truncate the file. If it doesn't fit on a CD, did you really need it anyway?

  4. #4
    ---
    Join Date
    May 2004
    Posts
    1,379
    Prelude, You can try to 'overburn' the file and burn it at a slower speed like 4x
    I have once burned a 800MB+ ISO image onto a 700MB cd-r. And I'm not exagerating. Try it with a rewritable first if your scared you will make a coaster.

  5. #5
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    i'm not sure what the best copmpression utility is, but if all else fails, you can use "dd" to copy half to one cd and the other half on another.

    you can also trying burning as an image, but i doubt 21+ megs are reserved for the filesystem.

    is it just for backup?
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Maybe your data is already so compressed that one can do little more to compress it?
    Anyway, I'm not sure which compression tool would be best, but geekhaven.net has a review of a few: Compression Algorithm Comparison

    Your mileage may vary, but according to them then you should try out 7-zip and see if that takes you far enough.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    Me -=SoKrA=-'s Avatar
    Join Date
    Oct 2002
    Location
    Europe
    Posts
    448
    Quote Originally Posted by misplaced
    i'm not sure what the best copmpression utility is, but if all else fails, you can use "dd" to copy half to one cd and the other half on another.
    You can't burn CDs like that! Or do you mean create two files and then burn the files?

    Quote Originally Posted by sand_man
    I have once burned a 800MB+ ISO image onto a 700MB cd-r. And I'm not exagerating.
    Do you mean you burnt the image file onto a CD or that you burnt the CD with the info in that image? ISO images are always bigger than the actual data they'll burn on the disk, although with your file it would still need some overburning.


    I'd recommend getting winRAR (www.rarlab.com) and toying with the compression options.
    You'll probably still need some overburning, though.
    SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
    I say what I say, I mean what I mean.
    IDE: emacs + make + gcc and proud of it.

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > The file is 733MB. I used the compression tool built into windows xp, and it changed it to 721MB.
    This looks like the original data was already compressed - compressing it again doesn't usually get you anywhere (if at all).

    If it's say a compressed backup file, try creating an uncompressed backup, then using zip to compress the single backup file. The disadvantage with this is that if the archive becomes damaged then the whole backup could be lost, whereas the existing arrangement may only lose a single file.

    There are lots of compression programs (and algorithms if you want to write something bespoke for this single case). But if you do choose something obscure, make sure you store the decompressor on the CD as well

  9. #9
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Christian Maas has a pretty good file splitter you can downloadhere (though the file browser is a bit primitive).
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  10. #10
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    Quote Originally Posted by -=SoKrA=-
    You can't burn CDs like that! Or do you mean create two files and then burn the files?

    you can do just about anything you want with "dd"...and you can burn cd's as iso's or with filesystems...and you can choose which file system to use....you can do just about anything you want.
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  11. #11
    Me -=SoKrA=-'s Avatar
    Join Date
    Oct 2002
    Location
    Europe
    Posts
    448
    Quote Originally Posted by misplaced
    ...and you can burn cd's as iso's or with filesystems...and you can choose which file system to use...
    iso (actually IS0-9660) is a filesystem. You can burn any FS you want on a CD, the only limitation is who will be able to read it.
    SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
    I say what I say, I mean what I mean.
    IDE: emacs + make + gcc and proud of it.

  12. #12
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    bzip2 has always given me the best file compression.
    If you understand what you're doing, you're not learning anything.

  13. #13
    Bob Dole for '08 B0bDole's Avatar
    Join Date
    Sep 2004
    Posts
    618
    use winrar and split it into two parts....done, thx.

    If you need a second cd, email me and i'll mail it to you
    Hmm

  14. #14
    Arggggh DeepFyre's Avatar
    Join Date
    Sep 2004
    Posts
    227
    heres a 1tb email w/ 500 mb attachments so you can use winrar split the file in 2 and email it to yourself:
    www.hriders.com

    the only problem is that it might take a couple huors or even a whole day to receive the email, so if you want/need a faster one you could use winrar split it into 10 mb files and juz use gmail ..... or if you wont have an internet connection ..... not sure what to do ....
    Last edited by DeepFyre; 12-31-2004 at 08:49 PM.
    Keyboard Not Found! Press any key to continue. . .

  15. #15
    Registered User
    Join Date
    Dec 2004
    Location
    Oklahoma City
    Posts
    55
    Take a look at Filesplitter - http://www.dekabyte.com/filesplitter/download.html

    It's very easy to use:

    Select the file you want to split
    Type in the size of each piece (in Kb, Mb, Gb)
    Select Start

    It's that easy, it's advertised to handle files up to 9 billion gigabytes and it creates a "reassemble" file. One click and it recreates the original file out of the pieces.

    This is great for those huge files that are already compressed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 05:02 AM
  3. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM
  5. Hmm....help me take a look at this: File Encryptor
    By heljy in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 10:57 AM