#NEWLINE# @ staticmethod #NEWLINE# def createFrom( sourceMediaFile = None , destinationMediaFile = None ) : #NEWLINE# #INDENT# '\n        Creates a FFMPEGCLIBuilder instance from both media files\n        @param sourceMediaFile Source MediaFile object\n        @param destinationMediaFile Destination MediaFile object\n        @return FFMPEGCLIBuilder instance\n        ' #NEWLINE# ffmpegclgenerator = FFMPEGCLGenerator ( ) #NEWLINE# iVideoStreams = sourceMediaFile . getVideoStreams ( ) #NEWLINE# iAudioStreams = sourceMediaFile . getAudioStreams ( ) #NEWLINE# oVideoStreams = destinationMediaFile . getVideoStreams ( ) #NEWLINE# oAudioStreams = destinationMediaFile . getAudioStreams ( ) #NEWLINE# ffmpegclgenerator . addInputFile ( sourceMediaFile . getFileName ( ) ) #NEWLINE# for dV in oVideoStreams : #NEWLINE# #INDENT# if ( dV . getCodecName ( ) != None ) : #NEWLINE# #INDENT# ffmpegclgenerator . addOutputVideoCodec ( dV . getCodecName ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# for dV in oAudioStreams : #NEWLINE# #INDENT# if ( dV . getCodecName ( ) != None ) : #NEWLINE# #INDENT# ffmpegclgenerator . addOutputAudioCodec ( dV . getCodecName ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# ffmpegclgenerator . addOutputFile ( destinationMediaFile . getFileName ( ) ) #NEWLINE# return destinationMediaFile