How to convert videos efficiently