最近樓主繼續(xù)用mp3聽歌肋拔,所以試了下轉(zhuǎn)換音樂文件格式
1. 下載mp3fs
https://github.com/khenriks/mp3fs/blob/master/INSTALL.md
下載前鸵鸥,先確保有以下庫(kù)
fuse (>= 2.6.0)
flac++ (>= 1.1.4)
libvorbis (>= 1.3.0)
lame
libid3tag
還需要以下命令
autoconf
automake
asciidoc
xmllint
xmlto
沒有的話件豌,yum install fuse-devel flac-devel libvorbis-devel lame-devel libid3tag-devel
一切準(zhǔn)備就緒后,可以開始安裝了
git clone https://github.com/khenriks/mp3fs.git
cd mp3fs
./autogen.sh #autoconf不可以
./configure #--prefix=/your/path/bin(將命令添加至環(huán)境變量中)
make
make install
2. 使用mp3fs
mp3fs -b 128 /mnt/music /mnt/mp3 -o allow_other,ro
#mp3fs [-options] InPutDir OutPutDir
#InPutDir OutPutDir輸入為絕對(duì)路徑
3. 示例
mp3fs -b 128 /home/louis/music/flac /home/louis/music/mp3 -o allow_other,ro
結(jié)果:在/home/louis/music/mp3文件夾下生成mp3格式的目標(biāo)文件