In debug log, if you see
Initialize ffmpeg - Begin
as last line, your ffmpeg-php is not installed properly.
ffmpeg-php depends on ffmpeg. So problem can be with ffmpeg or ffmpeg-php installation.
To verify the problem, create a php file with following content
Code:
<?php
$path = "/path/to/a/video/on/server/3.mpg";
$mov = new ffmpeg_movie($path);
echo "<pre>";
echo "
getDuration: " . $mov->getDuration() .
"
getFrameCount: " . $mov->getFrameCount() .
"
getFrameRate: " . $mov->getFrameRate() .
"
getFilename: " . $mov->getFilename() .
"
getComment: " . $mov->getComment() .
"
getTitle: " . $mov->getTitle() .
"
getAuthor: " . $mov->getAuthor() .
"
getCopyright: " . $mov->getCopyright() .
"
getArtist: " . $mov->getArtist() .
"
getGenre: " . $mov->getGenre() .
"
getTrackNumber: " . $mov->getTrackNumber() .
"
getYear: " . $mov->getYear() .
"
getFrameHeight: " . $mov->getFrameHeight() .
"
getFrameWidth: " . $mov->getFrameWidth() .
"
getPixelFormat: " . $mov->getPixelFormat() .
"
getBitRate: " . $mov->getBitRate() .
"
getVideoBitRate: " . $mov->getVideoBitRate() .
"
getAudioBitRate: " . $mov->getAudioBitRate() .
"
getAudioSampleRate: " . $mov->getAudioSampleRate() .
"
getVideoCodec: " . $mov->getVideoCodec() .
"
getAudioCodec: " . $mov->getAudioCodec() .
"
getAudioChannels: " . $mov->getAudioChannels() .
"
hasAudio: " . $mov->hasAudio();
?>
$path = "/path/to/a/video/on/server/3.mpg";
This is path to uploded video file. You can upload one by FTP or you can see uploded file location in your debug log (templates_c/debug.txt)
VIDEO LOCATION = /home/bizhat/public_html/video/1.wmv
In this case replace
$path = "/path/to/a/video/on/server/3.mpg";
With
$path = "/home/bizhat/public_html/video/1.wmv";
Upload the php script to your server and run it, it should show information about the video, if not your ffmpeg or ffmpeg-php installation is not proper.
Bookmarks