Jump to content
php.lv forumi

Pamaciba: FLV PLAYER + FFMPEG INSTALLATION


777

Recommended Posts

Te biju klajnojis pa internetu, un atradu tutorial ...

Ceru kadam ievajadzesies

 

Nemts no: NOBOXMEDIA

 

Step 1 - Compiling FFMPEG:

sudo apt-get build-dep ffmpeg

sudo apt-get install liblame-dev libfaad2-dev \

libfaac-dev libxvidcore4-dev checkinstall fakeroot

DEB_BUILD_OPTIONS=risky fakeroot apt-get source ffmpeg –compile

 

Additional configuration:

sudo apt-get build-dep ffmpeg

sudo apt-get install liblame-dev libfaad2-dev \

libfaac-dev libxvidcore4-dev liba52-0.7.4 \

liba52-0.7.4-dev libx264-dev checkinstall \

build-essential subversion

 

Step 2 - Next, grab the ffmpeg source:

svn checkout -r 8998 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

cd ffmpeg

./configure --enable-gpl --enable-pp --enable-libvorbis \

--enable-libogg --enable-liba52 --enable-libdts \

--enable-dc1394 --enable-libgsm --disable-debug \

--enable-libmp3lame --enable-libfaad --enable-libfaac \

--enable-xvid --enable-pthreads --enable-x264

make

 

sudo checkinstall

 

Step 3 - Install FFMPEG-PHP:

DOWNLOAD FILE

 

phpize

 

./configure --enable-ffmpeg-php --with-ffmpeg-php --enable-maintainer-zts --enable-debug --with-php-config=/usr/local/php/bin/php-config

 

Note that –enable-maintainer-zts –enable-debug –with-php-config=/usr/local/php/bin/php-config

 

make

make install

 

vi /usr/local/php/php.ini

cp /usr/local/php/lib/php/extensions/debug-zts-20060613/ffmpeg.so /usr/local/php/lib/php/extensions/

apache stopp

apache start

php -r 'phpinfo();' | grep ffmpeg

you should see

ffmpeg

ffmpeg support (ffmpeg-php) => enabled

ffmpeg-php version => 0.5.0

ffmpeg.allow_persistent => 0 => 0

php -f ext/ffmpeg-php-0.5.0/tests/test_ffmpeg.php

 

The Final step - finding a cool player:

.JV FLV PLAYER

flvplayer.jpg

Edited by 777
Link to comment
Share on other sites

kaut kā sarežģīts te viss.

 

EDIT- 777, nu ar to es domāju, ka tas ir 'sarežģīts' aka, var vieglāk, bet ir labi, ka var forumā ielikt manuāli, lai citiem nav jāapgrūtinās googleēejot. (:

Edited by eregi
Link to comment
Share on other sites

  • 5 months later...

Ne bubu tu maldies vinsh ir Necromancer's (:

Link to comment
Share on other sites

vi /usr/local/php/php.ini

 

kas iekš vi man jādara?

vienkārši tāpat jāatver php.ini, vai kā? jeb tas ir speciāls āķis, jo pavisam subjectīva pieredze rāda, ka vidējais linuksists-ubuntu'ists no vi nemācēs ārā vairs tikt. (:

Link to comment
Share on other sites

×
×
  • Create New...