FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.
It includes libavcodec - the leading audio/video codec library.
yum install subversion
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
==========================
Inorder to check if SVN is installed and working :
root@server [/svn/demorepo]# which svn
/usr/local/bin/svn
root@server [/svn/demorepo]# svn --version
svn, version 1.4.5 (r25188)
compiled Apr 28 2008, 20:16:21
============================
cd ffmpeg
./configure --enable-libfaac --enable-shared --enable-memalign-hack --enable-gpl --enable-libtheora
--enable-libmp3lame --enable-libopenjpeg --enable-libvorbis --enable-libx264 --enable-libxvid
--enable-nonfree --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-swscale
If you are getting errors on enabling all modules,try customizing the modules as :
./configure --enable-shared --enable-memalign-hack --enable-gpl --enable-postproc --enable-avfilter --disable-yasm
make
make install
Symlink some libraries if needed (ignore file exists errors):
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
While receiving error :
>> ffmpeg
ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file
Which means the file is either missing or the server was unable to locate the libraries path,
Locate the file using
>> find / -iname libavdevice.so.52
If you get an output, enter the location of the library to the ld.so.conf file.
>> vi /etc/ld.so.conf
Say, if the library is located at /opt/lib/libavdevice.so.52.so, add /opt/lib to ld.so.conf file.
After adding the path to the library, run the below command to make sure the system takes the library path.
>> ldconfig -v
Please note down the path where the modules are installed for eg :- "/usr/lib64/php/modules/".
B'coz it is neede for providing path during FFmpeg-php installation.
==========================================
If you are getting the following error on start up on svn check out :
root@server[/svn/demorepo]# svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn: Can't connect to host 'svn.mplayerhq.hu': Connection timed out
Just stop the Iptables by the command :
service iptables stop
or
/etc/init.d/iptables stop
============================================
cd ffmpeg
./configure –enable-gpl –enable-shared –enable-libmp3lame
If you are getting the following error
“Unable to create and execute files in /tmp. Set the TMPDIR environment…”
Try to unmount /tmp
OR
mkdir /test ; chmod 777 /test
vi configure edit TMPDIR to /test
and execute it once again
====================
No comments:
Post a Comment