def encode(self, path_to_video):
    video_filename = os.path.basename(path_to_video)
    video_filename = video_filename.split('.')[0]
    (images, metadata) = self.video_loader.load_images(path_to_video)
    rep_indices = self.preprocessor.run(images, video_filename)
    self.compressor.run(images, rep_indices, metadata)
def encode(self, path_to_video):
    video_filename = os.path.basename(path_to_video)
    video_filename = video_filename.split('.')[0]
    (images, metadata) = self.video_loader.load_images(path_to_video)
    rep_indices = self.preprocessor.run(images, video_filename)
    self.compressor.run(images, rep_indices, metadata)