I'm trying to play a MP4-Stream. The stream is send from my android phone. The problem is, that the moov atom, which is needed to play the mp4, is only written if the phone is done with the recording progress. So at the moment I'm only to play the streamed data, after the recording has finished. My idea was to write the ftyp and moov atom by myself, so that the streamed data can be played, while the phone is recording. I tried to use the moov atom from another videofile but this didn't work. I also have read, that normally it's impossible to build a moov atom, if only the mdat atom is given. But in my case I know the recording conditions, like framerate, etc..
So my question is, is it possible to generate a valid/useable moov atom for the incoming stream if I know the recording parameters?