北漂IT民工 的博客

Ubuntu 9.10 下通过ffmpeg实现MKV提取音频到MP3

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  
sudo apt-get build-dep ffmpeg</p>

sudo apt-get install build-essential checkinstall

sudo apt-get install liblame-dev libfaad-dev libfaac-dev

libxvidcore-dev liba52-* libx264-dev libopenjpeg-dev

sudo apt-get source ffmpeg

cd ffmpeg-*

sudo ./configure --enable-gpl --enable-nonfree --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264

sudo make

sudo make install

sudo ffmpeg -i input.ac3 -acodec libmp3lame -ar 44100 -ab 192k -ac 2 out.mp3