mp4ファイルから音声抽出

2010/12/06未分類import
次のようにコマンドを叩きましょう.
ushi@BigOwl:~/Picture$ ffmpeg -i input.mp4 -acodec libmp3lame -ab 192k out-192kbps.mp3
ちなみに,ffmpegのオプションとかはこちらのサイト(最新FFmpeg)
こちらのサイト(mp4からmp3へ変換する)などを参照しました.ありがとうございます.

ちなみに,使用したffmpegのバージョンですが,
ushi@BigOwl:~/Picture$ ffmpeg -v
FFmpeg version SVN-r13582, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --bindir=${prefix}/bin --incdir=${prefix}/include/ffmpeg --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --mandir=${prefix}/share/man --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-libamr-nb --enable-libamr-wb --enable-x11grab --enable-libgsm --enable-libx264 --enable-liba52 --enable-libtheora --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc --enable-swscale --enable-libdc1394 --enable-nonfree --disable-mmx --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
  libavutil version: 49.7.0
  libavcodec version: 51.58.0
  libavformat version: 52.16.0
  libavdevice version: 52.0.0
  libavfilter version: 0.0.0
  built on Oct  4 2010 15:19:23, gcc: 4.3.2
ffmpeg: missing argument for option '-v'
ushi@BigOwl:~/Picture$
あ,vオプションなんてないそうですね.すみませんでした…….

ちなみに,-threads 0とかそれ系のオプションを使うとマルチスレッドで実行されて速くなることがあるかもしれません.