Install FFMPEG in source code (with libx264)

Source: Internet
Author: User

Environment:Centos6.2 _ 64

1Download source code package

Wget ftp://ftp.videolan.org/pub/x264/snapshots/x264-snapshot-20120718-2245-stable.tar.bz2

Decompress:Tar jxvf x264-snapshot-20120718-2245-stable.tar.bz2

Wget http://ffmpeg.org/releases/ffmpeg-0.11.1.tar.gz

Decompress:Tar zxvf ffmpeg-0.11.1.tar.gz

2, InstallationX264

2.1Install dependency packages

MissingYasm

Installation:Yum install yasm-y

2.2InstallX264

./Configure -- prefix =/usr -- enable-shared & make install

Reload the Configuration:Ldconfig

3, InstallationFFmpeg

FfplayMust depend onSDLLibrary

Yum install SDL-y

Installation:

./Configure -- enable-libx264 -- enable-GPL & make install
Attachment (automatic installation script ):

#! /Bin/Bash  Echo   "  Install yasm...  "  Yum  Install Yasm SDL * GTK + *- Y  Echo   "  Install libx264...  "  Wget   FTP : // Ftp.videolan.org/pub/x#/snapshots/x264-snapshot-20120718-2245-stable.tar.bz2  Tar Jxvf x264-snapshot- 20120718 - 2245 -Stable. Tar  . Bz2cd x264 -Snapshot- 20120718 - 2245 - Stable. /Configure -- enable-shared && Make && Make   Install Ldconfig  Echo   "  Install FFMPEG...  "  CD ..  Wget HTTP: //  Ffmpeg.org/releases/ffmpeg-0.11.1.tar.gz  Tar Zxvf FFMPEG- 0.11 . 1 . Tar  . Gzcd FFMPEG - 0.11 .1  . /Configure -- enable-libx264 -- enable-GPL && Make && Make   Install 

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.