我有一台CentOS机器,我想在其上安装ffmpeg。我试过了
yum install ffmpeg
但无法在控制台上安装和显示错误
Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libtheoradec.so.1()(64bit)
Error: Package: libavdevice-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libSDL-1.2.so.0()(64bit)
Error: Package: ffmpeg-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libSDL-1.2.so.0()(64bit)
Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libhogweed.so.2()(64bit)
Error: Package: libavdevice-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libv4l2.so.0()(64bit)
Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libgnutls.so.28()(64bit)
Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libass.so.5()(64bit)
Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libopenjpeg.so.1()(64bit)
Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libgsm.so.1()(64bit)
Error: Package: libavdevice-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libcdio_paranoia.so.1(CDIO_PARANOIA_1)(64bit)
Error: Package: libavdevice-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libpulse.so.0(PULSE_0)(64bit)
Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libva.so.1()(64bit)
Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libgnutls.so.28(GNUTLS_3_0_0)(64bit)
Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libschroedinger-1.0.so.0()(64bit)
Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
Requires: libtheoraenc.so.1(libtheoraenc_1.0)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
然后我跟着这个link创建了一个包含
的bin文件夹-rwxr-xr-x 1 root root 21545536 Dec 14 19:38 ffmpeg
-rwxr-xr-x 1 root root 21452512 Dec 14 19:38 ffprobe
-rwxr-xr-x 1 root root 19227136 Dec 14 19:38 ffserver
-rwxr-xr-x 1 root root 505728 Dec 14 19:11 lame
-rwxr-xr-x 1 root root 2779368 Dec 14 18:51 nasm
-rwxr-xr-x 1 root root 1078048 Dec 14 18:51 ndisasm
-rwxr-xr-x 1 root root 2550848 Dec 14 18:54 vsyasm
-rwxr-xr-x 1 root root 2548168 Dec 14 18:54 yasm
-rwxr-xr-x 1 root root 2526096 Dec 14 18:54 ytasm
当我尝试运行时
[root@ip-XXX-XX-XX-XXX bin]# ffmpeg
显示
bash: ffmpeg: command not found
我错过了什么吗?
答案 0 :(得分:1)
将ffmpeg
文件复制或移动到/usr/local/bin
。
答案 1 :(得分:1)
这是一个回购问题。只需更新您的repo文件,然后执行yum clean all
,最后yum install -y ffmpeg
将加载需求和依赖项。