I use the php_ffmpeg then I can get all the times and all the frames of an movie . As belows
$input_file='/home/strone/workspace/play/CI/abc.rmvb';
$ffmpegObj = new ffmpeg_movie($input_file);
echo $ffmpegObj->getDuration();
echo $ffmpegObj->getFrameCount();
And then the detail is on the page.