now handles videos and does copy to tmp filename and then renames to final name