How to append to avi and jump to time frame?

How to append to avi and jump to time/frame using maixpy?
Also I want to know how to record audio via microphone as in avi as well in separate audio file
There is no any example how you se build in microphone