View Single Post
Old 10-01-2008   #7 (permalink)
_chef_
CDFreaks Resident
 
_chef_'s Avatar
 
Join Date: Aug 2004
Location: @FX labs .de ...watching [Benders.Big.Score] [Tripping.The.Rift.The.Movie]
Posts: 24,199
Re: Reducing AVI File Size

Quote:
Originally Posted by DTeCH View Post
ofcourse it's possible...

However, you will have to decompress it to watch. So it won't be good for Divx players, or any player for that matter in compressed format, but it will knock 75% off the size of all your files, weather Videos, or not.

My method was to write a program that splits the source file (DivX-XviD AVI's) into 100 peices, then encodes each peice to Base64 (b64 makes the file size bigger... ie: 731 MB becomes 1095 MB ).

B64 lets you know exactly which characters will appear in the Binary file...

The characters are:

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/

This amount of characters is easier to deal with (64), opposed to the standard 255, & 217.

Next, it opens each file peice, & converts every 4 characters to their byte values...
ie: "ABf6" = "065066102054"... (A = 065, B = 066, f = 102, 6 = 054)

Then replace each signature ("065066102054") with a pre-set number, or character for that signature... ie: "ABf6" = "1", "x3Wp" = "2", "oT4A" = "b", etc...

And save the results in a simple text file... ie: if (Rambo.4.DVDRip.XviD.DTeCH.avi.txt) only contains "12b", then when decompressed, it will read "ABf6x3WpoT4A"

If the same file in b64 format was 1095 MB, then the uncompressed txt file will be 365 MB.

Then it compresses the txt file. If the txt file was 365 MB, then after standard Deflate64 (zip) compression, it can reach as much as 15% ratio, & become 54.75 MB in size! And No quality loss whatsoever!

Now thats compression for ya!!!
What sense would that make, DTech??
__________________
Started with burning capable optical drives (CD-R) in 1997.
Bought optical drives from AOpen, HP, LiteOn, NEC, Philips, Pioneer, Plextor, Ricoh, Samsung, Sanyo, Toshiba and Yamaha.

'Things are now in motion that cannot be undone.' [Gandalf, LoTR]

Enable DMA with micrAp$0ft Enable DMA free at your will busTRACE => Upper/Lower Filters Util
DevCon
***HOW TO ... Delete the Upper & Lower Filters!***

If you expect help then please start by using the powerful SEARCH.
_chef_ is offline   Reply With Quote