it is capable of choosing the codec with just writing the extension