fix corrupted recorded videos on Mac