Can't get a correct video, only few frames

Question

Hi,

First thanks for your app, it's very performant and customizable!

My problem is that the video produced after a motion detection is not "correct". I tried many configurations/encoding but I can't find a solution. I always get a video with only few frames (1 or 2 seconds of the input stream) even if the duration seems to be arround 30s. Not easy to explain, hope you understand!