Record size when in motion detect

I am trying to record when motion is detekterede, my object is in motion about 30 minuts and i want to have one record of this. as it is now the records is cut in 5-15 sec. pices. can someone tell me what i am doing wrong.

The movement of the object do not trigger the system for motion detection again. Therefore, the small files. In the Configuration -> Motion detection you have Signal Bar Position. Default is hidden. Change that so it is visible in the image. Now you can see when motion detection is triggered and a recording start.
Try also to increase the Trigg Duration and see what happens. If another motion detection is triggered within that time frame the recording continues.