PHP4FFprobe
This is my bridge to run FFprobe from php.For those who don't know what's FFprobe is, this is a simple multimedia streams analyzer with a command-line interface based on the FFmpeg project libraries. I initialy wanted the filepositions but now we got a gui, that's the fault to Stefano that has catched my attention ;p
What's the news doc?
I - Basic usage for the impatient
- Browse from a webserver, these one of demo files:
- You will got errors because you need to change the path in lib/ffprobe.php to point your ffprobe directory
II - Requirements
-
FFprobe SVN
FFprobe binary is not provided , FFprobe from ffmpeg wont work here, so you will have to compile the SVN version (more up to date than ffprobe provided within the ffmpeg package) to make it work. To do so on windows, use Cygwin with all libs and dev tools included. First, it requires some libs from ffmpeg to compile correctly.
$ svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg $ cd ffmpeg $ ./configure --prefix=/usr --enable-shared $ make $ make install
don't forget to use --prefix=/usr -enable-shared when compiling ffmpeg else libs won't be seen by ffprobe.
I used svn to get the latest version like Michael Rampe recommended.$ svn co https://ffprobe.svn.sourceforge.net/svnroot/ffprobe/trunk ffprobe $ cd ffprobe $ ./configure --prefix=/usr --enable-shared $ make $ make install
This pulled down SVN-R92 of FFprobe.this version definitely does support the -show_frames option required here and -formats displays the list of Codecs needed to make the translation between codec_name and codec_type. PHP server
Of course,as php4ffpobe requires php so you will have also to use a WAMP or LAMP system. There is for sample Uwamp on windows. Regexp support is required.
III - FAQ
Compatibility?
I have not tested the php4 full compatibility, should be ok I presume.
Future?
I am lacking time and interests to get rid of gnuplot using graphpite. Hey, we have to do some choices sometimes,
I just pluged it into phpGnuplot.All is ready, need a volunteer to reproduce gnuplot features by expanding graphpite, anyone?Imppressive?
Not yet? Let's solve this with these screenshots.
Homepage?
Visit the PHP4FFprobe's homepage to follow my evolutions on this crazy project.Funny story?
So let's talk by finishing with the greetings and things great... I would like to thanks Michael Rampe for sharing this and Stefano Sabatini for his great ffprobe tool (and the first answer he gave me on #ffmpeg ! doh I was facing the ffprobe's author without knowing it ;p ) , Usually, like incredible things I do, nothing was planned before. However, my strategy still remains the same: when I meet nice people with nice project behind, I contribute. Thus, Stefano, I dedicate this project to you ant it is released under the terms of the license GPL so you can include my work as an extension in the ffprobe source tree. will be glad if you do so. Cheers, Actarus