Howto install lame mp3 convert on Centos / Redhat RHEL / Asterisk

Howto install lame mp3 convert on Centos / Redhat RHEL / Asterisk

 

 

1. Install rpmforge on Centos or Redhat

[root@localhost ~]# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-rel ease-0.5.2-2.el6.rf.x86_64.rpm
–2013-01-06 15:38:31– http://pkgs.repoforge.org/rpmforge-release/rpmforge-rel ease-0.5.2-2.el6.rf.x86_64.rpm
Resolving pkgs.repoforge.org… 78.46.17.228
Connecting to pkgs.repoforge.org|78.46.17.228|:80… connected.
HTTP request sent, awaiting response… 302 Found
Location: http://rpmforge.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-rele ase-0.5.2-2.el6.rf.x86_64.rpm [following]
–2013-01-06 15:38:33– http://rpmforge.sw.be/redhat/el6/en/x86_64/rpmforge/RPM S/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
Resolving rpmforge.sw.be… 78.46.17.228
Connecting to rpmforge.sw.be|78.46.17.228|:80… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: http://tree.repoforge.org/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge- release-0.5.2-2.el6.rf.x86_64.rpm [following]
–2013-01-06 15:38:37– http://tree.repoforge.org/redhat/el6/en/x86_64/rpmforge /RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
Resolving tree.repoforge.org… 78.46.17.228
Connecting to tree.repoforge.org|78.46.17.228|:80… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0 .5.2-2.el6.rf.x86_64.rpm [following]
–2013-01-06 15:38:40– http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpm forge-release-0.5.2-2.el6.rf.x86_64.rpm
Resolving apt.sw.be… 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 12700 (12K) [application/x-redhat-package-manager]
Saving to: ârpmforge-release-0.5.2-2.el6.rf.x86_64.rpmâ100%[======================================>] 12,700 20.3K/s in 0.6s2013-01-06 15:38:43 (20.3 KB/s) – ârpmforge-release-0.5.2-2.el6.rf.x86_64.rpmâ
[root@localhost ~]# rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
warning: rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm: Header V3 DSA/SHA1 Signatur e, key ID 6b8d79e6: NOKEY
Preparing… ########################################### [100%]
1:rpmforge-release ########################################### [100%][root@localhost ~]#

2. Install lame for convert mp3 file

[root@localhost ~]# yum install lame
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.uhost.hk
* epel: ftp.cuhk.edu.hk
* extras: centos.uhost.hk
* rpmforge: mirror.oscc.org.my
* updates: centos.uhost.hk
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package lame.x86_64 0:3.99.5-1.el6.rf will be installed
–> Finished Dependency ResolutionDependencies Resolved================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
lame x86_64 3.99.5-1.el6.rf rpmforge 647 kTransaction Summary
================================================================================
Install 1 Package(s)Total download size: 647 k
Installed size: 2.3 M
Is this ok [y/N]: y
Downloading Packages:
lame-3.99.5-1.el6.rf.x86_64.rpm | 647 kB 00:09
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : lame-3.99.5-1.el6.rf.x86_64 1/1
Verifying : lame-3.99.5-1.el6.rf.x86_64 1/1Installed:
lame.x86_64 0:3.99.5-1.el6.rfComplete!
[root@localhost ~]#

3.  Convert wav files to mp3 files

[root@localhost Desktop]# ls
anyconnect-linux-2.5.6005-k9.gz ciscovpn vm-deleted.wav
[root@localhost Desktop]#
[root@localhost Desktop]# lame -V 1 vm-deleted.wav vm-deleted.mp3
LAME 3.99.5 64bits (http://lame.sf.net)
polyphase lowpass filter disabled
Encoding vm-deleted.wav to vm-deleted.mp3
Encoding as 8 kHz single-ch MPEG-2.5 Layer III VBR(q=0.49495)
Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
18/18 (100%)| 0:00/ 0:00| 0:00/ 0:00| 129.60x| 0:00
8 [ 1] ***************************
16 [ 0]
24 [ 2] ******************************************************
32 [ 3] *********************************************************************************
40 [ 7] *******************************************************************************************************************************************************************************************
48 [ 4] ***********************************************************************************************************
56 [ 1] ***************************
64 [ 0]
—————————————————————————————————————————————————————————————————-
kbps mono % long switch short %
37.8 100.0 22.2 22.2 55.6
Writing LAME Tag…done
ReplayGain: -3.4dB
[root@localhost Desktop]#

That’s all. Thanks for using IThelpblog.com

 

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>