added input file video mode