title: How can I record and save flash video's with an H264 codec
body: <p>Right now I am working on an AIR 3.2 application which lets you stream a video to a Flash Media Server and saves it on a hard drive. </p>
  
  <p>This sequence works fine with the standard Sorenson codec but I want to use H.264 for my videos. I found lots example code and implemented it in my code, but when I record a video of myself I am unable to re-watch it afterwards.</p>
  
  <p>I found how to implement a H.264 encoding in a <a href="http://www.realeyes.com/blog/2011/10/31/new-in-flash-player-11-encoding-live-video-to-h-264avc/" rel="nofollow">realeyes blog post here</a>. My <a href="http://www.mediafire.com/?4arxodzi08ssion" rel="nofollow">code is here</a>.</p>
  
  <p>It saves the video as a <code>.f4v</code> file, but my browser (I've tried the latest versions of both Chrome and Firefox, with the latest Flash) and also VLC are unable to load the video. I also used a program called Movie Player which is able to open the file but can only show the first frame and the audio. Neither am I able to upload the video to YouTube because they do not support the file extension.</p>
  
  <p>Here is an example video file it saved: <a href="http://www.mediafire.com/?dq3d0a6sffulp18" rel="nofollow">H264Test1.f4v</a>.</p>
  
  <p>My question is: How do I stream and save the movie with a file extension that I am able to re-watch while using the H.264 codec?</p>