PHP won't load it

36 views
Skip to first unread message

Gui

unread,
Nov 5, 2007, 10:53:03 AM11/5/07
to ffmpeg-php
Hi everyone,

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

Miguel Michelsongs

unread,
Nov 5, 2007, 1:04:09 PM11/5/07
to ffmpe...@googlegroups.com
try to compile php again with enable  ffmpeg

regards
--
Atte.
Miguel Michelson Martinez
---------------------------------------
www.artenlinea.cl

Todd Kirby

unread,
Nov 5, 2007, 2:02:40 PM11/5/07
to ffmpe...@googlegroups.com
What is the output of running 'php-config --extension-dir'?

What is the value of the extension_dir directive in php.ini?

-T-

Gui

unread,
Nov 6, 2007, 8:48:44 AM11/6/07
to ffmpeg-php
Thank you Miguel and Todd.

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-
>

Gui

unread,
Nov 6, 2007, 8:56:50 AM11/6/07
to ffmpeg-php
Here's the complete output of test_ffmpeg.php:

"
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

Todd Kirby

unread,
Nov 6, 2007, 4:33:40 PM11/6/07
to ffmpe...@googlegroups.com
hasVideo was added in ffmpeg-php 0.5.1 and you are running 0.5.0. Are you maybe running the test script from 0.5.1?

Guilherme Sant Anna Maia

unread,
Nov 8, 2007, 4:26:43 PM11/8/07
to ffmpe...@googlegroups.com
Exactly. You're awsome Todd!

Just installed 0.5.1 and the problem is gone.

Reply all
Reply to author
Forward
0 new messages