Detailed steps and instructions for installation of FFmpeg

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.