Im currently working on creating a web based game in flex. One of the features of the game is for it to be able to record the gameplay and have it on flv video file. This has been done thru capturing every frames of the game, having it on a bitmapdata object, then encoding it on a bytearray in a FLV format then saving it as a file.
Currently though, the generated flv video file is larger than usual, bout 4mb for 10sec video. This is because Ive only used Screen Video codec to encode the bitmapData into a FLV format. I want it to be smaller to save memory space as all recorded vids is intended to be in a webserver.
What Im trying to do now is to use h.264 encoding instead of screen video. To write bitmapdata as frames to H.264 encoding. After some research, I found about x264 library.
Now, I want to ask if it is possible to use x264 in a Flex project? If it is how will I use it? Do I need to migrate the x264 source into a action script before I can use its APIs? Or can I import the x264vfw.dll library directly in my flex project then use its APIs? If its not feasible at all to use x264 in flex what other options do i have?
Some examples on how x264 could be use in a flex project would be great. =)
Thanks.