Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos installs ffmpeg video processing tools

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Wget https://jaist.dl.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-0.1.5.tar.gz

Wget https://sourceforge.mirrorservice.org/o/op/opencore-amr/opencore-amr/opencore-amr-0.1.5.tar.gz

Wget https://sourceforge.net/projects/lame/files/lame/3.100/lame-3.100.tar.gz

Wget https://code.videolan.org/videolan/x264/-/archive/stable/x264-stable.tar.gz

Wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.xz

Wget http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.xz

Wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.xz

Cd / data/source/ & & git clone https://git.ffmpeg.org/ffmpeg.git

1. Install related dependency packages

Tar-zxvf fdk-aac-0.1.5.tar.gz

Cd fdk-aac-0.1.5 &. / configure & & make install

Tar-zxvf opencore-amr-0.1.5.tar.gz

Cd opencore-amr-0.1.5 &. / configure & & make install

Tar-zxvf lame-3.100.tar.gz

Cd lame-3.100 &. / configure & & make install

Tar-zxvf x264-stable.tar.gz

Cd x264-stable. / configure & & make install

Tar-xvf libvorbis-1.3.5.tar.xz

Cd libvorbis-1.3.5 &. / configure & & make install

Export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

Tar-xvf libogg-1.3.2.tar.xz

Cd libogg-1.3.2 &. / configure & & make install

Tar-xvf libtheora-1.1.1.tar.xz

Cd libtheora-1.1.1 &. / configure & & make install

Yum install mediainfo

Vi / etc/ld.so.conf.d/ffmpeg.conf

Add the following two paths, then execute ldconfig, referencing the class library

/ usr/local/lib

/ data/software/ffmpeg/lib

two。 Install ffmpeg

Cd / data/source/ffmpeg

/ configure-- enable-version3-- enable-libfdk-aac-- enable-libmp3lame-- enable-libvorbis-- enable-libx264-- enable-gpl-- enable-postproc-- enable-nonfree-- enable-avfilter-- enable-pthreads-- enable-libtheora-- enable-libopencore-amrnb-- enable-libopencore-amrwb-- enable-shared-- disable-x86asm-- prefix=/data/software/ffmpeg

(different systems need to change the parameter to-- disable-asm modifies the parameter according to the error prompt)

Make & & make instll

3. Configure environment variables:

Vim / etc/profile

PATH=$PATH:/data/software/ffmpeg/bin

Export PATH

Source / etc/profile # reload takes effect

Create a soft connection

Ln-s / data/software/ffmpeg/bin/ffmpeg / usr/bin/ffmpeg

Ln-s / data/software/ffmpeg/bin/ffprobe / usr/bin/ffprobe

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report