2008年4月1日 星期二

wma -> wav -> mp3

wma 線上廣播聲音檔

1. wma 轉成 wav
mplayer xx.wma -ao pcm:file=xx.wav

2. wav 轉成 mp3
lame -ms xx.wav -o xx.mp3


關於第一部份
可以man mplayer
AUDIO OUTPUT DRIVERS (MPLAYER ONLY)
Audio output drivers are interfaces to different audio output facili-
ties. The syntax is:

第二部份
-s sfreq
sfreq = 8/11.025/12/16/22.05/24/32/44.1/48
需要搭配原來為wma的格式
如果是 wav 的話 下此參數無效

可以利用此參數調整輸出的品質
可參考 http://www.dearhoney.idv.tw/MP3/Encoder/Tiberius20001119/

以下 just for myself
這樣子看來
應該直接從wma -> mp3
like this
lame -ms xx.wma -s 8 -o xx.mp3
///
Assuming raw pcm input file
LAME 3.97 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE, SSE2
Using polyphase lowpass filter, transition band: 3903 Hz - 4000 Hz
Encoding 20080303baa.wma to 20080301part2.mp3
Encoding as 8 kHz 24 kbps stereo MPEG-2.5 Layer III (10.7x) qval=3
Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
3358/3358 (100%)| 0:04/ 0:04| 0:05/ 0:05| 48.355x| 0:00
-------------------------------------------------------------------------------
kbps LR % long switch short %
24.0 100.0 99.8 0.1 0.1
Writing LAME Tag...done
ReplayGain: -16.5dB

lame -ms 20080303baa.wma -s 16 -o 20080301part2.mp3
Assuming raw pcm input file
LAME 3.97 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE, SSE2
Using polyphase lowpass filter, transition band: 7548 Hz - 7742 Hz
Encoding 20080303baa.wma to 20080301part2.mp3
Encoding as 16 kHz 48 kbps stereo MPEG-2 Layer III (10.7x) qval=3
Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
3358/3358 (100%)| 0:03/ 0:03| 0:03/ 0:03| 34.638x| 0:00
-------------------------------------------------------------------------------
kbps LR % long switch short %
48.0 100.0 99.8 0.1 0.1
Writing LAME Tag...done
ReplayGain: -15.5dB

轉出結果
-rw-r--r-- 1 nelsonchung nelsonchung 645120 2008-04-09 01:06 20080301part48.mp3
-rw-r--r-- 1 nelsonchung nelsonchung 725760 2008-04-09 01:06 20080301part32.mp3
-rw-r--r-- 1 nelsonchung nelsonchung 644928 2008-04-09 01:05 20080301part24.mp3
-rw-r--r-- 1 nelsonchung nelsonchung 725544 2008-04-09 01:05 20080301part16.mp3
-rw-r--r-- 1 nelsonchung nelsonchung 725544 2008-04-09 01:05 20080301part8.mp3
-rw-r--r-- 1 nelsonchung nelsonchung 702170 2008-04-09 01:05 20080301part441.mp3
-rw-r--r-- 1 nelsonchung nelsonchung 17916336 2008-04-09 00:30 20080301.mp3

結果轉出來的東西
都是干擾的電波聲音
看來還是要透過 wma -> wav 再轉成 mp3

透過Facebook分享

沒有留言: