def encode(self, data):
        # Sometimes os.read gives us bytes under Python 3...and
        # sometimes it doesn't. ¯\_(ツ)_/¯
        if not isinstance(data, six.binary_type):
            # Can't use six.b because that just assumes latin-1 :(
            data = data.encode(self.encoding)
        return data
Adds output audio codec.
dataset/ETHPy150Open pyinvoke/invoke/invoke/runners.py/Runner.encode--crossover with--dataset/ETHPy150Open davidandreoletti/pyffmpeg/ffmpeg/cl/ffmpegclgenerator.py/FFMPEGCLGenerator.addOutputAudioCodec