Ignore .bmp and .mp4 files.
Create output file if it doesn't exist.