Hello everyone,
I'm currently working on the server side of an augmented reality project. It's a lot like http://www.livingsasquatch.com/. I'm using PHP/MySQL and FFmpeg to capture the webcam video and encoding it to .flv.
Basically Flash uploads the video as a long series of .jpg images. PHP then takes those images, generates a few thumbnails and passes them through FFmpeg which converts them to a single .flv file.
Here is the FFmpeg code:
$ffmpeg_images = $image_directory.'/image%d.jpg';
@unlink($video_directory."/$video_id.flv");
$ffmpeg_video = $video_directory."/$video_id.flv";
$ffmpeg_string = FFMPEG_PATH." -f image2 -i $ffmpeg_images -f flv $ffmpeg_video";
@exec($ffmpeg_string);
This seems to be working nicely in my tests, but I don't know how we'll it will scale. Since this is my first time using FFmpeg, I don't know if video encoding this way will bring the server to its knees.
Does anyone have experience with FFmpeg on a high traffic site?
Is there a better way of handling this type of Webcam to .flv conversion?
Are there any examples of FFmpeg being used on a high traffic site?
Thanks for your time!