centos8 install ffmpeg
2024-11-28FFmpeg是一套可以用来记录、转换数字音频、视频,并能将其转化为流的开源计算机程序。采用LGPL或GPL许可证。它提供了录制、转换以及流化音视频的完整解决方案。它包含了非常先进的音频/视频编解码库libavcodec,为了保证高可移植性和编解码质量,libavcodec里很多code都是从头开发的。
1、先安装 https://rpmfind.net/linux/almalinux/8.10/PowerTools/x86_64/os/Packages/SDL2-2.0.10-2.el8.x86_64.rpm
2、centos8
https://mirrors.neterra.net/rpmfusion/free/el/rpmfusion-free-release-8.noarch.rpm
3、
[root@dev-eachbot-web01 ~]# history|grep wget
1001 wget https://rpmfusion.ip-connect.info/free/el/updates/8/x86_64/f/ffmpeg-4.2.10-1.el8.x86_64.rpm
1003 wget https://mirrors.neterra.net/rpmfusion/free/el/updates/8/x86_64/f/ffmpeg-libs-4.2.10-1.el8.x86_64.rpm
1007 wget https://mirrors.neterra.net/rpmfusion/free/el/updates/8/x86_64/f/ffmpeg-devel-4.2.10-1.el8.x86_64.rpm
1010 wget https://mirrors.neterra.net/rpmfusion/free/el/updates/8/x86_64/l/libavdevice-4.2.10-1.el8.x86_64.rpm
4、yum install ffmpeg
Package Arch Version Repository Size
=====================================================================================================================
Installing:
ffmpeg x86_64 4.2.10-1.el8 rpmfusion-free-updates 1.4 M
Installing dependencies:
alsa-lib x86_64 1.2.5-4.el8 AppStream 489 k
ffmpeg-libs x86_64 4.2.10-1.el8 rpmfusion-free-updates 7.2 M
flac-libs x86_64 1.3.2-9.el8 AppStream 217 k
fribidi x86_64 1.0.4-8.el8 AppStream 89 k
glibmm24 x86_64 2.56.0-2.el8 AppStream 648 k
graphite2 x86_64 1.3.10-10.el8 AppStream 122 k
gsm x86_64 1.0.17-5.el8 AppStream 37 k
harfbuzz x86_64 1.7.5-3.el8 AppStream 295 k
jack-audio-connection-kit x86_64 1.9.14-4.el8 epel 523 k
lame-libs x86_64 3.100-6.el8 AppStream 361 k
libICE x86_64 1.0.9-15.el8 AppStream 74 k
libSM x86_64 1.2.3-1.el8 AppStream 48 k
libX11-xcb x86_64 1.6.8-5.el8 AppStream 14 k
libXfixes x86_64 5.0.3-7.el8 AppStream 25 k
libXft x86_64 2.3.3-1.el8 AppStream 67 k
libXi x86_64 1.7.10-1.el8 AppStream 49 k
libXtst x86_64 1.2.3-7.el8 AppStream 22 k
libXxf86vm x86_64 1.1.4-9.el8 AppStream 19 k
libaom x86_64 3.6.1-1.el8 epel 1.9 M
libass x86_64 0.17.1-1.el8 epel 123 k
libasyncns x86_64 0.8-14.el8 AppStream 32 k
libatomic x86_64 8.5.0-4.el8_5 base 24 k
libavdevice x86_64 4.2.10-1.el8 rpmfusion-free-updates 98 k
libbluray x86_64 1.0.2-3.el8 AppStream 162 k
libcdio x86_64 2.0.0-3.el8 AppStream 256 k
libcdio-paranoia x86_64 10.2+0.94+2-3.el8 AppStream 92 k
libconfig x86_64 1.5-9.el8 base 69 k
libdatrie x86_64 0.2.9-7.el8 AppStream 33 k
libdav1d x86_64 0.5.2-2.el8 epel 346 k
libdrm x86_64 2.4.106-2.el8 AppStream 167 k
libffado x86_64 2.4.7-1.el8 epel 835 k
libglvnd x86_64 1:1.3.2-1.el8 AppStream 127 k
libglvnd-glx x86_64 1:1.3.2-1.el8 AppStream 137 k
libiec61883 x86_64 1.2.0-18.el8 AppStream 43 k
libjpeg-turbo x86_64 1.5.3-12.el8 AppStream 157 k
libmfx x86_64 1.25-4.el8 epel 36 k
libmodplug x86_64 1:0.8.9.0-9.el8 epel 171 k
libogg x86_64 2:1.3.2-10.el8 AppStream 31 k
libpciaccess x86_64 0.14-1.el8 base 32 k
libraw1394 x86_64 2.1.2-5.el8 AppStream 72 k
librsvg2 x86_64 2.42.7-4.el8 AppStream 571 k
libsamplerate x86_64 0.1.9-1.el8 AppStream 1.0 M
libsigc++20 x86_64 2.10.0-6.el8 AppStream 44 k
libsndfile x86_64 1.0.28-10.el8_4.1 AppStream 193 k
libthai x86_64 0.1.27-2.el8 AppStream 203 k
libtheora x86_64 1:1.1.1-21.el8 AppStream 184 k
libv4l x86_64 1.14.2-3.el8 AppStream 194 k
libva x86_64 2.5.0-2.el8 AppStream 95 k
libvdpau x86_64 1.4-2.el8 AppStream 41 k
libvmaf x86_64 1.3.15-2.el8 epel 351 k
libvorbis x86_64 1:1.3.6-2.el8 AppStream 196 k
libvpx x86_64 1.7.0-8.el8 AppStream 854 k
libwayland-client x86_64 1.19.0-1.el8 AppStream 39 k
libxml++ x86_64 2.40.1-10.el8 epel 102 k
libxshmfence x86_64 1.3-2.el8 AppStream 13 k
mesa-filesystem x86_64 21.1.5-1.el8 AppStream 34 k
mesa-libGL x86_64 21.1.5-1.el8 AppStream 184 k
mesa-libglapi x86_64 21.1.5-1.el8 AppStream 66 k
ocl-icd x86_64 2.2.12-1.el8 AppStream 51 k
openal-soft x86_64 1.18.2-7.el8 AppStream 394 k
opencore-amr x86_64 0.1.5-7.el8 rpmfusion-free-updates 180 k
openjpeg2 x86_64 2.4.0-4.el8 AppStream 165 k
opus x86_64 1.3-0.4.beta.el8 AppStream 204 k
pango x86_64 1.42.4-8.el8 AppStream 297 k
pugixml x86_64 1.13-1.el8 epel 101 k
pulseaudio-libs x86_64 14.0-2.el8 AppStream 681 k
soxr x86_64 0.1.3-4.el8 epel 97 k
speex x86_64 1.2.0-1.el8 AppStream 71 k
srt-libs x86_64 1.4.1-3.el8 epel 249 k
vapoursynth-libs x86_64 51-1.el8 epel 427 k
vid.stab x86_64 1.1.0-12.20190213gitaeabc8d.el8 epel 47 k
vo-amrwbenc x86_64 0.1.3-8.el8 rpmfusion-free-updates 77 k
x264-libs x86_64 0.157-12.20190717git34c06d1.el8 rpmfusion-free-updates 651 k
x265-libs x86_64 3.1.2-1.el8 rpmfusion-free-updates 1.9 M
xvidcore x86_64 1.3.7-9.el8 epel 268 k
zimg x86_64 3.0.5-1.el8 epel 282 k
zvbi x86_64 0.2.35-9.el8 epel 424 k
Transaction Summary
=====================================================================================================================
Install 78 Packages
5、[root@dev-eachbot-web01 ~]# ldd /usr/bin/ffmpeg
linux-vdso.so.1 (0x00007ffd22dfb000)
libavdevice.so.58 => /lib64/libavdevice.so.58 (0x00007fd6bef19000)
libavfilter.so.7 => /lib64/libavfilter.so.7 (0x00007fd6be9ef000)
libavformat.so.58 => /lib64/libavformat.so.58 (0x00007fd6be5a8000)
libavcodec.so.58 => /lib64/libavcodec.so.58 (0x00007fd6bcffe000)
libavresample.so.4 => /lib64/libavresample.so.4 (0x00007fd6bcdde000)
libpostproc.so.55 => /lib64/libpostproc.so.55 (0x00007fd6bcbc6000)
libswresample.so.3 => /lib64/libswresample.so.3 (0x00007fd6bc9a9000)
libswscale.so.5 => /lib64/libswscale.so.5 (0x00007fd6bc720000)
libavutil.so.56 => /lib64/libavutil.so.56 (0x00007fd6bc417000)
libm.so.6 => /lib64/libm.so.6 (0x00007fd6bc095000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fd6bbe75000)
libc.so.6 => /lib64/libc.so.6 (0x00007fd6bbab0000)
libjack.so.0 => /lib64/libjack.so.0 (0x00007fd6bb862000)
libdrm.so.2 => /lib64/libdrm.so.2 (0x00007fd6bb64f000)
libopenal.so.1 => /lib64/libopenal.so.1 (0x00007fd6bb3b3000)
libxcb.so.1 => /lib64/libxcb.so.1 (0x00007fd6bb18a000)
libxcb-shm.so.0 => /lib64/libxcb-shm.so.0 (0x00007fd6baf86000)
libxcb-shape.so.0 => /lib64/libxcb-shape.so.0 (0x00007fd6bad82000)
libxcb-xfixes.so.0 => /lib64/libxcb-xfixes.so.0 (0x00007fd6bab7a000)
libcdio_paranoia.so.2 => /lib64/libcdio_paranoia.so.2 (0x00007fd6ba970000)
libcdio_cdda.so.2 => /lib64/libcdio_cdda.so.2 (0x00007fd6ba767000)
libasound.so.2 => /lib64/libasound.so.2 (0x00007fd6ba45b000)
libGL.so.1 => /lib64/libGL.so.1 (0x00007fd6ba1d5000)
libpulse.so.0 => /lib64/libpulse.so.0 (0x00007fd6b9f80000)
libSDL2-2.0.so.0 => /lib64/libSDL2-2.0.so.0 (0x00007fd6b9c2f000)
libv4l2.so.0 => /lib64/libv4l2.so.0 (0x00007fd6b9a20000)
libfribidi.so.0 => /lib64/libfribidi.so.0 (0x00007fd6b9804000)
libvmaf.so.0 => /lib64/libvmaf.so.0 (0x00007fd6b94f4000)
libass.so.9 => /lib64/libass.so.9 (0x00007fd6b92bc000)
libva.so.2 => /lib64/libva.so.2 (0x00007fd6b9097000)
libvidstab.so.1.1 => /lib64/libvidstab.so.1.1 (0x00007fd6b8e84000)
libzimg.so.2 => /lib64/libzimg.so.2 (0x00007fd6b8ba8000)
libOpenCL.so.1 => /lib64/libOpenCL.so.1 (0x00007fd6b8988000)
libfontconfig.so.1 => /lib64/libfontconfig.so.1 (0x00007fd6b8743000)
libfreetype.so.6 => /lib64/libfreetype.so.6 (0x00007fd6b8487000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fd6b8283000)
libmfx.so.1 => /lib64/libmfx.so.1 (0x00007fd6b806f000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fd6b7e5e000)
libmodplug.so.1 => /lib64/libmodplug.so.1 (0x00007fd6b7ad4000)
libvapoursynth-script.so.0 => /lib64/libvapoursynth-script.so.0 (0x00007fd6b78cf000)
libbluray.so.2 => /lib64/libbluray.so.2 (0x00007fd6b7682000)
libgcrypt.so.20 => /lib64/libgcrypt.so.20 (0x00007fd6b7364000)
libz.so.1 => /lib64/libz.so.1 (0x00007fd6b714d000)
libgnutls.so.30 => /lib64/libgnutls.so.30 (0x00007fd6b6d5c000)
libsrt.so.1 => /lib64/libsrt.so.1 (0x00007fd6b6abc000)
libssh.so.4 => /lib64/libssh.so.4 (0x00007fd6b684d000)
libvpx.so.5 => /lib64/libvpx.so.5 (0x00007fd6b6417000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007fd6b61f0000)
libdav1d.so.3 => /lib64/libdav1d.so.3 (0x00007fd6b5ed2000)
libopencore-amrwb.so.0 => /lib64/libopencore-amrwb.so.0 (0x00007fd6b5cbe000)
librsvg-2.so.2 => /lib64/librsvg-2.so.2 (0x00007fd6b5935000)
libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00007fd6b56e2000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007fd6b53c9000)
libcairo.so.2 => /lib64/libcairo.so.2 (0x00007fd6b50a7000)
libzvbi.so.0 => /lib64/libzvbi.so.0 (0x00007fd6b4e17000)
libaom.so.3 => /lib64/libaom.so.3 (0x00007fd6b467a000)
libgsm.so.1 => /lib64/libgsm.so.1 (0x00007fd6b446e000)
libmp3lame.so.0 => /lib64/libmp3lame.so.0 (0x00007fd6b41f5000)
libopencore-amrnb.so.0 => /lib64/libopencore-amrnb.so.0 (0x00007fd6b3fcb000)
libopenjp2.so.7 => /lib64/libopenjp2.so.7 (0x00007fd6b3d72000)
libopus.so.0 => /lib64/libopus.so.0 (0x00007fd6b3b1a000)
libspeex.so.1 => /lib64/libspeex.so.1 (0x00007fd6b38fe000)
libtheoraenc.so.1 => /lib64/libtheoraenc.so.1 (0x00007fd6b36c3000)
libtheoradec.so.1 => /lib64/libtheoradec.so.1 (0x00007fd6b34a8000)
libvo-amrwbenc.so.0 => /lib64/libvo-amrwbenc.so.0 (0x00007fd6b328e000)
libvorbis.so.0 => /lib64/libvorbis.so.0 (0x00007fd6b3061000)
libvorbisenc.so.2 => /lib64/libvorbisenc.so.2 (0x00007fd6b2db8000)
libx264.so.157 => /lib64/libx264.so.157 (0x00007fd6b28ef000)
libx265.so.176 => /lib64/libx265.so.176 (0x00007fd6b2261000)
libxvidcore.so.4 => /lib64/libxvidcore.so.4 (0x00007fd6b1f50000)
libsoxr.so.0 => /lib64/libsoxr.so.0 (0x00007fd6b1ce7000)
libva-drm.so.2 => /lib64/libva-drm.so.2 (0x00007fd6b1ae4000)
libvdpau.so.1 => /lib64/libvdpau.so.1 (0x00007fd6b18e0000)
libX11.so.6 => /lib64/libX11.so.6 (0x00007fd6b159d000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd6bf381000)
libdb-5.3.so => /lib64/libdb-5.3.so (0x00007fd6b11d9000)
librt.so.1 => /lib64/librt.so.1 (0x00007fd6b0fd1000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fd6b0c3c000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fd6b0a24000)
libatomic.so.1 => /lib64/libatomic.so.1 (0x00007fd6b081c000)
libXau.so.6 => /lib64/libXau.so.6 (0x00007fd6b0618000)
libcdio.so.18 => /lib64/libcdio.so.18 (0x00007fd6b03ed000)
libGLX.so.0 => /lib64/libGLX.so.0 (0x00007fd6b01bb000)
libXext.so.6 => /lib64/libXext.so.6 (0x00007fd6affa8000)
libGLdispatch.so.0 => /lib64/libGLdispatch.so.0 (0x00007fd6afcf2000)
libpulsecommon-14.0.so => /usr/lib64/pulseaudio/libpulsecommon-14.0.so (0x00007fd6afa6b000)
libX11-xcb.so.1 => /lib64/libX11-xcb.so.1 (0x00007fd6af869000)
libICE.so.6 => /lib64/libICE.so.6 (0x00007fd6af64c000)
libSM.so.6 => /lib64/libSM.so.6 (0x00007fd6af443000)
libXtst.so.6 => /lib64/libXtst.so.6 (0x00007fd6af23c000)
libsystemd.so.0 => /lib64/libsystemd.so.0 (0x00007fd6aeef3000)
libsndfile.so.1 => /lib64/libsndfile.so.1 (0x00007fd6aec81000)
libasyncns.so.0 => /lib64/libasyncns.so.0 (0x00007fd6aea7b000)
libdbus-1.so.3 => /lib64/libdbus-1.so.3 (0x00007fd6ae827000)
libcap.so.2 => /lib64/libcap.so.2 (0x00007fd6ae621000)
libv4lconvert.so.0 => /lib64/libv4lconvert.so.0 (0x00007fd6ae3a6000)
libpugixml.so.1 => /lib64/libpugixml.so.1 (0x00007fd6ae169000)
libharfbuzz.so.0 => /lib64/libharfbuzz.so.0 (0x00007fd6adec3000)
libgomp.so.1 => /lib64/libgomp.so.1 (0x00007fd6adc8b000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007fd6ada50000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007fd6ad848000)
libpng16.so.16 => /lib64/libpng16.so.16 (0x00007fd6ad613000)
libva-x11.so.2 => /lib64/libva-x11.so.2 (0x00007fd6ad40d000)
libpython3.6m.so.1.0 => /lib64/libpython3.6m.so.1.0 (0x00007fd6aceca000)
libxml2.so.2 => /lib64/libxml2.so.2 (0x00007fd6acb62000)
libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00007fd6ac941000)
libp11-kit.so.0 => /lib64/libp11-kit.so.0 (0x00007fd6ac617000)
libidn2.so.0 => /lib64/libidn2.so.0 (0x00007fd6ac3f9000)
libunistring.so.2 => /lib64/libunistring.so.2 (0x00007fd6ac078000)
libtasn1.so.6 => /lib64/libtasn1.so.6 (0x00007fd6abe65000)
libnettle.so.6 => /lib64/libnettle.so.6 (0x00007fd6abc2b000)
libhogweed.so.4 => /lib64/libhogweed.so.4 (0x00007fd6ab9fb000)
libgmp.so.10 => /lib64/libgmp.so.10 (0x00007fd6ab763000)
libcrypto.so.1.1 => /lib64/libcrypto.so.1.1 (0x00007fd6ab27a000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fd6ab025000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fd6aad3b000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fd6aab24000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fd6aa920000)
libgdk_pixbuf-2.0.so.0 => /lib64/libgdk_pixbuf-2.0.so.0 (0x00007fd6aa6f7000)
libgio-2.0.so.0 => /lib64/libgio-2.0.so.0 (0x00007fd6aa34d000)
libpangocairo-1.0.so.0 => /lib64/libpangocairo-1.0.so.0 (0x00007fd6aa13e000)
libpangoft2-1.0.so.0 => /lib64/libpangoft2-1.0.so.0 (0x00007fd6a9f27000)
libpango-1.0.so.0 => /lib64/libpango-1.0.so.0 (0x00007fd6a9cdf000)
libcroco-0.6.so.3 => /lib64/libcroco-0.6.so.3 (0x00007fd6a9aa3000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fd6a9832000)
libffi.so.6 => /lib64/libffi.so.6 (0x00007fd6a9629000)
libpixman-1.so.0 => /lib64/libpixman-1.so.0 (0x00007fd6a9382000)
libxcb-render.so.0 => /lib64/libxcb-render.so.0 (0x00007fd6a9174000)
libXrender.so.1 => /lib64/libXrender.so.1 (0x00007fd6a8f69000)
libogg.so.0 => /lib64/libogg.so.0 (0x00007fd6a8d62000)
libnuma.so.1 => /lib64/libnuma.so.1 (0x00007fd6a8b56000)
libXi.so.6 => /lib64/libXi.so.6 (0x00007fd6a8945000)
liblz4.so.1 => /lib64/liblz4.so.1 (0x00007fd6a8728000)
libmount.so.1 => /lib64/libmount.so.1 (0x00007fd6a84ce000)
libFLAC.so.8 => /lib64/libFLAC.so.8 (0x00007fd6a8274000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fd6a805d000)
libjpeg.so.62 => /lib64/libjpeg.so.62 (0x00007fd6a7df4000)
libgraphite2.so.3 => /lib64/libgraphite2.so.3 (0x00007fd6a7bc8000)
libXfixes.so.3 => /lib64/libXfixes.so.3 (0x00007fd6a79c2000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007fd6a77be000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fd6a75ad000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fd6a73a9000)
libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0 (0x00007fd6a71a5000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fd6a6f7b000)
libthai.so.0 => /lib64/libthai.so.0 (0x00007fd6a6d71000)
libblkid.so.1 => /lib64/libblkid.so.1 (0x00007fd6a6b1e000)
libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007fd6a689a000)
libdatrie.so.1 => /lib64/libdatrie.so.1 (0x00007fd6a6692000)
6、rocky9.4无法安装
https://mirrors.neterra.net/rpmfusion/free/el/rpmfusion-free-release-9.noarch.rpm
yum install libdav1d
ll /lib64/libdav1d.so.*
lrwxrwxrwx 1 root root 17 Nov 28 14:06 /lib64/libdav1d.so.6 -> libdav1d.so.7.0.0
lrwxrwxrwx 1 root root 17 Nov 6 05:59 /lib64/libdav1d.so.7 -> libdav1d.so.7.0.0
-rwxr-xr-x 1 root root 1687864 Nov 6 05:59 /lib64/libdav1d.so.7.0.0
yum install ffmpeg
Last metadata expiration check: 0:56:52 ago on Thu 28 Nov 2024 02:10:37 PM CST.
Error:
Problem: package ffmpeg-5.1.6-1.el9.x86_64 from rpmfusion-free-updates requires ffmpeg-libs(x86-64) = 5.1.6-1.el9, but none of the providers can be installed
- conflicting requests
- nothing provides libdav1d.so.6()(64bit) needed by ffmpeg-libs-5.1.6-1.el9.x86_64 from rpmfusion-free-updates
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)