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.

RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not workが出た際の対処法

Last updated at Posted at 2023-03-20

はじめに

 pydubとsimpleaudioを使って音声を再生しようとしたところ、

warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work

 のエラーが発生。
 ネットで検索すると以下のサイトがヒット

対処法

まずffmpegの公式サイトにアクセス。windowsのマークにカーソルを合わせたうえで、Windows EXE FilesのWindows builds from gyan.devをクリック。(Windows builds by BtbNとの違いは知りません)

するとこのサイトが開くのでここのlatest git master branch buildのffmpeg-git-essentials.7zをクリックしてダウンロード。

ダウンロードしたファイルを7-Zipか何かで解凍してffmpeg.exeが入っているbinフォルダをPathに設定。(設定の仕方は下のサイトを参照されたし)

あとはpip install ffmpegとコマンドプロンプトに入力してsuccessfully installedされれば終わり。

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?