MalastiC
04/02/2009, 15:07

¿Probaste con esa revisión?
El script este.. ¿Instala ffmpeg, php-ffmpeg & lame? Lo deja funcionando.
Cuando lo ejecuto, mi problema, es que se sale cuando está llegando al final.
Un saludo,
# ffmpeg -version
FFmpeg version SVN-r12420, Copyright (c) 2000-2008 Fabrice Bellard, et
al.
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/
lib64 --mandir=/usr/share/man --enable-static --enable-shared --
cc=x86_64-pc-linux-gnu-gcc --disable-altivec --disable-ffplay --
disable-ffserver --enable-libmp3lame --enable-libvorbis --enable-
libgsm --enable-libtheora --enable-libdc1394 --enable-libxvid --enable-
libx264 --enable-libfaad --enable-libfaac --enable-liba52 --enable-
nonfree --enable-libamr-nb --enable-libamr-wb --enable-gpl --enable-
pthreads --disable-strip --extra-cflags=-fPIC
libavutil version: 49.6.0
libavcodec version: 51.51.0
libavformat version: 52.9.0
libavdevice version: 52.0.0
built on Mar 11 2008 17:52:49, gcc: 3.4.5 (Gentoo 3.4.5,
ssp-3.4.5-1.0, pie-8.7.9)
FFmpeg SVN-r12420
libavutil 3212800
libavcodec 3355392
libavformat 3410176
libavdevice 3407872
Here is what I made to compile and install ffmpeg-php :
# phpize
# ./configure --prefix=/usr CFLAGS="-fPIC"
# make
# make install
But impossible to have a positive return when I use it. For example
getDuration() return 0 whatever the file is. It the same for all the
other functions. So I tried to recompile ffmpeg-php, and before the
'make install' I tried a 'make test'. Here is the output :
#make test
Build complete.
Don't forget to run 'make test'.
Error in argument 1, char 2: option not found r
X-Powered-By: PHP/5.2.5-pl0-gentoo
Content-type: text/html
================================================== ===================
CWD : /home/src/ffmpeg-php-0.5.1
PHP : /usr/local/php5/bin/php-cgi X-Powered-By: PHP/5.2.5-pl0-
gentoo
Content-type: text/html
PHP_SAPI : cgi
PHP_VERSION : 5.2.5-pl0-gentoo
ZEND_VERSION: 2.2.0
PHP_OS : Linux - Linux ns201312.ovh.net 2.6.24.2-xxxx-std-ipv4-64
#3 SMP Tue Feb 12 12:27:47 CET 2008 x86_64
INI actual : /usr/local/lib64/php5/php.ini
More .INIs :
Extra dirs :
================================================== ===================
Running selected tests.
*** glibc detected *** free(): invalid pointer: 0x0000000000e99ba0 ***
FAIL ffmpeg animatedGif [tests/animatedGif.phpt]
FAIL ffmpeg getAudioBitRate test [tests/getAudioBitRate.phpt]
FAIL ffmpeg getAudioChannels test [tests/getAudioChannels.phpt]
FAIL ffmpeg getAudioCodec test [tests/getAudioCodec.phpt]
FAIL ffmpeg getAudioSampleRate test [tests/getAudioSampleRate.phpt]
FAIL ffmpeg getBitRate test [tests/getBitRate.phpt]
FAIL ffmpeg getDuration test [tests/getDuration.phpt]
FAIL ffmpeg getFileName test [tests/getFileName.phpt]
FAIL ffmpeg getFrame test [tests/getFrame.phpt]
FAIL ffmpeg getFrameCount test [tests/getFrameCount.phpt]
FAIL ffmpeg getFrame cropping test [tests/getFrameCrop.phpt]
FAIL ffmpeg getFrameHeight test [tests/getFrameHeight.phpt]
FAIL ffmpeg getFrameNumber test [tests/getFrameNumber.phpt]
FAIL ffmpeg getFrameRate test [tests/getFrameRate.phpt]
FAIL ffmpeg getFrameResampled test [tests/getFrameResampled.phpt]
FAIL ffmpeg getFrameWidth test [tests/getFrameWidth.phpt]
FAIL ffmpeg getFrame backwards test [tests/getFramesBackwards.phpt]
FAIL ffmpeg getFrames forward test [tests/getFramesForward.phpt]
FAIL ffmpeg getFrames forward test [tests/
getFramesForwardPassedEnd.phpt]
FAIL ffmpeg getFramesNoArg test [tests/getFramesNoArg.phpt]
FAIL ffmpeg getFramesResampled test [tests/getFramesResampled.phpt]
FAIL ffmpeg getID3Info() test [tests/getID3Info.phpt]
FAIL ffmpeg getFrame without an argument test [tests/
getNextKeyFrame.phpt]
FAIL ffmpeg getPTS test [tests/getPTS.phpt]
FAIL ffmpeg getPixelAspectRatio test [tests/getPixelAspectRatio.phpt]
FAIL ffmpeg getPixelFormat test [tests/getPixelFormat.phpt]
FAIL ffmpeg getVideoBitRate test [tests/getVideoBitRate.phpt]
FAIL ffmpeg getVideoCodec test [tests/getVideoCodec.phpt]
FAIL ffmpeg hasAudio test [tests/hasAudio.phpt]
FAIL ffmpeg getFrame without an argument test [tests/isKeyFrame.phpt]
FAIL ffmpeg persistent movie test [tests/persistentMovie.phpt]
================================================== ===================
Number of tests : 31 31
Tests skipped : 0 ( 0.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 31 (100.0%) (100.0%)
Tests passed : 0 ( 0.0%) ( 0.0%)
---------------------------------------------------------------------
Time taken : 1 seconds
================================================== ===================
================================================== ===================
FAILED TEST SUMMARY
---------------------------------------------------------------------
ffmpeg animatedGif [tests/animatedGif.phpt]
ffmpeg getAudioBitRate test [tests/getAudioBitRate.phpt]
ffmpeg getAudioChannels test [tests/getAudioChannels.phpt]
ffmpeg getAudioCodec test [tests/getAudioCodec.phpt]
ffmpeg getAudioSampleRate test [tests/getAudioSampleRate.phpt]
ffmpeg getBitRate test [tests/getBitRate.phpt]
ffmpeg getDuration test [tests/getDuration.phpt]
ffmpeg getFileName test [tests/getFileName.phpt]
ffmpeg getFrame test [tests/getFrame.phpt]
ffmpeg getFrameCount test [tests/getFrameCount.phpt]
ffmpeg getFrame cropping test [tests/getFrameCrop.phpt]
ffmpeg getFrameHeight test [tests/getFrameHeight.phpt]
ffmpeg getFrameNumber test [tests/getFrameNumber.phpt]
ffmpeg getFrameRate test [tests/getFrameRate.phpt]
ffmpeg getFrameResampled test [tests/getFrameResampled.phpt]
ffmpeg getFrameWidth test [tests/getFrameWidth.phpt]
ffmpeg getFrame backwards test [tests/getFramesBackwards.phpt]
ffmpeg getFrames forward test [tests/getFramesForward.phpt]
ffmpeg getFrames forward test [tests/getFramesForwardPassedEnd.phpt]
ffmpeg getFramesNoArg test [tests/getFramesNoArg.phpt]
ffmpeg getFramesResampled test [tests/getFramesResampled.phpt]
ffmpeg getID3Info() test [tests/getID3Info.phpt]
ffmpeg getFrame without an argument test [tests/getNextKeyFrame.phpt]
ffmpeg getPTS test [tests/getPTS.phpt]
ffmpeg getPixelAspectRatio test [tests/getPixelAspectRatio.phpt]
ffmpeg getPixelFormat test [tests/getPixelFormat.phpt]
ffmpeg getVideoBitRate test [tests/getVideoBitRate.phpt]
ffmpeg getVideoCodec test [tests/getVideoCodec.phpt]
ffmpeg hasAudio test [tests/hasAudio.phpt]
ffmpeg getFrame without an argument test [tests/isKeyFrame.phpt]
ffmpeg persistent movie test [tests/persistentMovie.phpt]