You can use the following tutorial to install ffmpeg and other video modules in your centos server.FFmpegis an audio/video conversion tool. It includes libavcodec, the leading open source codec library. An experimental streaming server for live broadcasts is also included.

Install  FFmpeg modules Mencoder, Mplayer, flvtool2, mediainfo, mp4box , neroAacEnc on centos to convert video to your favorite extension.

Install FFmpeg, Mplayer, Mencoder, MP4Box, Flvtool2 etc.,

Update your rpmforge now.

for i386:
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
rpm -ivh rpmforge-release-0.5.3-1.el6.rf.i686.rpm

for x86_64:
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

Install the utilites of ffmpeg.

RedHat/Centos:

# yum groupinstall -y “Development Tools”

or

yum install zlib-devel automake autoconf gcc gmake make libcpp libgcc libstdc++ gcc4 gcc4-c++ gcc4-gfortran gcc-c++ mesa-libGL-devel mesa-libGLU-devel libXi-devel libXmu-devel freeglut-devel freeglut libtool ncurses-devel

Debian/Ubuntu:

#apt-get install build-essential

Dynamic Linked Libraries Path

Linux uses a system of shared libraries, similar to Windows dlls, for the efficient use of space and resources, and modularity.

Add those  below entry in  /etc/ld.so.conf

/usr/local/lib
/usr/lib

# ldconfig

Install libogg

Libogg contains necessary functionality to create, decode, and work with Ogg bitstreams.

# cd /usr/local/src
# wget http://downloads.xiph.org/releases/ogg/libogg-1.2.2.tar.gz
# tar zxvf libogg-1.2.2.tar.gz
# cd /usr/local/src/libogg-1.2.2
#./configure && make clean && make && make install
# ldconfig

Install libvorbis

The libvorbis reference implementation provides both a standard encoder and decoder under a BSD license.

# cd /usr/local/src
# wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz
# tar zxvf libvorbis-1.3.3.tar.gz
# cd libvorbis-1.3.3
# ./configure && make clean && make && make install

Install Yasm

Yasm is a software program that attempts to be a complete rewrite of the NASM assembler

# wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
# tar zfvx yasm-1.2.0.tar.gz
# cd yasm-1.1.0
# ./configure && make && make install

Install libx264

x264 is a free software library for encoding video streams into the H.264/MPEG-4 AVC format. It is released under the terms of the GNU

General Public License.

# cd /usr/local/src
# wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-`date -d “-1 days” +%Y%m%d`-2245-stable.tar.bz2
# tar jxf x264-snapshot-`date -d “-1 days” +%Y%m%d`-2245-stable.tar.bz2
# cd /usr/local/src/x264-snapshot-`date -d “-1 days” +%Y%m%d`-2245-stable
# ./configure –enable-shared && make clean && make && make install

Install amr

3GP is a simplified version of the MPEG-4 Part 14 (MP4) container format, designed to decrease storage and bandwidth requirements in order to accommodate mobile phones.

# cd /usr/local/src
# wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz
# tar zxf opencore-amr-0.1.2.tar.gz
# cd opencore-amr-0.1.2
# ./configure && make clean && make && make install

Install neroAacEnc

neroAacEnc is Improved multichannel encoding and Multipass encoding, Solved issue with very long files and -2pass.

# cd /usr/local/src
# wget ftp://ftp6.nero.com/tools/NeroDigitalAudio.zip
# unzip NeroDigitalAudio.zip -d nero
# cd nero/linux
# sudo install -D -m755 neroAacEnc /usr/local/bin

Install mediainfo

MediaInfo is a convenient unified display of the most relevant technical and tag data for video and audio files.

# cd /usr/local/src

For x86_64 Centos6

# wget http://downloads.sourceforge.net/zenlib/libzen0-0.4.29-1.x86_64.CentOS_6.rpm
# rpm -ivh libzen0-0.4.29-1.x86_64.CentOS_6.rpm
# wget http://sourceforge.net/projects/mediainfo/files/binary/libmediainfo0/0.7.64/libmediainfo0-0.7.64-1.x86_64.CentOS_6.rpm
# rpm -ivh libmediainfo0-0.7.64-1.x86_64.CentOS_6.rpm
# wget http://sourceforge.net/projects/mediainfo/files/binary/mediainfo/0.7.64/mediainfo-0.7.64-1.x86_64.CentOS_6.rpm
# rpm -ivh mediainfo-0.7.64-1.x86_64.CentOS_6.rpm

Install faac

FAAC is an MPEG-4 and MPEG-2 AAC encoder.

# cd /usr/local/src
# wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
# tar zxvf faac-1.28.tar.gz
# cd /usr/local/src/faac-1.28
# ./configure && make clean && make && make install

In some server get the error as
“In file included from mp4common.h:29, from 3gp.cpp:28:mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’” to sort out you have the file /usr/local/src/faac-1.28/common/mp4v2/mpeg4ip.h and remove the content “char *strcasestr(const char *haystack, const char *needle); ” found in line 126

And then run

#make clean && ./configure && make && make install

Install lame

libmp3lame is an open source application used to encode audio into the MP3 file format.

# cd /usr/local/src
# wget http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz
# tar zxvf lame-3.98.4.tar.gz
# cd lame-3.98.4
# ./configure && make clean && make && make install

Install gpac and MP4Box

MP4Box is a MP4 multiplexer. It can import MPEG-4 video, DivX, XviD, 3ivx, h264 etc, audio streams and subtitles into the .mp4 container.

# cd /usr/local/src
# wget http://downloads.sourceforge.net/gpac/gpac-0.5.0.tar.gz
# wget http://downloads.sourceforge.net/gpac/gpac_extra_libs-0.5.0.tar.gz
# tar zxvf gpac-0.5.0.tar.gz
# tar zxvf gpac_extra_libs-0.5.0.tar.gz
# cd  gpac
# cp -r ../gpac_extra_libs/* extra_lib/
# chmod +x configure
# ./configure
# make lib
# make apps
# make install-lib
# make install
# cp bin/gcc/libgpac.so /usr/lib

Install flvtool2

FLVTOOL2 can calculate a lot of meta data and insert on MetaData tag. It can cut FLV files and add cue Points (onCuePoint).

# cd /usr/local/src
# wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz
# tar zxvf flvtool2-1.0.6.tgz
# cd /usr/local/src/flvtool2-1.0.6/
# ruby setup.rb config && ruby setup.rb setup && ruby setup.rb install

Install yamdi

yamdi stands for Yet Another MetaData Injector and is a metadata injector for FLV files. It adds the onMetaData event to your FLV files.

yamdi should run under *BSD, Linux and Win32

# cd /usr/local/src
# wget  “http://downloads.sourceforge.net/project/yamdi/yamdi/1.4/yamdi-1.4.tar.gz?use_mirror=garr”
# tar zxvf yamdi-1.4.tar.gz
# cd yamdi-1.4
# gcc yamdi.c -o yamdi -O2 -Wall  -D_FILE_OFFSET_BITS=647
# cp yamdi /usr/bin/

Install FFmpeg

FFMPEG is a command line tool that is composed of a collection of free software / open source libraries. It includes libavcodec, an audio/video codec library used by several other projects, and libavformat, an audio/video container mux and demux library. The name of the project comes from the MPEG video standards group, together with “FF” for “fast forward”.

# cd /usr/local/src
# mkdir /usr/local/src/tmp
# chmod 777 /usr/local/src/tmp
# export TMPDIR=/usr/local/src/tmp
# wget http://ffmpeg.org/releases/ffmpeg-0.7.11.tar.gz
# tar xzf ffmpeg-0.7.11.tar.gz
# cd ffmpeg-0.7.11
# make distclean
# ./configure –enable-gpl –enable-version3 –enable-nonfree –enable-shared  –enable-libmp3lame –enable-libx264 –enable-libfaac  –enable-libvorbis –enable-libopencore-amrnb

# make clean && make && make install
# make tools/qt-faststart
# cp tools/qt-faststart /usr/local/bin/
# ldconfig

Install MPLAYER (MENCODER)

MENCODER is a free command line video decoding, encoding and filtering tool released under the GNU General Public License.

# cd /usr/local/src
# wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
# tar jxvf all-20110131.tar.bz2
# mv /usr/local/src/all-20110131 /usr/local/lib/codecs/
# chmod -R 755 /usr/local/lib/codecs/
# mkdir /usr/local/src/tmp
# chmod 777 /usr/local/src/tmp
# export TMPDIR=/usr/local/src/tmp
# wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc4.tar.bz2
# tar jxf MPlayer-1.0rc4.tar.bz2
# cd MPlayer-1.0rc4
# make clean
#./configure && make && make install && ldconfig

Install FFMPEG-PHP

FFMPEG-PHP is an extension for PHP that adds an easy to use, object-oriented API for accessing and retrieving information from video and audio files. It has methods for returning frames from movie files as images that can be manipulated using PHP’s image functions.

# cd /usr/local/src
# wget http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2
# tar jxf ffmpeg-php-0.6.0.tbz2
# perl -i -p -e “s/PIX_FMT_RGBA32/PIX_FMT_RGBA/g;” ffmpeg_frame.c
# phpize
# ./configure && make clean && make && make install

Then add extension of ffmpeg in php.ini file

# echo “extension=ffmpeg.so” >> /etc/php.ini

Check all the installed modules.

which php ffmpeg mplayer mencoder flvtool2 yamdi MP4Box neroAacEnc mediainfo

http://www.cpanelkb.net/install-ffmpeg-mplayer-mencoder-mp4box-flvtool2/

Install FFmpeg, Mplayer, Mencoder, MP4Box, Flvtool2的更多相关文章

  1. 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 ...

  2. linux 下ffmpeg和mencoder安装

    ffmpeg和mencoder是进行视频转换和视频抽帧的重要开源工具,支持linux和windows环境下的视频转换和视频抽帧操作.本文章记录在linux这两者工具的安装过程.ffmpeg集成视频编码 ...

  3. ffmpeg & mplayer & vlc 手册(转)

    如何基于FFMPEG和SDL写一个少于1000行代码的视频播放器 http://blog.sina.com.cn/s/blog_51396f890100nd91.html http://lanhy20 ...

  4. 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 v ...

  5. java使用ffmpeg和mencoder做视频格式转换

    首发:个人博客,持续更新和纠错 主要使用技术:1)FFmpeg,用于主流格式之间的转换,例如AVI,MP4,FLV等.2)MEncoder,用于奇葩格式转主流格式,例如RMVB转AVI.这样我们可以把 ...

  6. ASP.NET下调用ffmpeg与mencoder实现视频转换截屏

    最近要做一个视频播放的系统,用到了ffmpeg和mencoder两个工具,查了一些资料,发现这方面的资料还挺多的,但是就是乱了一点,我自己从头整理了一下,和大家分享一下: 1.ffmpeg实现视频(a ...

  7. centos7#yum install ffmpeg

    yum install ffmpeg rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro rpm -Uvh http://li. ...

  8. How To install FFMPEG, FLVTOOL2, MP4Box on CentOS server 2015 easy method

    for i386:wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpmrpm ...

  9. java调用FFmpeg及mencoder转换视频为FLV并截图

    Conver.java package com.ll19.flv; public class Conver { public void run() { try { // 转换并截图 String fi ...

随机推荐

  1. shell中条件判断if中的-z到-d的意思【转载】

    本文转载自[http://blog.csdn.net/utstarm/article/details/6536916] [ -a FILE ]  如果 FILE 存在则为真. [ -b FILE ] ...

  2. Forward Proxy & Reverse Proxy | 正向代理 和 反向代理

    对请求和响应内容不做修改的转发的服务器,被称为代理服务器.代理服务器分为两种类型:正向代理 和 反向代理. 正向代理:面向互联网,从更广范围获取信息的代理. 反向代理:面向内部,一般用于某企业的网站的 ...

  3. 嵌入式环境搭建之NFS

    嵌入式环境搭建之NFS Author:tiger-johnTime:2013-08-04mail:jibo.tiger@gmail.comBlog:http://blog.csdn.net/tiger ...

  4. 一些提高开发效率的 Category

    最近工作陆续生产了一些方便开发的工具类,尽管最终没被收入使用,但不妨碍个人使用,故特此开一篇博文,也记录一些自己踩的坑. UIGestureRecognizer+Block 简单来说,你可以这样使用 ...

  5. 【转】在Eclipse环境下配置Servlet开发环境

    配置这个真心坑···浪费我一下午时间,而且去网上找了一圈资料发现都不靠谱呀= = 于是自己写一个,防止忘记了 一.配置前准备 你需要下载三个东西 Eclipse J2EE:http://www.ecl ...

  6. 【科研论文】W5100在远程电力质量监测设备中的应用

    摘要: 针对传统电力质量监测方法实时性.多参数测试性能较差的缺点,提出了将以太网接入技术与电能采集相结合进行电力质量现场和远程在线监测的设计方案.硬件设计采用微控制器STM32FI03和以太网控制芯片 ...

  7. HDU H204 阿牛的EOF牛肉串

    阿牛的EOF牛肉串 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Sub ...

  8. oracle REGEXP_SUBSTR实现字符串转列

    如将字符串'张三,李四,王五,赵六,'转换成 1.  张三 2.李四 3.王五 4.赵六 REGEXP_SUBSTR 查询语句: WITH TEST AS (SELECT  '张三,李四,王五,赵六, ...

  9. 使用CSS为内容设定特定的鼠标样式(cursor)介绍

    相信大家都知道我们的鼠标在网页中不同的元素中有不同的显示(例如 a 元素就显示为“箭头指针”),但是其实我们还可以自定义这些有趣的东西哦!今天“畅想资源”就来教大家如何使用CSS为内容设定特定的鼠标样 ...

  10. 修改MySQL引擎

    1. 显示MySQL支持的引擎:show engines;