added an optional parameter for the path on which the video files should
be recorded