@staticmethod
    def createFrom(sourceMediaFile=None, destinationMediaFile=None):
        ffmpegclgenerator = FFMPEGCLGenerator()
        iVideoStreams = sourceMediaFile.getVideoStreams()
        iAudioStreams = sourceMediaFile.getAudioStreams()
        oVideoStreams = destinationMediaFile.getVideoStreams()
        oAudioStreams = destinationMediaFile.getAudioStreams()

        # Process input media file
        ffmpegclgenerator.addInputFile(sourceMediaFile.getFileName())

        # Process output media file
        for dV in oVideoStreams:
            if dV.getCodecName() != None:
                ffmpegclgenerator.addOutputVideoCodec(dV.getCodecName())

        for dV in oAudioStreams:
            if dV.getCodecName() != None:
                ffmpegclgenerator.addOutputAudioCodec(dV.getCodecName())

        ffmpegclgenerator.addOutputFile(destinationMediaFile.getFileName())
        return ffmpegclgenerator
Creates a FFMPEGCLIBuilder instance from both media files
dataset/ETHPy150Open davidandreoletti/pyffmpeg/ffmpeg/cl/ffmpegclgenerator.py/FFMPEGCLGenerator.createFrom