FFmpeg-php

Well when I install my ffmpeg-php it always gives failed test ect.. but the ffmpeg works I just dont get it lol. Thought that I might throw this out there I have googled it many times. Also I am trying to clean up my site a little bit with a .htaccess file for some reson it just wont work.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Scott Dowdle's picture

Getting to know ffmpeg

I use ffmpeg quite a bit for re-encoding video from one format to another. It works quite well. I know there are some GUIs out there for it, especially on Windows and Mac... but I've mostly used the command line.

What is it you are wanting to do with ffmpeg-php?


ffmpeg-php

Well I use the ffmpeg to convert video and pull preview images ect... I have a couple projects I guess One is a open source video site That have made from scratch"almost done". The other is a plugin for sites. But when ever I install the ffmpeg-php and do a "make test" the mod_ssl and ect.. fail in the test but the thing works with the failed tests. Just dont get it lol.


re ffmpeg-php

Well I have figured out what I needed to know so here is some example code that i have made that I thought that I would share maybe somebody would find helpfull. :)

///ffmpeg-php stuff
if ($which_id1 == 'phpflavor_divx') {

extension_loaded('ffmpeg') or die('Error in loading ffmpeg');
$Path = Raw_path();
$Movie = $Path.'/uploads/sd/'.$video_play;
$ffmpegInstance = new ffmpeg_movie($Movie);
$Duration = "Duration: " . $ffmpegInstance->getDuration();
$FrameCount = "Frame Count: " . $ffmpegInstance->getFrameCount();
$FrameRate = "Frame Rate: " . $ffmpegInstance->getFrameRate();
$FrameHeight = "Frame Height: " . $ffmpegInstance->getFrameHeight();
$FrameWidth = "Frame Width: " . $ffmpegInstance->getFrameWidth();
$BitRate = "Bit Rate: " . $ffmpegInstance->getBitRate();

}


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.