I have a problem:
I record data from camera using MediaRecorder in my Android app. I save it in socket, not in file. This data's length may be different. At the other side of socket connection, I save it in file. Connection may be interrupted at any unexpected moment. So after android socket disconnection I try to decode received data using ffmpeg. But as I understood, it cant find moov atom in this file. I've read some info about moov, so I think that MediaRecorder puts moov atom in the end of file. But if recording was interrupted, writing moov atom was skipped.
I also have read that for data with unknown length (progressive loading, streaming) it is possible to write moov atom at the begining of the file.
How to write my own moov data into the stream? May I use MediaRecorder for this? Or it is neccessary to do it manualy? How to generate valid moov data? If anybody has already solved this problem, please give me advice..