我正在安装ffmpeg
以在 Amazon Linux AMI 上运行,并添加了 reporpmforge
和dag
repo。以下是我用来参考的一些指南: 雙方和拉祖纳
rpmforge repo 有ffmpeg
,但如果你尝试安装它,它会抱怨缺少依赖项(对我来说libSDL-1.2.so.0()(64bit)
)。无论如何,我都会安装ffmpeg from svn so I can be sure to enable the options I want (namely
libx264 ). It seems strange to me though that SDL is not in
rpmforge or
dag`,并且根据我上面的两个参考资料,它应该在那里。我尝试从手动获取它这里,但是它需要这些依赖项,所以不行:
> error: Failed dependencies: SDL =
> 1.2.10-8.el5 is needed by SDL-devel-1.2.10-8.el5.x86_64
> alsa-lib-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
> libGL-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
> libGLU-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
> libSDL-1.2.so.0()(64bit) is needed by
> SDL-devel-1.2.10-8.el5.x86_64
> libX11-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
> libXext-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
> libXrandr-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
> libXrender-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
> libXt-devel is needed by
> SDL-devel-1.2.10-8.el5.x86_64
答案1
我发现缺少的依赖项位于 centOS 存储库中,而 amazon ec2 中不包含该存储库。我添加了存储库并能够配置和安装 ffmpeg。对于任何做同样事情的人,我推荐我在问题中提到的 Razuna 指南:http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat
(感谢 Linux 论坛上的 Rubberman 提供的解决方案)