Results 1 to 6 of 6

Thread: Ffmpeg-php issues

  1. #1
    Join Date
    May 2007
    Posts
    394

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

  2. #2
    Join Date
    May 2007
    Posts
    588

  3. #3
    Join Date
    May 2007
    Posts
    394

    Default 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

  4. #4
    Join Date
    May 2007
    Posts
    588

    Default Re: Ffmpeg-php issues


  5. #5
    Join Date
    May 2007
    Posts
    394

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

  6. #6
    Join Date
    May 2007
    Posts
    394

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

Similar Threads

  1. FFMPEG / FFMPEG-PHP issues
    By mersh in forum Installation Support
    Replies: 6
    Last Post: 12-10-2008, 10:40 PM
  2. HELP!!..how to install ffmpeg and ffmpeg-php on windows XP?
    By lester in forum Installation Support
    Replies: 1
    Last Post: 04-23-2008, 04:35 AM
  3. Some Issues
    By den48248 in forum Installation Support
    Replies: 1
    Last Post: 01-29-2008, 12:11 PM
  4. Fatal Error ffmpeg and ffmpeg-php
    By zebz in forum Installation Support
    Replies: 5
    Last Post: 08-07-2007, 08:09 PM
  5. Why so many issues in IE?
    By Pari in forum Fixed Bugs
    Replies: 4
    Last Post: 06-20-2007, 03:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •