-
1. Re: using netstream appendBytes with mp4 file
Andrei1 Apr 14, 2011 9:22 PM (in response to tekCorap_)You cannot play mp4 container directly. If you look into documentation of appendBytes you will see that this method understands FLV headers only. This means that you need to create an FLV header at runtime and append mp4's payload after that.
In any case, this is a very tedious task and you are better off sticking with OSMF framework that does that (it is open source).
-
2. Re: using netstream appendBytes with mp4 file
Andrei1 Apr 14, 2011 9:24 PM (in response to tekCorap_)Another thing. You are better posting this question on HTTP Dynamic Forum:
http://forums.adobe.com/community/flash/httpdynamicstreaming?view=discussions
-
3. Re: using netstream appendBytes with mp4 file
boidy947 Nov 4, 2011 7:07 AM (in response to Andrei1)hi andrei1,
is it possible to refine what you mean by "mp4's payload".
writing a standard flv-header (0x46, 0x4C, 0x56, 0x01, 0x05, 0x00, 0x00, 0x00, 0x09) is no problem at all, but what to write next?
which mp4-boxes are required? i guess "mdat" in some way, obviously.
any additional information / links?
thx
-
4. Re: using netstream appendBytes with mp4 file
Andrei1 Nov 4, 2011 10:34 AM (in response to boidy947)"is it possible to refine what you mean by "mp4's payload"."
by payload I mean bytes that mp4 codec specific bytes that follow header.
Adobe has documentation (PDF) that describes video file specs. I don't have a link to it ready but you can find it on their site. Again, reverse-engineering OSMF code provides deeper insight in how bytearray may be handled.

