title: How well does FFmpeg scale? Any examples?
body: <p>I'm currently working on the server side of an augmented reality project. It's a lot like <a href="http://www.livingsasquatch.com/" rel="nofollow noreferrer">http://www.livingsasquatch.com/</a>. I'm using PHP/MySQL and FFmpeg to capture the webcam video and encoding it to .flv.</p>
  
  <p>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. </p>
  
  <p>Here is the FFmpeg code: </p>
  
  <pre><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);
  </code></pre>
  
  <p>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. </p>
  
  <p>Does anyone have experience with FFmpeg on a high traffic site? </p>
  
  <p>Is there a better way of handling this type of Webcam to .flv conversion?</p>
  
  <p>Are there any examples of FFmpeg being used on a high traffic site?</p>