LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2008, 06:01 AM   #1
ulver
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Rep: Reputation: 0
ffmpeg-php problems


Hi, I have installed ffmpeg from source using some custon config on my server;

Code:
FFmpeg version SVN-r13737, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --enable-libmp3lame --enable-libtheora --enable-liba52 --enable-libgsm --enable-postproc --enable-libxvid --enable-libfaac --enable-pthreads --enable-libvorbis --enable-libfaad --enable-gpl --enable-x11grab --enable-nonfree --enable-libamr-nb --enable-libamr-wb --enable-shared
  libavutil version: 49.7.0
  libavcodec version: 51.57.2
  libavformat version: 52.16.0
  libavdevice version: 52.0.0
  built on Jun 10 2008 14:07:39, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
It worked perfectly, now I needed the ffmpeg-php extension so I downloaded it from http://downloads.sourceforge.net/ffm...php-0.6.0.tbz2

phpize
./configure
make
make install

than I edited /etc/php5/apache2/php.ini
and added the line extension=ffmpeg.so

when I do php -r 'phpinfo();' | grep ffmpeg i get

ffmpeg-php version => 0.6.0-svn
ffmpeg-php built on => Dec 17 2008 11:22:05
ffmpeg-php gd support => enabled
ffmpeg libavcodec version => Lavc51.57.2
ffmpeg libavformat version => Lavf52.16.0
ffmpeg swscaler => disabled
ffmpeg.allow_persistent => 0 => 0
ffmpeg.show_warnings => 0 => 0

So it looks like it is installed properly but in my code

Code:
$movie = new ffmpeg_movie($fullPath);

            var_dump($movie);

            var_dump($movie->getDuration());

            var_dump($movie->getFilename());

            var_dump(filesize($fullPath));

            var_dump($movie->getBitRate());
When I run it I get

Code:
string(39) "/var/www/dottv2/trle/web/uploads/cs.flv" object(ffmpeg_movie)#172 (1) { ["ffmpeg_movie"]=>  resource(173) of type (ffmpeg_movie) } float(O) string(O) "" int(12854883) int(O)
It returns 0 to all parametars, doesnt seem to work...

Can anyone help me, did I miss something here?
 
  


Reply

Tags
ffmpegphp



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-04-2008 05:16 PM
problem with ffmpeg-php fandar Linux - Software 0 07-24-2008 12:38 PM
FFMPEG-PHP "toGdImage()" error and many other problems JustinMs66 Linux - Server 0 03-07-2008 09:23 PM
PHP: Adding ffmpeg-php without re-compiling? vxc69 Linux - Software 2 05-17-2007 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration