0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[memo] ffmpegでmp3をaacに変換

Posted at

手順

インストール

Homebrew でlibfdk_aacに対応したffmpegをインストール

$ brew tap homebrew-ffmpeg/ffmpeg
$ brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac

変換

$ ffmpeg -i music.mp3 -vn -c:a libfdk_aac -vbr 4 music_vbr4.m4a

-vnオプションで映像を無視。

罠になりそうなポイント

  • VBR(可変ビットレート)で変換する場合はlibfdk_aacつきのffmpegが必要だが、標準ではlibfdk_aacはついていない模様。
  • Homebrewで普通にffmpegを入れてもlibfdk_aacつきのものは入らない。
  • 映像を変換しようとしてエラーが出る。-vnオプションで映像を無視する必要がある。
    映像などないと思われるかもしれないがアルバムアートが映像扱いで埋め込まれている場合がある模様。

gistの記事の転載です:
https://gist.github.com/acevif/fa55e3e49134ec41ecfe77f11b9d2438

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?