fix removing video device -> extension, fix writing to file again