peachcolor 写了:比如你要转的文件叫test.wma
代码: 全选
mplayer test.wma -ao pcm:file=test.wav
lame -h --preset standard test.wav test.mp3
K.O.
如果上面用的两个工具你没装,安装如下
代码: 全选
sudo apt-get install mplayer lame
转的听不了
sudo mplayer In\ Credo\ -\ Siesta\ Del\ Sol.wma -ao pcm:file=Incredo.wav
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) D CPU 3.00GHz (Family: 15, Model: 6, Stepping: 5)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing In Credo - Siesta Del Sol.wma.
Audio file file format detected.
==========================================================================
Forced audio codec: mad
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[AO PCM] File: Incredo.wav (WAVE)
PCM: Samplerate: 44100Hz Channels: Stereo Format s16le
[AO PCM] Info: Faster dumping is achieved with -vc null -vo null -ao pcm:fast
[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).
AO: [pcm] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 0.4 (00.3) of 0.4 (00.3) ??,?%
Exiting... (End of file)
sudo lame -h --preset standard Incredo.wav Incredo.mp3
LAME 3.97 32bits (
http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE, SSE2
Using polyphase lowpass filter, transition band: 18671 Hz - 19205 Hz
Encoding Incredo.wav to Incredo.mp3
Encoding as 44.1 kHz VBR(q=2) j-stereo MPEG-1 Layer III (ca. 7.3x) qval=2
Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
16/16 (100%)| 0:00/ 0:00| 0:00/ 0:00| 6.9660x| 0:00
32 [ 9] %%%%%%%%**************************************************************
40 [ 0]
48 [ 0]
56 [ 1] ********
64 [ 0]
80 [ 0]
96 [ 1] ********
112 [ 1] ********
128 [ 3] ************************
160 [ 1] ********
192 [ 0]
224 [ 0]
256 [ 0]
320 [ 0]
-------------------------------------------------------------------------------
kbps LR MS % long %
68.5 6.2 93.8 100.0
Writing LAME Tag...done
ReplayGain: +39.0dB