Beispiel #1
0
    def generate_output_file(self, input_image_file, input_video_file, output_file):
        try:
            controller = Controller()
            controller.add_observer(self)
            controller.generate_output_file(input_image_file, input_video_file, output_file)
            print "\nFile successfully created"

        except EmptyImageFileInputError:
            print "You didn't specified an input image file"

        except EmptyVideoFileInputError:
            print "You didn't specified an input video file."

        except EmptyFileOutputError:
            print "You didn't specified an output file."

        except:
            print "An unexpected error occurred. File could not be created."