I developed an application which records and displays a live video source (AVI: H264) using DirectShow. When I choose H264 as encoder and AVI as container, if I stop the graph; recorded video plays well. But if my application crashes; I can't play recorded video. I don't insist to use AVI or H264. What container and encoder do you suggest for recording a video which it's file is playable even application crashes while recording?
As you know most DVRs work this way. If you unplug a DVR, you can watch recorded video until last second before unplugging. How they store videos? What container/encoder they use for recording?
Thank you very much