add option to specify the minimum disk space at which recording is stopped