安装libmp3lame在raspberry pi上使用FFMPEG [英] Installing libmp3lame to work with FFMPEG on raspberry pi
问题描述
我在我的RPi 2上使用了python 3.2的moviepy模块。它使用FFMPEG来读写视频,所以我使用这些指示信。现在当我运行该程序时,它表示我的视频导出失败,因为FFMPEG没有找到它需要的libmp3lame编解码器。我如何得到安装libmp3lame编解码器到我的RPi 2(运行Raspian Wheezy)?
I am using the moviepy module with python 3.2 on my RPi 2. It uses FFMPEG to read and write the video, so I installed FFMPEG using these instructions to the letter. Now when I run the program, it says that my video export failed because FFMPEG didn't find the libmp3lame codec that it needs. How do I got about installing the libmp3lame codec onto my RPi 2 (running Raspian Wheezy)?
我想我必须重新安装FFMPEG才能安装编解码器这样做正确吗?
I think I have to reinstall FFMPEG to install the codec.. how do I do that correctly?
推荐答案
首先,安装lame mp3与
First, install lame mp3 with
sudo apt-get install libmp3lame-dev
然后重新编译/构建ffmpeg,包括 - enable-libmp3lame
标志
and then recompile/build ffmpeg including the --enable-libmp3lame
flag
./configure <other-configure-options> --enable-libmp3lame
这篇关于安装libmp3lame在raspberry pi上使用FFMPEG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!