              frame = os.path.basename(filename)
              if self.extract_faces:
                  convert_item = self.detect_faces(filename)
              else:
                  convert_item = self.alignments_faces(filename, frame)
  
              if not convert_item:
                  continue
              image, detected_faces = convert_item
  
 
</s> remove                 convert_item = self.detect_faces(filename)
 </s> add                 detected_faces = self.detect_faces(filename, image) </s> remove             if not convert_item:
 </s> add             if not detected_faces: </s> remove             image, detected_faces = convert_item
 </s> add  </s> remove     def detect_faces(self, filename):
 </s> add     @staticmethod
    def detect_faces(filename, image): </s> remove         image = self.images.load_one_image(filename)
 </s> add 
                detected_faces = self.alignments_faces(frame, image)
              frame = os.path.basename(filename)
              if self.extract_faces:
                  convert_item = self.detect_faces(filename)
              else:
                detected_faces = self.alignments_faces(frame, image)
  
              if not convert_item:
                  continue
              image, detected_faces = convert_item
  
keep keep keep keep replace keep keep keep keep keep
 Add ability to extract from and convert from a video file (#559)

* Add ability to extract from and convert from a video file

* Update cli helptext. Add filebrowser button for GUI input

* Add video support to Alignments Tool 
scripts/convert.py