I'm looking at the netstream documentation. but can't really glean if appendBytes() can really take arbitrary data. Could I really just take arbitrary bitmap data (as a byte array) and append the frame to stream (presumably before sending it to a FMS to save a file)? I think I am wrong: it's only useful for dynamic streaming. I know that it is possible to grab a webcam feed and directly encode video via FMS. But say I wanted to add some overlays before encoding, is that even possible in Flash? I.e. Can you dynamically generate netStream objects in Flash, or is the only thing you can do is draw bitmap data from a netStream and not vice-versa?
Basically the goal is to manipulate video and audio much like Movie Masher and save out actual video files directly. Movie Masher actually saves out single frames to the server for later conversion.
I've heard that FP11 has native H264 Encoding-- so the'spec' question: Could the final netStream be encoded in-browser then uploaded to the server over HTTP, or is FMS still a requirement? I'm looking at this realtime encoder demo, but I'm not sure if they're just using FMS as a filedump, or if it's part of the process.
There's an open source project for encoding FLV, it uses ByteArrayFlvEncoder which allows you to encode raw ByteArrays. Is there an equivalent for H264?