安装libmp3lame以在r​​aspberry pi上使用FFMPEG

时间:2016-10-13 12:54:41

标签: ffmpeg raspberry-pi mp3 codec

我在我的RPi 2上使用带有python 3.2的moviepy模块。它使用FFMPEG来读取和写入视频,因此我使用these指令安装了FFMPEG。现在,当我运行该程序时,它说我的视频导出失败,因为FFMPEG没有找到它需要的libmp3lame编解码器。如何将libmp3lame编解码器安装到我的RPi 2上(运行Raspian Wheezy)?

我想我必须重新安装FFMPEG来安装编解码器..我该如何正确地做到这一点?

1 个答案:

答案 0 :(得分:4)

首先,使用

安装lame mp3
sudo apt-get install libmp3lame-dev

然后重新编译/构建ffmpeg,包括--enable-libmp3lame标志

./configure <other-configure-options> --enable-libmp3lame