Login to site
 
 
Username:  
Password:  
   
    Register in site
Forgot My Password?
RSS 2.0
     
   
 
Category
  Linux
CMS
Board
OpenSource Script
Joomla Template
PHP eBooks
Graphic
Movie
TV Show
Music
Game
Make Mirror
 
 
Archive
  August 2008 (12)
July 2008 (24)
April 2008 (2)
March 2008 (64)
February 2008 (10)
January 2008 (45)

 
 
 
Vote
   
 
Calendar
 
«    August 2008    »
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
 
HOWTO
  VBoxHeadless - Running Virtual Machines With VirtualBox 2.0 On A Headless CentOS 5.2 Server
VBoxHeadless - Running Virtual Machines With VirtualBox 2.0 On A Headless CentOS 5.2 Server This ...

The Perfect Desktop - Ubuntu Studio 8.10
The Perfect Desktop - Ubuntu Studio 8.10 This tutorial shows how you can set up an Ubuntu Studio ...

Anonymous Proxy Using SQUID 3 On CentOS 5.x
Anonymous Proxy Using SQUID 3 On CentOS 5.x This howto describes step by step a method to install ...

Installing Wordpress On A Server Running ISPconfig 2.x
Installing Wordpress On A Server Running ISPconfig 2.x This tutorial describes how I install ...

Setting Up Master-Master Replication On Four Nodes With MySQL 5 On Debian Etch
Setting Up Master-Master Replication On Four Nodes With MySQL 5 On Debian Etch This tutorial ...

NIC Bonding On Slackware 12.1
NIC Bonding On Slackware 12.1 I was standing in front of a problem while I built a NFS ...

Hardening The Linux Kernel With Grsecurity (Debian)
Hardening The Linux Kernel With Grsecurity (Debian) Security is based on three characteristics: ...

Setting Up ProFTPd + TLS On Ubuntu 8.10 (Intrepid Ibex)
Setting Up ProFTPd + TLS On Ubuntu 8.10 (Intrepid Ibex) FTP is a very insecure protocol because ...

How To Install VMware Server 2 On A Mandriva 2009.0 Desktop
How To Install VMware Server 2 On A Mandriva 2009.0 Desktop This tutorial provides step-by-step ...

Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.10)
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.10) This ...

 
 
Advertisement
   
 
Links
 
  • Code Walkers

  • PHP Freaks

  • Programming Talk

  • Webmaster Talk

  • PHP Help

  • PHP Functions

  • PHP MySQL Tutorial

  • Popular PHP Links

  • Make Mirror

  •  
     
    Site Skin
     
     
     
    Attention
      Please ReadAll parts of the Mafiascripts.com website are for private use only. No files are hosted on our server, they are only indexed much like how Google works. This site merely indexes of other sites' contents. The hosting server or the administrator cannot be held responsible for the contents of any linked sites or any link contained in a linked site, or changes / updates to such sites. All materials on this website is for Personal and Educational Purposes only.  
     
     
    Howto install FFMPEG + FFmpeg-php on XAMPP [linux] Tutorial & Tips
     
    Step 1
    Download Lampp for Linux:

    DL ( http://www.apachefriends.org/en/xampp-linux.html)


    http://www.apachefriends.org/download.php?...x-1.6.5a.tar.gz ( get the
    latest release! )

    Save the lampp in your home directory

    Start Linux Shell (Terminal) and use sodo or su for extracting lampp

    sodo tar xvfz xampp-linux-1.6.5a.tar.gz -C /opt


    or
    su
    tar xvfz xampp-linux-1.6.5a.tar.gz -C /opt
    (if you're loged in as system administrator, make sure u are in right
    path
    you can find out by typeing pwd . Firefox by default will saves filez
    in Desktop
    in terminal type "
    cd /home/ur_account_name/Desktop
    "

    now lampp is extracted to
    /opt/lampp/

    ----------------------------------------
    now we need install second file:

    Lampp Development Package

    http://www.apachefriends.org/download.php?...l-1.6.5a.tar.gz
    Extract: tar xvfz xampp-linux-devel-1.6.5a.tar.gz -C /opt


    Howto install FFMPEG + FFmpeg-php on XAMPP [linux]


    To start lampp , call this command in shell
    /opt/lampp/lampp start

    For change defualt ftp, mysql and lampp directory password:
    in terminal type:
    /opt/lampp/lampp security


    ###########################################

    Step 2

    Download Packages:
    Start Linux shell if you're closed it :)
    ( we will make a directory inside root home directory to download all
    packages in one place)
    mkdir ffmpeg

    Login to ffmpeg folder by type:
    1. ~/ffmpeg
    2. cd /root/ffmpeg

    ( type pwd for conforming yur current location if you're unsure :) )

    in terminal:

    wget http://mafiascripts.net/ffmpeg/flvtool2-1.0.6.tgz
    wget http://mafiascripts.net/ffmpeg/lame-3.97.tar.gz
    wget http://mafiascripts.net/ffmpeg/essential-20071007.tar.bz2
    wget http://mafiascripts.net/ffmpeg/MPlayer-1.0rc1.tar.bz2
    wget http://mafiascripts.net/ffmpeg/libogg-1.1.3.tar.gz
    wget http://mafiascripts.net/ffmpeg/libvorbis-1.1.2.tar.gz
    wget http://mafiascripts.net/ffmpeg/ffmpeg_source.tar.gz
    wget http://mafiascripts.net/ffmpeg/ffmpeg-php-0.5.1.tbz2
    wget http://mafiascripts.net/ffmpeg/amrnb-6.1.0.4.tar.bz2
    wget http://mafiascripts.net/ffmpeg/libpng-1.2.18.tar.bz2
    wget http://mspedia.com/ffmpeg/libjpeg-6b.tar.bz2
    wget http://mafiascripts.net/ffmpeg/zlib-1.2.3.tar.bz2
    wget http://mafiascripts.net/ffmpeg/libwmf-0.2.8.3.tar.gz
    wget http://mafiascripts.net/ffmpeg/freetype-2.3.5.tar.bz2
    wget http://mafiascripts.net/ffmpeg/gd-2.0.35.tar.bz2
    wget http://mafiascripts.net/ffmpeg/ImageMagick-6.3.5-5.tar.bz2

    Now we need to install them one by one but before we starting, you
    need to
    install following packages by inserting your linux CD or DVD in CD/DVD
    drive and start package manager

    install:

    gcc
    gcc++
    libgcc
    libgcc42
    autoconf
    automake
    libtool
    ruby
    ruby-devel

    ScSh:
    http://mafiascripts.net/ffmpeg/Screenshot.png


    Now we are ready to install packages:
    Note: we're now loged in /ffmpeg folder ( cd /root/ffmpeg/)
    #############Install FreeType##########
    Step 1 Extract freetype ( for all packages follow this steps )
    tar -xvjf freetype-2.3.5.tar.bz2

    Step 2 Login to folder that contain extracted files

    cd /root/ffmpeg/freetype-*
    Step 3 call configure command by type:
    ./configure
    Step 4 wait until called command finish its job then call make by
    type:
    make
    Step 5 wait until called command finish its job then call make install
    by type:
    make install

    ############Install Zlib#########
    Now back to ffmpeg folder ( cd /root/ffmpeg )

    tar -xvjf zlib-1.2.3.tar.bz2
    cd zlib*
    ./configure
    make
    make install
    #########Install LibPNG###########

    Now back to ffmpeg folder ( cd /root/ffmpeg )

    tar -xvjf libpng-1.2.18.tar.bz2
    cd libpng-*
    ./configure
    make
    make install

    ##########Install LibJPEG##############
    Now back to ffmpeg folder ( cd /root/ffmpeg )

    tar -xvjf libjpeg-6b.tar.bz2
    cd libjpeg-*
    ./configure
    make
    make install

    ###############Install LibWMF###################
    Now back to ffmpeg folder ( cd /root/ffmpeg )

    tar -xvzf libwmf-0.2.8.3.tar.gz
    cd libwmf-0.2.8.3/
    ./configure
    make
    make install

    ##############Install GD###############
    Now back to ffmpeg folder ( cd /root/ffmpeg )

    tar -xvjf gd-2.0.35.tar.bz2
    cd gd-2.0.35/
    ./configure --with-png=/usr/local/lib/ --with-jpeg=/usr/local/lib/
    make
    make install

    ############Install ImageMagick############
    Now back to ffmpeg folder ( cd /root/ffmpeg )

    tar -xvjf ImageMagick-6.3.5-5.tar.bz2
    cd ImageMagick-6.3.5/
    ./configure
    make
    make install
    ###########Install FLVtool2############
    Now back to ffmpeg folder ( cd /root/ffmpeg )

    tar -zxvf flvtool2-1.0.6.tgz
    cd flvtool2-*/
    ruby setup.rb config
    ruby setup.rb setup
    ruby setup.rb install
    ln -s /usr/bin/flvtool2 /usr/local/bin/flvtool2

    Note:ln -s makes symbolic link (Shortcut in windows)
    ######################LAME##############################
    Now back to ffmpeg folder ( cd /root/ffmpeg )

    tar -zxvf lame-3.97.tar.gz
    cd lame-3.97
    ./configure --enable-mp3x --enable-mp3rtp
    make
    make install

    #################LibOGG#################
    Now back to ffmpeg folder ( cd /root/ffmpeg )

    tar -xvzf libogg-1.1.3.tar.gz
    cd libogg-*
    ./configure
    make
    make install
    ##################Install AMRnb##############
    Now back to ffmpeg folder ( cd /root/ffmpeg )

    tar -xvjf amrnb-6.1.0.4.tar.bz2
    cd amrnb-6.1.0.4/
    ./configure
    make
    make install
    #################Install Essential#####################
    Now back to ffmpeg folder ( cd /root/ffmpeg )

    tar -xvjf essential-20071007.tar.bz2
    chown -R root.root essential-20071007.tar.bz2
    mkdir -pv /usr/local/lib/codecs/
    cp -vrf essential-20071007/* /usr/local/lib/codecs/
    chmod -R 755 /usr/local/lib/codecs/

    ###Note: chown (change ownership) CP (copy) chmod (changemod)
    ###################Install LibVorbis####################
    Now back to ffmpeg folder ( cd /root/ffmpeg )

    tar -xvzf libvorbis-1.1.2.tar.gz
    cd libvorbis-1.1.2
    ./configure
    make
    make install
    ##################Install MPlayer###################
    Now back to ffmpeg folder ( cd /root/ffmpeg )

    tar -jvxf MPlayer-1.0rc1.tar.bz2
    cd MPlayer-1.0rc1/
    ./configure --with-codecsdir=/usr/local/lib/codecs/ --with-freetype-
    config=/usr/include/freetype
    make
    make install
    cp -vrf etc/codecs.conf /usr/local/etc/mplayer/
    make clean

    ln -s usr/local/bin/mplayer /usr/bin/mplayer
    ln -s /usr/local/bin/mencoder /usr/bin/mencoder
    #######################Install FFMPEG###################
    Now back to ffmpeg folder ( cd /root/ffmpeg )

    tar -xvzf ffmpeg_source.tar.gz
    cd ffmpeg_source
    tar xzf ffmpeg.tar.gz
    cd ffmpeg/
    ./configure --enable-mp3lame --enable-shared --enable-libogg --enable-
    vorbis --enable-amr_nb --enable-amr_wb --enable-amr_if2
    make
    make install
    ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg
    /usr/bin/ffmpeg -v

    ###############REConfig Mplayer############
    Now back to ffmpeg folder ( cd /root/ffmpeg )
    cd MPlayer-1.0rc1/
    ./configure --with-codecsdir=/usr/local/lib/codecs/ --with-freetype-
    config=/usr/include/freetype
    make
    make install
    cp -vrf etc/codecs.conf /usr/local/etc/mplayer/
    make clean
    ln -s usr/local/bin/mplayer /usr/bin/mplayer
    ln -s /usr/local/bin/mencoder /usr/bin/mencoder

    ###################Install FFMPEG-PHP#######################
    tar -jxvf ffmpeg-php-0.5.1.tbz2
    cd ffmpeg-php-*
    /opt/lampp/bin/phpize
    ./configure --enable-shared --with-php-config=/opt/lampp/bin/php-
    config --with-ffmpeg=/usr/local/bin/ffmpeg
    make
    make install
    #################### END of installation ##################
    now you need to open up your php.ini and add ffmpeg.so
    if you have Gnome desktop simply call php.ini by call following
    command

    gedit /opt/lampp/etc/php.ini

    or manully open it up. it's in /opt/lampp/etc/ folder
    between line 516 - 527 add:

    extension="ffmpeg.so"

    line 386 add:
    ;extension_dir = /opt/lampp/lib/php/extensions/no-debug-non-
    zts-20060613/

    now should look like this:
    ; Directory in which the loadable extensions (modules) reside.
    ;extension_dir = /opt/lampp/lib/php/extensions/no-debug-non-
    zts-20020429/
    ;extension_dir = /opt/lampp/lib/php/extensions/no-debug-non-
    zts-20040412/
    ;extension_dir = /opt/lampp/lib/php/extensions/no-debug-non-
    zts-20060613/

    #if you have plan to use mail() function, you need to configure
    sendmail too
    #line 566 should look like this:( make sure you have installed
    sendmail)
    #in shell (terminal) write: whereis sendmail
    #for call documentation call: man sendmail

    ; For Unix only. You may supply arguments as well (default: "sendmail -
    t -i").
    sendmail_path = /usr/sbin/sendmail -t
    sendmail_from = your.em...@gmail.com

    change this valuse (read script installation document)
    ; Maximum allowed size for uploaded files. line 426
    upload_max_filesize = 400M

    ; Maximum size of POST data that PHP will accept. line 332
    post_max_size = 400M

    max_execution_time = 8000 ; Maximum execution time of each script, in
    seconds line 201
    memory_limit = 100M ; Maximum amount of memory a script may consume
    (8MB) line 202

    ; a value for this directive (e.g., output_buffering=4096). line 88
    output_buffering = On

    ; After this number of seconds, stored data will be seen as 'garbage'
    and
    ; cleaned up by the garbage collection process. line 788
    session.gc_maxlifetime = 40000

    Save changes and open up httpd.conf located in /opt/lampp/etc/

    line 186
    # First, we configure the "default" to be a very restrictive set of
    # features.
    #

    Options FollowSymLinks
    AllowOverride None
    #XAMPP
    #Order deny,allow
    #Deny from all


    Change it ot
    # First, we configure the "default" to be a very restrictive set of
    # features.
    #

    Options FollowSymLinks
    AllowOverride All
    #XAMPP
    #Order deny,allow
    #Deny from all


    Line 334
    ScriptAlias /cgi-bin/ "/opt/lampp/cgi-bin/"
    change it to

    ScriptAlias /cgi-bin/ "/opt/lampp/htdocs/cgi-bin/"

    Line 350


    AllowOverride None
    Options None
    Order allow,deny
    Allow from all

    change it to

    AllowOverride None
    Options ExecCGI -MultiViews +SymLinksifOwnerMatch
    Order allow,deny
    Allow from all


    Save changes and restart apache by call:

    /opt/lampp/lampp restartapache

    Now you have php5 configured with FFMPEG-PHP , yur server will support
    ostube, clipshare phpmotion and etc..
    FFmpeg-php Google Groups:
    http://groups.google.com/group/ffmpeg-php






    Only Registred Users Can See Download Links & Other Hidden Text,So We recomend You To Register .

     
      Related Downloads:  
     
  • PHPmotion V2 Beta now out
  • YouTube PHP Video Server in 1 clic ! Pre-configured Ubuntu Image Ready To U ...
  • PhotoStore
  • [TIPS] Speed up your adobe acrobat reader
  • we are back
  •  
     

     
    User: raman | Date: 9 September 2008 09:12 |
     

    Hi follow your every step...

    1) Not get this pkg# wget http://mspedia.com/ffmpeg/libjpeg-6b.tar.bz2

    2) when i try to insatll ffmpeg
    i get following error....

    #./configure --enable-mp3lame --enable-shared --enable-libogg --enable-vorbis --enable-amr_nb --enable-amr_wb --enable-amr_if2

    Creating config.mak and config.h...

    AMR WB FLOAT NOTICE ! Make sure you have downloaded TS26.204
    V5.1.0 from
    http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
    and extracted the source to libavcodec/amrwb_float


    AMR NB FLOAT NOTICE ! Make sure you have downloaded TS26.104
    REL-5 V5.1.0 from
    http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-5??.zip
    and extracted the source to libavcodec/amr_float
    and if u try this on an alpha, u may need to change Word32 to int in amr/typedef.h

    then run make
    # make
    [root@ramanpbx ffmpeg]# make
    make -C libavutil all
    make[1]: Entering directory `/root/ffmpeg/ffmpeg/libavutil'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/root/ffmpeg/ffmpeg/libavutil'
    make -C libavcodec all
    make[1]: Entering directory `/root/ffmpeg/ffmpeg/libavcodec'
    gcc -O3 -g -Wall -Wno-switch -Wdeclaration-after-statement -DHAVE_AV_CONFIG_H -I.. -I'/root/ffmpeg/ffmpeg'/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DIF2=1 -c -o mpegvideo.o mpegvideo.c
    In file included from /root/ffmpeg/ffmpeg/libavutil/avutil.h:24,
    from avcodec.h:14,
    from mpegvideo.c:28:
    /root/ffmpeg/ffmpeg/libavutil/common.h:594: warning: static declaration of 'lrintf' follows non-static declaration
    mpegvideo.c: In function `estimate_best_b_count':
    mpegvideo.c:2203: warning: passing arg 2 of `img_resample' from incompatible pointer type
    mpegvideo.c:2203: warning: passing arg 3 of `img_resample' from incompatible pointer type
    mpegvideo.c: In function `MPV_encode_picture':
    /root/ffmpeg/ffmpeg/libavutil/common.h:594: sorry, unimplemented: inlining failed in call to 'lrintf': redefined extern inline functions are not considered for inlining
    mpegvideo.c:2523: sorry, unimplemented: called from here
    make[1]: *** [mpegvideo.o] Error 1
    make[1]: Leaving directory `/root/ffmpeg/ffmpeg/libavcodec'
    make: *** [lib] Error 2


    Can you help me on this issue.

    Thanks.

    Raman Kumar


     
     
    [Reply]

     
    User: bobgoldhammer | Date: 9 September 2008 18:46 |
     

    Ubuntu: from read DIY or a WIKI ( install LAMP )
    or you already have a server...
    Then, from terminal
    sudo apt-get install ffmpeg
    sudo apt-get install php5-ffmpeg

    ffmpeg binary is now here: /usr/bin/ffmpeg
    php5-ffmpeg config is /etc/php5/cli/conf.d in there

    shared hosting with gallery requiring FFMPEG binary?
    See bogdan.org for info on downloading precompiled binaries that work for Godaddy, Bluehost, etc.

    stuck on windows?
    http://corz.org/windows/software/ffe/
    http://www.videohelp.com/tools/ffmpeg

    my good old favorite Afterdawn.com
    Search for "FFMPEG" and find tools, info, etc.
     
     
    [Reply]

     
    User: raman | Date: 9 September 2008 23:21 |
     

    I already have using xampp on rhel 4.
    still get the same error...

     
     
    [Reply]

     
    User: EdxFeR | Date: 14 September 2008 15:45 |
     

    hi am install ffmpeg in my server linux where you go to put the command line
    and via cpanel its possible or no

    thank to explain me or give me procedure to install ffmpeg and ffmpeg-php to my site
    my site is vshare for video
     
     
    [Reply]

     
    Add comments
     
    Name:
    Email:

    Security code:
    Include security image CAPCHA.
    update code
    Enter code:

     
     

       
    Homepage | Register | Site Stats | Add News | Last Comments | RSS v2.0 | Feedback

    MAFiASCRiPTS Forum