LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-20-2009, 10:52 AM   #1
vibinlakshman
Member
 
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, 10:56 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
There are two Linux compression programs. Gzip and bzip2.
 
Old 02-20-2009, 10:59 AM   #3
monsm
Member
 
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.

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

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

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
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, 04:13 PM   #6
gergely89
Member
 
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:
http://flac.sourceforge.net/download.html
and
http://www.linuxtutorialblog.com/pos...ss-audio-codec

linux

Last edited by gergely89; 02-27-2009 at 11:42 PM.
 
Old 02-20-2009, 05:14 PM   #7
palisetty_suman
Member
 
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


ALL THE BEST
 
Old 02-20-2009, 05:40 PM   #8
frieza
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,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
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, 03:52 AM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
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, 09:18 AM   #10
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
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.
 
  


Reply


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 10:40 PM
Compress Gins Linux - General 5 11-19-2004 02:05 PM
compress fs alaios Linux - General 5 09-07-2004 09:29 PM
compress Ownasaurus Linux - Software 4 09-12-2003 08:17 PM
Does CPIO compress? severedhead Linux - Software 1 08-03-2002 08:26 AM


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

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