LoginSignup
29
24

More than 5 years have passed since last update.

ffmpeg で mp4 を mp3 に変換する

Last updated at Posted at 2013-07-08

Mac で ffmpeg を使用して mp4 を mp3 に変換する。

動作環境

  • Mac OS X 10.10
  • homebrew 0.9.5
  • ffmpeg 2.6.2

ffmpeg のインストール

brew install ffmpeg --with-tools

mp4 を mp3 に変換

cd [mp4があるディレクトリ]
find . -type f -name "*.mp4" -print0 | perl -pe 's/\.mp4\0/\0/g' | xargs -0 -I% ffmpeg -i %.mp4 -acodec libmp3lame -ab 256k %.mp3
29
24
6

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
29
24