I am using MediaCaster with LiveStreamRecorder to write a native-RTP stream to an MP4 file. If the wowza server crashes during the streaming/recording then the MP4 file is left in a corrupt state (missing moov atom) and there is an .mp4.tmp file also. If I try to resume recording via recordStream() with append=true, it just deletes the previous partial recording.
This happens occasionally causing the loss of valuable video. For testing, I can reproduce the problem by sending "kill -9" to the wowza process.
Is there a way to recover such a partial MP4 recording?