用libmp3lame重新编译ffmpeg [英] recompile ffmpeg with libmp3lame
问题描述
我已经在我的centos中安装了ffmpeg。现在我想用'libmp3lame'重新编译它。可以重新编译已安装的ffmpeg,或者我想删除ffmpeg并重新安装。
I have installed ffmpeg using yum install in my centos.Now i want to recompile it with 'libmp3lame'.Is possible a recompilation of the installed ffmpeg or i want to remove ffmpeg and reinstall.
的建议是非常可观的。
suggestion is highly appreciable.
推荐答案
与AAC和其他一些音频格式不同,FFmpeg没有本机MP3编码器,因此您必须使用支持的外部编码库如libmp3lame。如果您的 ffmpeg
未配置为 - enable-libmp3lame
:
Unlike AAC and some other audio formats, FFmpeg does not have a native MP3 encoder, so you have to use a supported external encoding library such as libmp3lame. You have several options if your ffmpeg
is not configured with --enable-libmp3lame
:
下载 ffmpeg
for Linux 。这是一个已编译的二进制文件。这是最简单的解决方案。
Download ffmpeg
for Linux. This is an already compiled binary. This is the easiest solution.
请参阅 FFmpeg下载< a>页面,链接到Windows和OS X构建。
See the FFmpeg Download page for links to Windows and OS X builds.
按照在CentOS上编译FFmpeg的非侵入性分步指南。如果你可以复制和粘贴你可以编译。
Follow a non-invasive step-by-step guide to Compile FFmpeg on CentOS. If you can copy and paste you can compile.
ffmpeg -i input -f wav - | lame - output.mp3
我不认为这是一个实际的解决方案,但它可能是有用的一些。
I do not consider this to be a practical solution but it may be useful to some.
如果您不需要MP3,您可以使用AAC或其他具有原生编码支持的音频格式。
If you don't require MP3 you can use AAC or some other audio format that has native encoding support.
这篇关于用libmp3lame重新编译ffmpeg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!