avconv: switch opening decoders and encoders