If nobody minds I will place my thoughts in this thread, Feel free to make suggestions.

I have downloaded Kstars source in the hope I can perhaps change the record button to record say n times R,G,B.

Perhaps duplicate the record toggle button. add a number of cycles and filter selections.

A messy hack I know, but....

1st step see if I can build this project.
2nd see if I can override the filter selection.
3rd run the video stream nxf times.