Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : help me instal ffmpeg



Threaded Mode | Print  

 help me instal ffmpeg, help me instal ffmpeg (4 Replies, Read 23228 times)
lolite
Group: Member
Post Group: Working Newbie
Posts: 63
Status:
hello sir, sorry if I always troublesome in because I am a beginner :) I want to ask about how to install step by step installation of ffmpeg in webuzo. I've tried taking into way at the following address : http://tecadmin.net/install-ffmpeg-on-linux/ but still can not. I enclose also display error. please help me  :xd:
IP: --   

help me instal ffmpeg
divij
Group: Member
Post Group: Elite Member
Posts: 290
Status:
Hi,

Sir please follow the following guide:
http://webuzo.com/wiki/Install_ClipBucket_On_Webuzo#Installing_ffmpeg
IP: --   

help me instal ffmpeg
keyjey
Group: Member
Post Group: Newbie
Posts: 30
Status:
Helo, can you update that howto ? Seems too old and probably doesn't work for current Centos 7 version.

Thanks.
IP: --   

help me instal ffmpeg
webuzo_manager
Group: Member
Post Group: Elite Member
Posts: 268
Status:
Hi,

You can follow the below guide for FFMEG :

//Let us 1st add the FFMPEG repo
1. Create and open a new file called /etc/yum.repos.d/dag.repo. U can do the same from the following command:
vi /etc/yum.repos.d/dag.repo

2. Add the following text to the file:
[dag]
name=DAG RPM Repository
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

3. Finally, save and close the file.


//Add the above repos to yum
Run the following command to import the key
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt


//Update yum
Now that DAG is setup, it’s a good idea to update all your packages.

yum update


//Now get the FFMPEG lib packages & untar it in the php/bin directory

1. Go to the PHP bin directory
cd /usr/local/apps/php56/bin/

2. wget the package
wget "http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2"

3. untar the above package & cd to the folder
tar -xjvf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0

4. phpize
/usr/local/apps/php56/bin/phpize
    >> if $PHP_AUTOCONF error occurs then do : yum or apt-get install autoconf and re run the above command

5. Edit the ffmpeg_movie.c file for smooth completion of make & make install:
Line 311:
list_entry *le;
TO
zend_rsrc_list_entry *le;

Line 346:
list_entry new_le;
TO
zend_rsrc_list_entry new_le;

Line 360:
hashkey_length+1, (void *)&new_le, sizeof(list_entry),
TO
hashkey_length+1, (void *)&new_le,sizeof(zend_rsrc_list_entry),


6. Configure and make install
./configure --with-php-config=/usr/local/apps/php55/bin/php-config --enable-shared && make && make install

The above extension shall be created in the php folder at the following path:
/usr/local/apps/php56/lib/extensions/no-debug-non-zts-20121212/
Move the ffmpeg.so file from the above directory to the extension directory i.e. /usr/local/apps/php55/ext/
Add the above in the extra.ini file and your extension shall now work fine.
IP: --   

help me instal ffmpeg
webuzo_manager
Group: Member
Post Group: Elite Member
Posts: 268
Status:
Hi,

There were some issues in the previous guide, please follow this instead :

Steps to provide FFMPEG - PHP extension and make it compatible with our (i.e. Webuzo) PHP.

//Let us 1st add the FFMPEG repo
1. Create and open a new file called /etc/yum.repos.d/dag.repo. U can do the same from the following command:
vi /etc/yum.repos.d/dag.repo

2. Add the following text to the file:
[dag]
name=DAG RPM Repository
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

3. Finally, save and close the file.


//Add the above repos to yum
Run the following command to import the key
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

//Update yum
Now that DAG is setup, it’s a good idea to update all your packages.

yum update
yum install ffmpeg ffmpeg-devel ffmpeg-libpostproc

//Now get the FFMPEG lib packages & untar it in the php/bin directory

1. Go to the PHP bin directory
cd /usr/local/apps/php55/bin/

2. wget the package
wget "http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2"

3. untar the above package & cd to the folder
tar -xjvf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0

4. phpize
/usr/local/apps/php55/bin/phpize
    >> if $PHP_AUTOCONF error occurs then do : yum or apt-get install autoconf and re run the above command

5. Edit the ffmpeg_movie.c file for smooth completion of make & make install:
Line 311:
list_entry *le;
TO
zend_rsrc_list_entry *le;

Line 346:
list_entry new_le;
TO
zend_rsrc_list_entry new_le;

Line 360:
hashkey_length+1, (void *)&new_le, sizeof(list_entry),
TO
hashkey_length+1, (void *)&new_le,sizeof(zend_rsrc_list_entry),


6. Configure and make install
./configure --with-php-config=/usr/local/apps/php55/bin/php-config --enable-shared && make && make install

The above extension shall be created in the php folder at the following path:
/usr/local/apps/php56/lib/extensions/no-debug-non-zts-20121212/
Move the ffmpeg.so file from the above directory to the extension directory i.e. /usr/local/apps/php55/ext/
Add the above in the extra.ini file and your extension shall now work fine.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 23, 2024, 9:29 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.078