Install FFmpeg, Mplayer, MEncoder, Mp4box, Flvtool2

Source: Internet
Author: User

You can use the following tutorial to install FFmpeg and other video modules in your CentOS server. FFmpeg is 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 fav Orite 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-l Ibgl-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 Modula Rity.

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, attempts to being 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 (MP4) container format, designed to decrease storage and bandwidth Requi Rements 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 tagged 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 ' and remove the content "Cha file/usr/local/src/faac-1.28/common/mp4v2/mpeg4ip.h R *strcasestr (const char *haystack, const char *needle); "Found in line 126

And then run

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

Install Lame

Libmp3lame is a 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 inserts 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 are 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 which 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 conta Iner 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 a extension for PHP this adds an easy-to-use, object-oriented APIs for accessing and retrieving information From video and audio files. It has methods for returning frames from movie files as images, 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

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.