Install ffmpeg on CentOS (RHEL/Fedora)

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 be 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/

时间: 2024-10-29 19:12:27

Install ffmpeg on CentOS (RHEL/Fedora)的相关文章

转: How to Install MongoDB 3.2 on CentOS/RHEL & Fedora (简单易懂)

from:  http://tecadmin.net/install-mongodb-on-centos-rhel-and-fedora/ MongoDB (named from “huMONGOus“) is a full flexible index support and rich queries database. Its is a NoSQL database. MongoDB provides large media storage with GridFS. Clickhere fo

Install MySQL 5.7 on Fedora 25/24, CentOS/RHEL 7.3/6.8/5.11

1. Change root user Bash su - ## OR ## sudo -i 2. Install MySQL YUM repository Fedora Bash ## Fedora 25 ## dnf install https://dev.mysql.com/get/mysql57-community-release-fc25-9.noarch.rpm ## Fedora 24 ## dnf install https://dev.mysql.com/get/mysql57

Install Oracle Java JDK/JRE 7u55 on Fedora 20/19, CentOS/RHEL 6.5/5.10

What's new in Sun/Oracle Java 7 VM Compressed 64-bit object pointers Garbage-First GC (G1) JSR 292: VM support for non-Java languages (InvokeDynamic) Lang JSR 294: Language and VM support for modular programming JSR 308: Annotations on Java types JSR

[转载]How to Install Google Chrome 39 in CentOS/RHEL 6 and Fedora 19/18

FROM: http://tecadmin.net/install-google-chrome-in-centos-rhel-and-fedora/ Google Chrome is a freeware web browser developed by Google. It was released as a beta version for Microsoft Windows on September 2, 2008, and as a stable public release on De

[转载]Install Opera 12.16 Web Browser in CentOS/RHEL and Fedora

FROM: http://tecadmin.net/install-opera-web-browser-in-centos-rhel-fedora/ Opera is an modern web browser with modern style with powerful features. Its Off-Road mode compresses pages for faster, all-conditions browsing. It helps you stay online when

How to install ffmpeg,mp4box,mplayer,mencoder,flvtool2,ffmpeg-php on centos

1. Enable RPM Fusion yum repository The CentOS rpm packages of ffmpeg, mplayer, mencoder and MP4Box are available on RPM Fusion YUM repository. RPM Fusion repo depends on packages from EPEL repo. So enable these repositories by installing following R

Install Nginx/PHP-FPM on CentOS/RHEL

Install Nginx, PHP 5.5.15 and PHP-FPM on Fedora 20/19/18/17, CentOS 7/6.5/5.10, Red Hat (RHEL) 7/6.5/5.10 1. Change to root user. su 2. Install needed repositories CentOS 7/6.5/5.10 and Red Hat (RHEL) 7/6.5/5.10 Remi repository  ## Remi Dependency on

Install FFMPEG and FFMPEG-PHP in CentOS 6 with Virtualmin

Install FFMPEG and FFMPEG-PHP in CentOS 6 with Virtualmin 1 year ago -  by Daniel -  howto centos virtualmin ffmpeg ffmpeg-php The other day I was requested to set-up few requirements for a client such as mod_rewrite, GD library, PHP Dom, bcmath etc.

Install PHP 7, Apache, MySQL 5.6 on CentOS / RHEL 7.1 & 6.7 + Wordpress

最近做了个小项目,挣了几百块钱,于是买了个域名:shawshining.com 和一个搬瓦工的服务器.搬瓦工自带CentOS6,支持一键安装ss,比较方便.买的搬瓦工的服务器只有500MB内存,导致出现一些以前在类似阿里云的学生机1g内存上根本不会出现的问题.所以有必要告诉后来人怎么填坑.事不宜迟,写个教程让大家少走点弯路.如果有问题,清查看最下面的问题解决方法.如果问题依然没有解决可以google,百度一下! 主要参考:https://tecadmin.net/install-php-7-ap