One, Windows installation:
Direct:
https://ffmpeg.zeranoe.com/builds/
https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-20160316-git-d0a9114-win64-static.7z
After decompression, you can use:
Ffmpeg-i c:\ffmpeg\test.avi-b:v 640k C:\ffmpeg\output.ts
Second, Linux source installation:
As follows:
Download Source Bundle: ffmpeg-2.8.6.tar.bz2
1. The source package downloaded from the network, and then extracted to the reference directory
Suppose the download directory/opt/soft
Cd/opt/soft
Unpack the package:
TAR-JXVF ffmpeg-2.8.6.tar.bz2
Enter the extracted directory
CD ffmpeg-2.8.6
Perform
./configure--enable-shared--prefix=/usr/local/ffmpeg
Prompt error:
Yasm/nasm not found or too old. Use the--disable-yasm for a crippled build.
If You think configure made a mistake and make sure you are using the latest
Version from Git. If The latest version fails, the problem to the
[Email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "Config.log" produced by configure as this would help
Solve the problem.
Follow the prompts to install Yasm
Use the following
Yum Install Yasm
After the installation is complete, continue to execute
./configure--enable-shared--prefix=/usr/local/ffmpeg
It takes a long time to wait a few minutes
Then perform the following
Make
Make install
It takes a long time to wait a few minutes
The execution process is not error-free, the installation is successful
Check whether the installation was successful:
/usr/local/ffmpeg/bin/ffmpeg--version
The error is as follows:
/usr/local/ffmpeg/bin/ffmpeg:error while loading shared libraries:libavdevice.so.56:cannot open Shared object File:no Such file or directory
The hint library file cannot be found.
Modify file/etc/ld.so.conf content increase/usr/local/ffmpeg/lib/
Vim/etc/ld.so.conf
Include ld.so.conf.d/*.conf
/usr/local/ffmpeg/lib/
Make the changes effective
Ldconfig
Execute/usr/local/ffmpeg/bin/ffmpeg--version
The return
Configure Environment Variables Path
Export path=/usr/local/ffmpeg/bin/: $PATH
Env
FFmpeg can be executed in any directory--version
Test Execution transcoding:
Ffmpeg-i test.avi-b:v 640k Output.ts
Detailed steps and instructions for installation of FFmpeg