Implement upload video capture video first frame as video cover
1, installation FFmpeg
Download link for ffmpeg https://ffmpeg.org/download.html
Unpacking the installation package
TAR-JXVF ffmpeg-4.0.tar.bz2
Go to Catalog
CD ffmpeg-4.0
Compiling the installation
./configure--enable-shared && make && make install
Execute ffmpeg after installation is complete
If you can appear similar to the following information, the FFmpeg installation is successful.
ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
built with GCC 4.4.7 (gcc) 20120313 (Red Hat 4.4.7-18)
Configuration:--enable-shared
libavutil 14.100/56.14.100
libavcodec 18.100/58.18.100
libavformat 12.100/58.12.100
libavdevice 3.100/58.3.100
libavfilter 7.16.100/7.16.100
Libswscale 5.1.100/5.1.100
libswresample 3.1.100/3.1.100
Hyper Fast Audio and Video encoder
usage:ffmpeg [Options] [[infile Options]-I infile] ... {[outfile options] outfile} ...use-h to get full help or, even better, run ' man ffmpeg '
If it appears:
Ffmpeg:error while loading shared libraries:libavdevice.so.52:cannot open Shared object file:no such file or directory
Edit this file vim/etc/ld.so.conf
Plus
Include ld.so.conf.d/*.conf
/usr/local/ffmpeg-4.0
Executive Ldconfig
Re-enter FFmpeg
These are the problems I have encountered and resolved
Linux installation FFmpeg