How can I record and save flash video's with an H264 codec

Posted by JimHendriks on Stack Overflow See other posts from Stack Overflow or by JimHendriks
Published on 2012-01-31T15:56:59Z Indexed on 2012/09/09 9:38 UTC
Read the original article Hit count: 144

Filed under:
|
|
|

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.

This sequence works fine with the standard Sorenson codec but I want to use H.264 for my videos. I found lots example c ode and implemented it in my code, but when I record a video of myself I am unable to re-watch it afterwards.

I found how to implement a H.264 encoding in a realeyes blog post here. My code is here.

It saves the video as a .f4v 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.

Here is an example video file it saved: H264Test1.f4v.

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?

© Stack Overflow or respective owner

Related posts about flash

Related posts about actionscript-3