Should have set output_codec as well.