顯示頁面舊版反向連結Fold/unfold all回到頁頂 本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。 ====== 安裝 flac 轉 mp3 工具程式 ====== ===== - 安裝環境與主要工具 ===== * 作業系統 : CentOS 5.6 x86_64 * 先安裝 [[https://rpmrepo.org/RPMforge/Using|RPMforge]] * 在安裝 flac lame id3lib<code sh> yum install flac lame id3lib </code> ===== - 轉換語法 ===== * xxx.flac to xxx.mp3 : <code sh> flac -d --stdout "xxx.flac" | lame -V0 --vbr-new - "xxx.mp3" </code> * 複製 id3 資訊 : <code sh> id3cp -2 xxx.flac xxx.mp3 </code> ===== - 預計寫個 flac2mp3.pl ===== * 只要指定有 flac 格式音樂檔案的目錄, 就會轉出 mp3 檔在相同目錄內. * 例如 /data/cdrip/testcd1/ 內有 1.flac 2.flac 3.flac 檔 * 1. 分別轉 flac -> mp3 (在 /data/cdrip/testcd1/ 目錄內轉出 1.mp3 2.mp3 3.mp3) <file> flac2mp3.pl /data/cdrip/testcd1/*.flac </file> * 2. 合併轉 flac -> mp3 (在 /data/cdrip/ 目錄內轉出 1.flac + 2.flac + 3.flac 的 testcd1.mp3) <file> flacmp3.pl /data/cdrip/testcd1 </file> ===== 參考網址 ===== * http://idolinux.blogspot.com/2008/08/convert-flac-to-mp3-on-linux.html {{tag>flac mp3 安裝}} tech/flac2mp3.txt 上一次變更: 2011/06/03 13:14由 jonathan