improved config for encoding video