Install ffmpeg on CentOS 64 bit to convert 3gp video files
69ffmpeg error
I want to publish this contribute because there is a big confusion on-line to understand how to convert source video file from a few cellulars ( example Nokia 6300 - LG 8300) using the best one and the most used in all software for video/audio conversion ......
if you try to convert these 3gp video files (with amr audio codec) with a general ffmpeg repository installation, it give you an error like this:
Unsupported codec (id=73728) for input stream #0.1
The reasons of this error is because the ffmpeg rpm installation don't preview the amr encode and decode audio codec in the compilation.
So to compile in the right way ffmpeg it necessary to add these options in the svn configure command line, but this encode and decode libraries must be installed in a devel package format:
--enable-libamr-nb --enable-libamr-wb
This document is also for the right compiling method in a CentOS 5.x distribuitions and in a 64 bit platform.
Procedure
At the first you must add this repository:
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Then you need to update all packages list
yum -y update
Now install all necessaries packages:
yum install SDL-devel a52dec a52dec-devel alsa-lib-devel faac faac-devel faad2 faad2-devel
yum install freetype-devel giflib gsm gsm-devel imlib2 imlib2-devel lame lame-devel libICE-devel libSM-devel libX11-devel
yum install libXau-devel libXdmcp-devel libXext-devel libXrandr-devel libXrender-devel libXt-devel
yum install libid3tag libogg-devel libvorbis-devel mesa-libGL-devel mesa-libGLU-devel xorg-x11-proto-devel xvidcore xvidcore-devel zlib-devel
These is the amr libraries:
yum install amrnb-devel amrwb-devel
yum install libtheora libtheora-devel
yum install glibc gcc gcc-c++ autoconf automake libtool
yum install subversion
yum install ncurses-devel
yum install libdc1394 libdc1394-devel
Now we need to get the x264 best video codec
wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20081108-2245.tar.bz2
bunzip2 < x264-snapshot-20081108-2245.tar.bz2 | tar -xf -
And all the essential codecs
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar
yum install yasm nasm
mkdir /usr/local/lib/codecs/
mkdir /usr/local/lib64/codecs/
cp essential-20061022/* /usr/local/lib/codecs/
cp essential-20061022/* /usr/local/lib64/codecs/
chmod -R 755 /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib64/codecs/
We now compile the x264 codec
cd x264-snapshot-20081108-2245
./configure --enable-shared
make
make install
Get the latest svn ffmpeg
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-libamr-nb --enable-libamr-wb --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --disable-ffplay --enable-shared --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads
make
make install
export LD_LIBRARY_PATH=/usr/local/lib
Now we need to edit the
/etc/ld.so.conf
and add this new line
/usr/local/lib
After this we launch the command:
ldconfig
OK, now we need to disable the SELINUX security
/etc/sysconfig/selinux
changing the line
SELINUX=disabled
We have now complete and we need only to reboot the system
|
|
Unlimted FFmpeg web hosting Adult content allowed
Current Bid: $7.00
|
|
|
Reseller Unlimited FFMPEG Hosting Cpanel/Whm $3
Current Bid: $3.00
|
|
|
FFmpeg WHM Reseller host YOUTUBE CLONE Streaming Video
Current Bid: $4.95
|
|
|
FFmpeg WHM Reseller host YOUTUBE CLONE Streaming Video
Current Bid: $4.95
|
|
Linux Multimedia Hacks
Price: $16.74
List Price: $29.95 |
|
Real World Video Compression
Price: $25.42
List Price: $44.99 |
|
AdvancED Flex Application Development: Building Rich Media X
Price: $3.93
List Price: $54.99 |
|
Flash Video for Professionals: Expert Techniques for Integrating Video on the Web
Price: $17.95
List Price: $39.99 |
PrintShare it! — Rate it: up down flag this hub
Comments
Yes translate and post only link at this article. I make the same for you when you have made
Thank You So Much !!! It worked perfectly...
Tell us where you'are using ffmpeg solution
Great Article, It really worked for me.. I m looking for exactly this error... Thanks :)
Great Article, It really worked for me.. I m looking for exactly this error... Thanks :)
can you update the article to accomodate the new ffmpeg using --enable-libopencore-amrnb --enable-libopencore-amrwb
i cant fine the opencore sourdes anywhere
found the opencore libs
http://sourceforge.net/projects/opencore-amr/
Download them
untar the file
rum make and make install then compile ffmpeg
./configure --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --disable-ffplay --enable-shared --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --enable-version3




Andrey says:
11 months ago
Thaks!!!!! Good solution!
In first time i corruped server :-) But after repair, all install successful!!!
May be i translate you article for russian.
Thx again!