FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'

好久不见. 提交于 2019-12-04 01:25:55

Like the warning says:

Couldn't find ffplay or avplay - defaulting to ffplay, but may not work

You need to have either ffplay or avplay; however ffplay refers to ffmpeg which is not installable in Ubuntu in recent versions. Install the libav-tools package with apt-get:

sudo apt-get install libav-tools
sudo apt-get install ffmpeg

Note: Tested on Ubuntu 18.04

Seems like you need ffmpeg, but

sudo apt-get install ffmpeg 

does not work anymore. You can get ffmpeg by:

sudo add-apt-repository ppa:jon-severinsson/ffmpeg
sudo apt-get update
sudo apt-get install ffmpeg

If it won't let you install using sudo apt-get install libav-tools You can download the .deb from here:

wget http://launchpadlibrarian.net/339874908/libav-tools_3.3.4-2_all.deb

Then run sudo apt install ./libav-tools_3.3.4.2_all.deb

I've faced the same problem on my Ubuntu Ubuntu 18.04.3 LTS.

The issue is being solved by simply installing ffmpeg using:

sudo apt-get install ffmpeg 

Instead of the popular Git-thread (https://github.com/lengstrom/fast-style-transfer/issues/129) suggestion of:

brew install ffmpeg

But you can always try both if the one doesn't work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!