-
Ffmpeg-php issues
Hey all,
I just set up a new Centos 4.6 server running Php 5.23. I've got flvtool2, FFmpeg and Mplayer installed, and can call ffmpeg, flvtool2, mencoder and mplayer from the command line and get a response.
I have installed ffmpeg as shared.
Ffmpeg-php appears to compile and install properly, and it puts ffmpeg.so where it's supposed to go, and I've got it being called from my php.ini file.
However, I cannot get ffmpeg showing in php and of course, videos don't get converted. I get the uploaded video, but nothing from there, and no debug.txt info being created. I just presume that the php calls to ffmpeg are not going where they're supposed to.
But I don't know how to fix it, and wondering if anyone can give me a hint about where to begin to look.
I *was* writing an excellent tutorial on how to install everything but obviously I need to figure it out myself first... heh.
I get the following when I run "make test" after running "make" on the ffmpeg-php files:
Code:
FAILED TEST SUMMARY
---------------------------------------------------------------------
ffmpeg animatedGif [tests/animatedGif.phpt]
ffmpeg getAudioBitRate test [tests/getAudioBitRate.phpt]
ffmpeg getAudioSampleRate test [tests/getAudioSampleRate.phpt]
ffmpeg getFrame cropping test [tests/getFrameCrop.phpt]
ffmpeg getFrameResampled test [tests/getFrameResampled.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 getPTS test [tests/getPTS.phpt]
ffmpeg getVideoBitRate test [tests/getVideoBitRate.phpt]
ffmpeg persistent movie test [tests/persistentMovie.phpt]
Although, it still installs if I run "make install".
No idea where to start looking at this one ... hope someone here has run into this.
-
-
Re: Ffmpeg-php issues
Yah, familiar with that last one (don't think the other two links work any more) and it's in fact the instructions I followed in the installation. Somehow the ffmpeg-php, although installed according to the steps, is still not working, don't know where to look.
At first I wondered if it was my using php5... not sure if phpize works the same way as in Php4
-
Re: Ffmpeg-php issues
-
Re: Ffmpeg-php issues
Thanks, Leki... I got the ffmpeg to work (the problem in fact was a codec that wound up installed in the wrong folder) but now when I go to convert videos, it's getting to the step "create thumbnail" then just dying.
Code:
2007-09-04 21:16:32 Running cron.php
2007-09-04 21:16:32 CRON: 0
2007-09-04 21:16:32 Video (3) Conversion starting...
2007-09-04 21:16:32 File: /home/thewall/public_html/video/Consuela9.wmv
2007-09-04 21:16:32 -------------------------------------------------------------
2007-09-04 21:16:32 UPDATE video SET
UID='2',
space = '7',
addtime='1188965792',
adddate='2007-09-04',
vkey='1614500356',
active='0'
where VID=3
2007-09-04 21:16:32 -------------------------------------------------------------
2007-09-04 21:16:32 Video id: 3
2007-09-04 21:16:32 Calling ffmpeg-php -> ffmpeg_movie()
2007-09-04 21:16:32 Get video duration - START
2007-09-04 21:16:32 Get video duration - END
2007-09-04 21:16:32 DURATION: 0
2007-09-04 21:16:32 Create Thumbnail - START
It's not getting the duration of the movie, and not creating the thumbnails, certainly not converting. And that's as far as it gets.... in the admin panel it's just listed as "converting" but isn't really. No thumbnails are actually created (although GD is installed - http://thewall.net/phpinfo.php )
sigh... thanks for your attention to this! Guess I'll figure it out eventually, maybe someone here can post something that helps.
Miss being able to search the old posts but do like the new forum better...
-
Re: Ffmpeg-php issues
WOO-HOOOO! Finally - my last post actually clued me in to the problem, because it was the first time I noticed that it wasn't grabbing the video duration. So that told me the problem had to do with ffmpeg. I basically did a MAKE DISTCLEAN on everything and re-compiled. Everything seems to be running fine now, got a really nice wmv, checking out other codecs now.
For me the issue was that several of these long instructional pages have you configure ffmpeg with --disable-mmx instructions, which kills several of the ffmpeg functions. I think that's what happened. I recompiled without that, and it worked fine.
Appreciate having this forum even just to dope things out :)
Perhaps you should add a category called "Pre-Requisites Support" and include forums for "audio codecs", "ffmpeg", "mplayer/mencoder", "ruby / flvtool2", and "ffmpeg-php" so we can discuss the various issues with each of those programs, without having to hunt and peck through all the other threads.
Stil say I can't believe this program and all this support is only $10. I'm getting ready to buy my fourth license....