1, official website download: http://ffmpeg.org/download.html
2, decompression. tar.bz2 bag TAR-JXVF xx.tar.bz2
3, because the official website only provide source code, so need to compile into the FFmpeg directory./configure--enable-shared--disable-yasm--prefix=/usr/local/ffmpeg (Yasm is a compilation of dependencies You can choose to compile after installation, or add--disable-yasm directly. For convenience I was directly added)
4. Make && make install
5. You need to add the dynamic library configuration after compiling and installing. vim/etc/ld.so.conf add/usr/local/ffmpeg/lib to the last row
Then execute the ldconfig to take effect, and of course there are other methods, such as modifying environment variables.
6. Test the first frame of the captured video.
Commands are the same as under Windows.
At this point, the environment is not a problem, the test is OK.
Install FFmpeg under Linux