Hi, I am able to record with the MediaRecorder the video with Audio using H263 Encoding, THREE_GPP Outputformat and Audio Encoding AMR.
I have built minimal RTP Stack with help from Sipdroid Source Code. The recorder streams to a LocalSocket from which I can read the InputStream. My Thread is mostly the same as with Sipdroid and is able to send at least "correct" RTP Datagrams over the net. When I try to save the payload to view wether that payload is correct Videostream VLC tells me there is no moov box. So I guess in anyway my main problem resides to setting correct payload headers, but I don't really know how. >From >http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system I have found that: "In order to play the output THREE_GPP, you're going to need to first create the header in the first 28 bytes prior to the mdat atom (which should all be zeros). 00 00 00 18 66 74 79 70 33 67 70 34 00 00 03 00 33 67 70 34 33 67 70 36 00 02 F1 4D 6D The 6D is the 'm' first byte in the mdat atom. The four bytes proceeding that need to be modified to include the integer value of the byte in your stream containing the output moov atom (Which should be output upon stopping the recording). As long as this header is correctly set, and the player can locate the moov atom- everything should play back correctly." which I assumed to just put the given 28 bytes after the RTP Header. Maybe something is missing or do I have to modify anything dynamically in this header? As he says the four bytes proceeding the "6D" need to be modified, but what has to be put in there? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en