Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
24
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

updated at

ffmpeg で mp4 を mp3 に変換する

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
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
24
Help us understand the problem. What are the problem?