A demo with function that convert local image to video and play it