Create write_video.cpp