Installing libmp3lame to work with FFMPEG on raspberry pi

痞子三分冷 提交于 2019-12-24 09:48:27

问题


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)?

I think I have to reinstall FFMPEG to install the codec.. how do I do that correctly?


回答1:


First, install lame mp3 with

sudo apt-get install libmp3lame-dev

and then recompile/build ffmpeg including the --enable-libmp3lame flag

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


来源:https://stackoverflow.com/questions/40021623/installing-libmp3lame-to-work-with-ffmpeg-on-raspberry-pi

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