Ffmpeg installation
1. Windows installation
- Official website Download address Download the Windows installation package from the official website
- Decompress the installation package to a specified directory
- Configure the environment variable to the bin path (which contains ffmpeg.exe)
4. ffmpeg -version
Verify the installation
2. The CentOS installation
CentOS ffMPEG requires lame and yASM to be pre-installed.
Lame -- Installation package of libmp3lame, MP3 encoding is supported; Yasm -- rewrite of NASM for compiling FFMPEG.Copy the code
- download
2. Compile and install (ffmPEG must be installed last)
Install lame ' 'powershell tar -zxf lame-3.100.tar.gz CD lame-3.100. /configure make make install' ' Tar -zxf yasm-1.3.0.tar.gz CD yasm-1.3.0.sed -i 's#) ytasm.*#)#' makefile.in./configure make make install ' ' /configure --enable-shared --enable-libmp3lame make powershell tar -jxf ffmpeg-3.4.tar.bz2 CD ffmpeg-3.4. /configure --enable-shared --enable-libmp3lame make install ```Copy the code
- Configuration adjustment execution:
ffmpeg -version
Bartender wrong:ffmpeg: error while loading shared libraries: libavdevice.so.57: cannot open shared object file: No such file or directory
The ffmpeg command is used
Cut audio: Output input. Mp3 as output.mp3 five minutes before cutting
ffmpeg -y -i input.mp3 -ss 00:00:00 -t 00:05:00 output.mp3
Copy the code