The installation methods mentioned in this article are basically source code compilation. For non-RPM package installation, please note. The FFMPEG software is only a decoding and encoding software. If multiple formats are supported, you must first install the corresponding library. The following describes the library I installed: 1. Install faad2 # wget http://downloads.sourceforge.net/faac/faad2-2.6.1.tar.gz # Tar xvfz faad2-2.6.1.tar.gz # Cd faad2 #./Bootstrap #./Configure # Make # Make install2. Install liba52 # wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz # Tar xvfz a52dec-0.7.4.tar.gz # Cd a52dec-0.7.4 #./Configure # Make # Make install 3. Install libdirac # wget http://downloads.sourceforge.net/dirac/dirac-0.10.0.tar.gz # Tar xvfz dirac-0.10.0.tar.gz # Cd dirac-0.10.0 #./Configure # Make # Make install 4. Install faac2 # wget http://downloads.sourceforge.net/faac/faac-1.26.tar.gz # Tar xvfz faac-1.26.tar.gz # Cd faac #./Bootstrap #./Configure # Make # Make install 5. Install libamrnb # wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2 # Tar xvfj amrnb-7.0.0.2.tar.bz2 # Cd amrnb-7.0.0.2 #./Configure # Make # Make install 6. Install libamrwb # wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2 # Tar xvfj amrwb-7.0.0.3.tar.bz2 # Cd amrwb-7.0.0.3 #./Configure # Make # Make install 7. Install libmp 3lame # wget http://downloads.sourceforge.net/lame/lame-3.97.tar.gz # Tar xzf lame-3.97.tar.gz # Cd lame-3.97 #./Configure # Make # Make install 8. Install libx264 This package needs to be obtained using git, so install git first: # wget http://kernel.org/pub/software/scm/git/git-1.6.2.tar.gz (address to confirm) # Tar zxvf git-1.6.2.tar.gz # Cd git-1.6.2 #./Configure # Make # Make install Then install libx264 #/usr/local/bin/git clone git: // git.videolan.org/x264.git x264 # Cd x264 #./Configure -- enable-pthread -- enable-shared -- disable-ASM # Make # Make install 8. Install libnut. The software requires SVN to obtain the source code. SVN can be directly installed using Yum install SVN. Download: # SVN Co SVN: // SVN. mplayerhq. hu/nut/src/trunk libnut
After the download, the code is saved in the newly created libnut directory. For 64-bit Linux, You need to modify the configuration file: # cd libnut # Vi config. Mak Add cflags + =-FPIC to the next line of the last cflags. Then compile and install: # Make # Make install 9. Install libogg # wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz # Tar xvf libogg-1.1.3.tar.gz # Cd libogg-1.1.3 #./Configure # Make # Make install 10. Install libtheora (SVN get) # SVN Co http://svn.xiph.org/trunk/theora theora # Cd theora #./Autogen. Sh #./Configure # Make # Make install 11. Install libvorbis # wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz # Tar xvfz libvorbis-1.2.0.tar.gz # Cd libvorbis-1.2.0 #./Configure # Make # Make install 12. Install libxvid # wget http://downloads.xvid.org/downloads/xvidcore-1.2.1.tar.gz # Tar xvf xvidcore-1.2.1.tar.gz # Cd xvidcore-1.2.1/build/generic #./Bootstrap. Sh #./Configure -- disable-assembly # Make # Make install After the above media support library is installed, you can set the environment to prepare for compiling FFMPEG! 13. Modify the environment variable # vi/etc/lD. So. conf Add a line at the end of the file:/usr/local/lib Then it takes effect: # ldconfig 14. Install FFMPEG It can be obtained through SVN, but the file is large, so it is particularly slow: # SVN checkout SVN: // SVN. mplayerhq. hu/FFMPEG/trunk FFMPEG # Cd FFMPEG You can also download: # http://www.ffmpeg.org/releases/ffmpeg-0.5.tar.bz2 # Bzip2-D ffmpeg-0.5.tar.bz2 # Tar-XF ffmpeg-0.5.tar # Cd ffmpeg-0.5 Compile (the pkg_config_path parameter must be set for 64-bit systems): # export pkg_config_path =/usr/local/lib/pkgconfig cflags = "-FPIC-M64" #./Configure -- enable-shared/ -- Enable-GPL/ -- Enable-nonfree/ -- Enable-postproc/ -- Enable-avfilter/ -- Enable-avfilter-lavf/ -- Enable-pthreads/ -- Enable-libamr-Nb/ -- Enable-libamr-WB/ -- Enable-libdirac/ -- Enable-libfaac/ -- Enable-libfaad/ -- Enable-libfaadbin/ -- Enable-libmp3lame/ -- Enable-libnut/ -- Enable-libtheora/ -- Enable-libvorbis/ -- Enable-libx264/ -- Enable-libxvid/ -- Enable-decoder = libx264/ -- Enable-Encoder = libx264 # Make # Make install 14. Possible errors:/usr/include/Linux/videodev. h: 56: Error: syntax error before "ulong" /Usr/include/Linux/videodev. h: 72: Error: syntax error before '} 'token Libavdevice/v4l. C: In function 'Grab _ read_header ': Libavdevice/v4l. C: 75: Error: storage size of 'tuner' isn' t known Libavdevice/v4l. C: 133: Error: Invalid application of 'SIZE' to incomplete type 'video _ tuner' Libavdevice/v4l. C: 140: Error: Invalid application of 'SIZE' to incomplete type 'video _ tuner' Libavdevice/v4l. C: 75: Warning: unused variable 'tuner' This may be because the source code videodev. H is not written for the next version of Linux. The standard C does not have the ulong type, so it must be changed to unsigned long. 15. Run FFMPEG-formats. The possible error is: FFMPEG: Error while loading shared libraries: libavfilter. so.0: cannot open shared object file: no such file or directory. No environment path is set. Add the FFMPEG. conf configuration file: # cd/etc/lD. So. conf. D. # Vi FFMPEG. conf Write/usr/local/lib in the file Then confirm the effectiveness: # ldconfig 16. Others: The installation of libgsm is not mentioned in this Article. Please refer to the following documents. |