1
1

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.

ffmpegが使えなくなった.

Posted at

TL;DR;

以下のコマンドを順番に実行することで, ffmpegm4a ファイルから wav ファイルへ変換できるようになった.

$ brew reinstall libvmaf
$ xcode-select --install
$ brew reinstall ffmpeg

経緯

  1. m4aファイルをwavファイルに変換したかった. ($ ffmpeg -i input.m4a -vn -ar 16000 -ac 1 -ab 192k -f wav output.wav)
  2. ffmpegコマンドを実行した.
  3. 以下のエラーが出た.
Library not loaded: /opt/homebrew/opt/libvmaf/lib/libvmaf.1.dylib
  Referenced from: <xxx> /opt/homebrew/Cellar/ffmpeg/6.0/bin/ffmpeg

直した手順

筆者の環境は以下のとおりです.

  • macOSのM1チップ
  • brewが導入されている.

冗長な手順や,不適切な手順が含まれている可能性があります.
間違いなどがございましたら,ご指摘をお願いします.

参照先 libvmaf がloadされてないと言われるが,自分の環境は既に入っていたので,以下のコマンドを実行する.

$ brew reinstall libvmaf

これでも, ffmpeg が実行できなかったので, ffmpegreinstall したが, xcode-select --install を実行しなければならないという旨のエラーメッセージが出た.
従って,以下のコマンドを実行する.

$ xcode-select --install

すると,以下のようなポップアップが出るので,インストールを行う.
image.png

インストールが終了したら,以下のコマンドを実行する.

$ brew reinstall ffmpeg

すると,ffmpegコマンドが実行できた!!!

$ ffmpeg -i input.m4a -vn -ar 16000 -ac 1 -ab 192k -f wav output.wav
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?