write proccessed frames to video