差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版 前次修改
下次修改
前次修改
tech:ogg2mp3 [2008/02/19 23:13] jonathantech:ogg2mp3 [2008/08/21 07:32] (目前版本) jonathan
行 1: 行 1:
 +====== 安裝 ogg 轉 mp3 工具程式 ======
 +因為在 CentOS 5.0 內已經安裝有  Sound Juicer 可以將音樂 CD 抓成 WAV 或 ogg 格式, 但是沒有預設可以轉成 mp3 或將 ogg 轉成 mp3 的工具, 經過 Google 的找尋知道有個 ogg2mp3.pl 的工具 Script 可以達成這樣的工作, 但是需要一些相配合的工具程式協同作業, 所以整理一下安裝的過程..
  
 +===== - 安裝環境與主要工具 =====
 +  * 作業系統 : CentOS 5.0 x86_64
 +
 +  * [[http://www.igso.net/nkb/Converting_ogg_to_mp3_in_Linux|ogg2mp3.pl 說明網頁]]
 +  * [[http://www.icewalkers.com/Linux/Software/59270/LAME.html|lame 工具網頁]]
 +  * [[http://nekohako.xware.cx/id3tool/|id3tool 工具網頁]]
 +  *  還有兩個工具程式原本就在 CentOS 5 內建就有.  ogg123 & ogginfo  安裝 vorbis-tools RPM 就有
 +
 +
 +===== - 實際安裝過程 =====
 +<file>
 +yum install -y vorbis-tools
 +
 +cd /tmp
 +
 +wget http://nchc.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
 +tar -zxvf lame-3.97.tar.gz
 +cd lame-3.97
 +./configure
 +make
 +make install
 +
 +cd /tmp
 +wget http://nekohako.xware.cx/id3tool/id3tool-1.2a.tar.gz
 +tar -zxvf id3tool-1.2a.tar.gz
 +cd id3tool-1.2a
 +./configure
 +make
 +make install
 +
 +cd /usr/local/bin
 +wget http://www.igso.net/share/nkb/ogg2mp3.pl
 +chmod a+x ogg2mp3.pl
 +
 +</file>
 +
 +
 +
 +===== - 使用語法 =====
 +  * 只要指定有 ogg 格式音樂檔案的目錄, 就會轉出 mp3 檔在相同目錄內.
 +  * 例如 /data/cdrip/testcd1/ 內有 1.ogg 2.ogg 3.ogg 檔
 +
 +  * 1. 分別轉 ogg -> mp3 (在 /data/cdrip/testcd1/ 目錄內轉出 1.mp3 2.mp3 3.mp3)
 +<file>
 +ogg2mp3.pl /data/cdrip/testcd1/*.ogg
 +</file>
 +  * 2. 合併轉 ogg -> mp3 (在 /data/cdrip/ 目錄內轉出 1.ogg + 2.ogg + 3.ogg 的 testcd1.mp3)
 +<file>
 +ogg2mp3.pl /data/cdrip/testcd1
 +</file>
 +
 +{{tag>ogg mp3 安裝}}