added condition input format and mp4 conversion