I too am curious about this, but havn't attempted anything yet.
If you could find a command-line program which could extract frames from videos ( can mPlayer on *nix do this? ) then you could execute it using system() or exec() and read the frames in...
This link look promising:
http://getid3.sourceforge.net/
This note in the PHP getimagesize() user comments looks promising as well:
For those of you trying to derive the dimensions of a video file (e.g. Video for Windows AVI, Quicktime MOV, MPEG MPG, Windows Media Video WMV or ASF, etc.), you will find the getid3 library to be indispensible. Found at [url]http://getid3.sourceforge.net,[/url] here's an example of its use in a script:
include_once('getid3.php'); // or wherever you actually put the getid3 scripts
$file_location = './myvideo.avi';
$file_info = GetAllFileInfo($file_location) // calls getid3 function
$file_width = $file_info['video']['resolution_x'];
$file_height = $file_info['video']['resolution_y'];
You can then use your OBJECT and EMBED tags in HTML to put the video into a web page, and make the PHP template independent of the size parameters of the particular video it happens to be loading. (Just remember to add pixels to the video height to accomodate the controller of the embedded player: typically, 16 pixels for Quicktime, 46 pixels for Windows Media Player 6, and 64 pixels for Windows Media Player 7.
If you find out how to do this, please do share with the board, and if you wouldn't mind, shoot me an email, I'd be interested in hearing how you did it. postmaster@durdenwebapplications.com