Install ffmpeg on CentOS (Rhel/fedora)

Source: Internet
Author: User

mkdir ffmpeg_sources

CD ffmpeg_sources/


Yasm

wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz

Tar zxvf yasm-1.2.0.tar.gz

./configure

Make && sudo make install


x264

git clone git://git.videolan.org/x264.git

CD x264

./configure--enable-static

Make && sudo make install


Lame

Curl-l-O http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz

Tar zxf lame-3.99.5.tar.gz

./configure--enable-nasm

Make && sudo make install


Ogg

wget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz

Tar zxvf libogg-1.3.0.tar.gz

CD libogg-1.3.0

./configure

Make && sudo make install


Libvorbis

Curl-o http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gz

Tar zxvf libvorbis-1.3.4.tar.gz

./configure--with-ogg

Make && sudo make install


Libvpx

git clone git:////github.com/webmproject/libvpx.git

CD libvpx/

./configure

Make && sudo make install


sudo echo/usr/local/lib >/etc/ld.so.conf.d/local-libs.conf

sudo ldconfig


Ffmpeg

git clone git://git.videolan.org/ffmpeg.git ffmpeg

CD FFmpeg

./configure--enable-libmp3lame--ENABLE-GPL--enable-libx264--enable-libxvid--enable-postproc--enable-nonfree-- ENABLE-LIBVPX--enable-libvorbis--ENABLE-LIBFAAC

Make && sudo make install



Ffmpeg-headers "x-forwarded-for:160.53.186.194"-I. http://stmw.rthk.hk/aod/_definst_/radio/archive/radio1/City_ Snapshot/mp3/mp3:20150824.mp3/playlist.m3u8-c Copy City_snapshot-20150824-.mp3

The option "headers" must is put here for download this m3u8


Reference

Https://trac.ffmpeg.org/wiki/CompilationGuide/Centos

http://injustfiveminutes.com/2013/07/17/how-to-compile-latest-version-of-ffmpeg-on-centos-5/


Install ffmpeg on CentOS (Rhel/fedora)

Related Article

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.