sample code to use saveVedio, that solves issue 2.