Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 31-03-2005, 11:06 PM   #1 (permalink)
Apprentice
 
Join Date: Sep 2004
Location: Utopia
Posts: 98
Default Compression Tools!


A few questions on compression tools
How do compression tools (like winrar, winzip or even divx codecs) work?
Why does the compression ratio vary from one file to another?
Which is the best general utility compression tool?
technovice is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 31-03-2005, 11:51 PM   #2 (permalink)
sunnydiv
Guest
 
Posts: n/a
Default

well, as far as i understand,

they find repetative things and mark them,

example, WIN UHA uses a whole dictionary to mark words.

hence, if there is some line in a text 10 times, it will compress that very well.



video and audio compression are different, i am not sure how those work,
 
Old 01-04-2005, 12:18 AM   #3 (permalink)
Human Spambot
 
swatkat's Avatar
 
Join Date: Mar 2004
Location: India
Posts: 2,033
Default

Above method 's called Huffman Coding, this is a Lossless coding technic, and is used by compression tools.
http://www.webopedia.com/TERM/H/Huff...mpression.html


And, there is another method called Run Length Encoding (RLE), which is largely used for Image/Video compression.

Quote:
Run-length encoding (RLE) is a very simple form of data compression in which runs of data (that is, sequences in which the same data value occurs in many consecutive data elements) are stored as a single data value and count, rather than as the original run. This is most useful on data that contains many such runs; for example, simple graphic images such as icons and line drawings.
http://en.wikipedia.org/wiki/Run-length_encoding
__________________
http://swatrant.blogspot.com/
swatkat is offline  
Old 01-04-2005, 07:15 PM   #4 (permalink)
Apprentice
 
Join Date: Sep 2004
Location: Bangalore, India
Posts: 75
Default Re: Compression Tools!

Quote:
Originally Posted by technovice
A few questions on compression tools
How do compression tools (like winrar, winzip or even divx codecs) work?
Why does the compression ratio vary from one file to another?
Which is the best general utility compression tool?
There are two types of compression:
(a) Lossless
In this type of compression, No data is lost, every thing compressed by these methods can be recovered exactly.
Examples: LZW, LZMA, winzip, gzip, bzip2, huffman, Arithmetic coding etc.
Lossless compression methods are of two types:
(1) Dictionary based
Examples: LZW, LZMA, winzip, gzip, bzip2
(2)Variable length coding
Examples:
Huffman, Arithmetic coding

(b) Lossy compression
In this type of compression, you lose some data. Here you can make a trade off between quality and size. The more compression you want, the lesser quality you get.
Examples: Jpeg, Mpeg, Mp3, Aac, Ogg, Wma, Wmv, Divx.
Lossy methods exploit the inherent characteristics of the data to compress it. Because of that, there are separate lossy methods for images, music, and movies. Compare that with a lossless method. A single lossless method (such as zip) can compress all sorts of data, unfortunately, compression is not very high in lossless methods.

Obviously, if you want to compress a program executable or important data, you have to do it with lossless methods. If you want to compress say image data, you can go for either lossless format (PNG) or a lossy format (JPG).

Note that winzip and winrar are not just compression tools, the are also archivers, that is they can compress your data, and store all the data in a single file -> archiving it.

Best tools:
Freeware: 7zip
Shareware: Winrar.

Winrar has the best lossless compression, while 7zip is a bit slower, but a close second. Winrar can produce archives in zip and rar format, with rar being the default. 7 zip can produce archives in 7z, zip, tar, tar.gz and tar.bz2 format, with 7z being the default. Last note: only 7zip can open files in 7z format, so be careful about this if you do use it.

Best lossy audio compression: OGG
Second best: Real Audio 8
http://www.xiph.org/ogg/vorbis/listen.html

Best Lossy video compression: H.265
Second best: No Idea - maybe Divx or Wmv?

Best Lossy image compression: Jpeg 2000.
Unfortunately, it is so patent encumbered, nobody uses it.
Second best: Jpeg.

Enjoy!

Pallav
__________________
Let the games begin!
http://www.ironcode.com/
pallavnawani is offline  
Old 01-04-2005, 07:28 PM   #5 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,519
Default

pallavnawani that was an encyclopedia on compression tools

thanks 4 da info....
__________________
mekalodu
iinfi is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by abhidev
- by clmlbx
- by Sarath
- by ico

Advertisement




All times are GMT +5.5. The time now is 03:02 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2