I installed FFMPEG and FFMPEG-PHP on my server following the
instructions on:
http://www.nazly.net/index.php?page=showevents&selTopic=230
I though I had installed it successfully... Until I tried to use it
and it did not work. Then I checked phpinfo() and the module actually
is not loading.
Tried rebooting the server, but PHP still didn't load the ffmpeg.so
module.
What's wrong? PHP don't give any warnings, it just won't load it.
My setup:
CentOS 4
Direct Admin Control Panel
Apache/2.0.59
PHP 5.2.1 (cli)
GD bundled (2.0.28 compatible)
Regards,
Gui
You were right Todd, I fixed the extension-dir and now it's working.
Except for on problem: when I execute the file test_ffmpeg.php it
gives me the error:
"
PHP Fatal error: Call to undefined method ffmpeg_movie::hasVideo()
in /home/user/domains/domain.com/public_html/ffmpeg.test/
test_ffmpeg.php on line 55
"
What's wrong now? How could it load all other methods but leave
hasVideo() behind?
Regards,
Gui
On 5 nov, 16:02, "Todd Kirby" <ffmpeg....@gmail.com> wrote:
> What is the output of running 'php-config --extension-dir'?
>
> What is the value of the extension_dir directive in php.ini?
>
> -T-
>
"
ffmpeg-php version string: 0.5.0
libavcodec build number: 3354370
libavcodec version number: 3354370
libavcodec build number: 3354370
Methods available in class 'ffmpeg_movie':
ffmpeg_movie
getduration
getframecount
getframerate
getfilename
getcomment
gettitle
getauthor
getartist
getcopyright
getalbum
getgenre
getyear
gettracknumber
getframewidth
getframeheight
getframenumber
getpixelformat
getbitrate
hasaudio
getnextkeyframe
getframe
getvideocodec
getaudiocodec
getaudiochannels
getaudiosamplerate
getaudiobitrate
getvideobitrate
getpixelaspectratio
Methods available in class 'ffmpeg_frame':
ffmpeg_frame
togdimage
getwidth
getheight
resize
crop
iskeyframe
getpresentationtimestamp
getpts
Methods available in class 'ffmpeg_animated_gif':
ffmpeg_animated_gif
addframe
--------------------
file name = /home/user/domains/domain.com/public_html/ffmpeg.test/
tests/test_media/some.video.mpeg
duration = 40.385311 seconds
frame count = 969
frame rate = 24.000 fps
comment =
title =
author =
copyright =
get bit rate = 238142
has audio = Yes
get audio codec = mp2
get audio bit rate = 32000
get audio sample rate = 44100
get audio channels = 1
PHP Fatal error: Call to undefined method ffmpeg_movie::hasVideo()
in /home/user/domains/domain.com/public_html/ffmpeg.test/
test_ffmpeg.php on line 55
"
Gui
Just installed 0.5.1 and the problem is gone.