Hello, we are currently using mp4 and ffmpeg to generate replays, but there is one big downside - if the game crashes, the replay is corrupted. Do you know video format, which allows runtime generation of the video and if for some reason the game crashed, we still have working replay, which we can show? Generating the replay after the game has finished is not an option, because the player will have to wait a couple of seconds. Also we need the video to be compressed.
Based on my tests with ffmpeg, mkv is such option, but there are cases, where the video is corrupted and it does not know when to finish.
What is the best approach in this scenario? Should we write our own video format/player? Is there video format, which is more suitable for this case?