Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-20-2009, 09:52 AM   #1
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 33
Cool To compress any application?

I need to compress an audio file , is there any mechanism to do it . Or any specific tool like zip or smthing like that..?
Old 02-20-2009, 09:56 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
There are two Linux compression programs. Gzip and bzip2.
Old 02-20-2009, 09:59 AM   #3
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Of course audio and video files won't compress much.

If the audio file is WAV format you can recode it into mp3 as a form of comrpession using audio conversion tools.

Old 02-20-2009, 10:11 AM   #4
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Rep: Reputation: 17
man gzip
man bzip2
and see its use and functions with different options
Old 02-20-2009, 10:41 AM   #5
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
I recommend 7z for the best compression ratio. bzip2 and gzip have the advantage that they are installed by default on most distros. Gzip has an advantage, it's very soft in cpu usage terms. You can as well use zip in linux, but since there are much better options I don't recommend it. However, as said, if the media has already been compressed using a lousy format like mpg in any of its forms, then you are going to gain very little in compressing it again. But it will help if you are using plain wav files or (to a lesser degree) non-lousy codecs like flac.
Old 02-20-2009, 03:13 PM   #6
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
If your original audio file is a WAV format, then you can save disk space by converting to MP3 or FLAC, even without using any compressing tool.
For FLAC see:


Last edited by gergely89; 02-27-2009 at 10:42 PM.
Old 02-20-2009, 04:14 PM   #7
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Rep: Reputation: 33
Thumbs up winzip in linux

Hi here are the two commands to unzip a .gz file extension

1)gunzip -S .zip filename.gz

2)gunzip filename.gz

Old 02-20-2009, 04:40 PM   #8
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,225

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
as mentioned it depends on the audio file
mp3 flac, mpeg, avi etc.. ARE compressed so to try zip it would be like trying to zip a zip file, you arent gonna get much more compression
wav on the other hand isnt compressed so converting it to mp3 or aac IS compressing it
the only ziping or tarballing mp3s is for archival purpose of storing an entire library of audio files as one easier to locate file (such as a backup) and process but it's not gonna shrink the file size much
Old 02-21-2009, 02:52 AM   #9
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287
You're not speaking / thinking clearly here.

Application does not equal audio file.

Audio and video as said above do NOT compress almost at all with regular file compression techniques. Instead you have to transcode them to a different format. For example from wav to mp3 for a huge difference in size, or to flac to keep things lossless. Most of the compression methods available for audio and video are lossy, and they have to be, because if they weren't the amount of space saved would be minimal.

Regular files like text and binary programs will compress well with regular file compression techniques, if you want fast compression/decompression use gzip, if you want maximum compression use 7zip with lzma.
Old 02-22-2009, 08:18 AM   #10
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
Originally Posted by H_TeXMeX_H View Post
Audio and video as said above do NOT compress almost at all with regular file compression techniques.
It would be more correct to say that re-compressing them -again- with a regular compression algorithm is pointless once the file is already compressed with a codec that already offers compression. Uncompressed formats will benefit from compression just as well as any other file, no less.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
File Compress malru AIX 2 06-17-2006 09:40 PM
Compress Gins Linux - General 5 11-19-2004 01:05 PM
compress fs alaios Linux - General 5 09-07-2004 08:29 PM
compress Ownasaurus Linux - Software 4 09-12-2003 07:17 PM
Does CPIO compress? severedhead Linux - Software 1 08-03-2002 07:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:44 PM.

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