Showing posts with label FFMPEG. Show all posts
Showing posts with label FFMPEG. Show all posts

HowTo install and configure FFmpeg and FFmpeg-Php on a DA server

0 comments
I saw this headline on another part of the forum and the instructions I thought were a lot more than was needed. And that might be fine for some but I thought I would post a much shorter process. Here is what I do on my servers running CentOS. Its so easy that I just do it by default on every server I setup.

Install FFMPEG CentOS

cd /root
echo "[dag]" > /etc/yum.repos.d/dag.repo
echo "name=Dag RPM Repository for Red Hat Enterprise Linux" >> /etc/yum.repos.d/dag.repo
echo "baseurl=http://apt.sw.be/redhat/el\$releasever/en/\$basearch/dag" >> /etc/yum.repos.d/dag.repo
echo "gpgcheck=0" >> /etc/yum.repos.d/dag.repo
echo "enabled=1" >> /etc/yum.repos.d/dag.repo

yum -y install ffmpeg ffmpeg-devel flvtool2 mencoder
wget http://internap.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.6.0.tbz2
tar -xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0/
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
make
make install
cp /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so /usr/local/lib/php/extensions/
echo "extension=ffmpeg.so" >> /etc/php.ini
service httpd restart

ffmpeg: error while loading shared libraries: libavdevi

0 comments
Error:-
ffmpeg: error while loading shared libraries: libavdevice.so.52:
cannot open shared object file: No such file or directory.

Execute the following command to fix this issue:-

echo “/usr/local/lib” >> /etc/ld.so.conf
echo “/usr/lib” >> /etc/ld.so.conf
ldconfig

error: ‘PIX_FMT_RGBA32? undeclared

0 comments
Error:

/root/ffmpeg-php-0.5.0/ffmpeg_frame.c:495: error: ‘PIX_FMT_RGBA32? undeclared (first use in this function)
make: *** [ffmpeg_frame.lo] Error 1










Fix:

1. Open the file “/root/ffmpeg-php-0.5.0/ffmpeg_frame.c” using vi editor.
2. Go to the line you are getting this error. [In this example, line #495].
3. Execute the following command.

Press ESC and :%s/PIX_FMT_RGBA32/PIX_FMT_RGB32

4. Save the file and recompile it once again.

make: *** [ffmpeg_frame.lo] Error 1

0 comments
If you get the following error while compiling ffmpeg-php module,

make: *** [ffmpeg_frame.lo] Error 1

then use the command to fix it “cp ffmpeg_frame.loT ffmpeg_frame.lo” and compile ffmpeg-php once again.

How to install the FFmpeg

0 comments

# yum -y install dialog


# cd /usr/src


# wget http://scriptmantra.info/scripts/AAST_ffmpeg_installer_5.0.3b


#chmod +x AAST_ffmpeg_installer_5.0.3b


#./AAST_ffmpeg_installer_5.0.3b


FFmpeg-PHP

FFMPEG Yum installation

0 comments

1.# wget Install RPMForge: http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm


2. That’ll give you access to a repo to install ffmpeg


3. Then


#  yum install ffmpeg.i386


and


#  yum install ffmpeg-devel.i386