Blog Activities
|
|
Resources
|
|
How to debug FFMPEg Installation Errors
- Hits: 416
- 0 Comments
- Subscribe to updates
I spent almost 4-5 days dealing with FFMPeg issues at my video website. FFMPeg was not getting installed properly on my server and was fetching many errors and warning during configuration. Finally I managed to installed it successfully with following steps.
Please make sure to remove or uninstall all your previous installations
yum remove ffmpeg x264 faad2 faad2-devel
yum install gcc gcc-c++ automake autoconf libtool yasm git subversion
yum install zlib-devel libmad-devel libvorbis-devel libtheora-devel lame-devel faac-devel-devel xvidcore-devel freetype-devel
FAAD2 Installation
=> cd ~
=> wget http://downloads.sourceforge.net/faac/faad2-2.6.1.tar.gz
=> tar xzvf faad2-2.6.1.tar.gz
=> cd faad2
=> autoreconf -vif
=> ./configure
=> make
=> make install
GPAC Installation
=> cd ~
=> wget http://downloads.sourceforge.net/gpac/gpac-0.4.4.tar.gz
=> tar -xzvf gpac-0.4.4.tar.gz
=> cd gpac
=> ./configure
=> make
=> make install
=> make install-lib
Note :- if the compile fails with a osmozilla related error, Update the links to the shared libs
=> echo '/usr/local/lib/' > /etc/ld.so.conf.d/gapc-1386.conf
=> ldconfig
Install x264
=> cd ~
=> git clone git://git.videolan.org/x264.git
=> cd x264
=> ./configure --enable-pthread --enable-mp4-output --enable-shared
=> make
=> make install
***Install FFMPEG :-
FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library.
=> cd ~
=> svn export svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
=> cd ffmpeg
=> ./configure --prefix=/usr/local --disable-debug --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-swscale --enable-pthreads --enable-x11grab --enable-liba52 --enable-libx264 --enable-libxvid --enable-libvorbis --enable-libfaac --enable-libfaad --enable-libmp3lame
=> make
=> make install
**Very Important :-
If ffmpeg has problems finding shared libraries, set the LD_LIBRARY_PATH
=> echo 'LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib; export LD_LIBRARY_PATH' >> /etc/ld.so.conf
=> ldconfig
It is more than enough to run Video Streaming website...However you can install Mplayer and Mencoder as follows.
Mplayer & Codecs Installation :-
MPlayer is a movie player which runs on many systems. It plays most MPEG/VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim, and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV and even H.264 movies.
=> wget http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc3.tar.bz2
=> tar xjvf MPlayer-1.0rc3.tar.bz2
=> cd MPlayer-1.0rc3/
=> ../configure
=> make
=> make install
Codec Installation
=> wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
=> tar xjvf essential-20071007.tar.bz2
=> mkdir /usr/local/lib/codecs/
=> mv essential-20071007/ /usr/local/lib/codecs/
=> chmod -R 755 /usr/local/lib/codecs/
NOTE:-
In case if you are still facing problem with Video Player or Video Upload at your video website you can contact us. Our charges are only $ 40 which includes installation of all necessary Codecs and Modules for video streaming, Video Thumbnail creation and fine tuning etc..
** Suraj Consulting Charges :- $ 40
Compare with other service providers charges
Clip-Share charges :- $ 50
Graphx Charges :- $50
HostGator Charges :- $ 75
Leave your comment