optimize video metadata