      @property
      def images_found(self):
          """ Number of images or frames """
          if self.is_video:
              cap = cv2.VideoCapture(self.args.input_dir)  # pylint: disable=no-member
              retval = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))  # pylint: disable=no-member
              cap.release()
          else:
              retval = len(self.input_images)
          return retval
  
      def check_input_folder(self):
 
</s> remove             retval = int(self.vid_cap.get(cv2.CAP_PROP_FRAME_COUNT))  # pylint: disable=no-member
 </s> add             retval = int(im_ffm.count_frames_and_secs(self.folder)[0]) </s> remove from lib.queue_manager import queue_manager
 </s> add from lib.queue_manager import queue_manager, QueueEmpty </s> remove     def process(self, in_queue, out_queue):
 </s> add     def process(self, in_queue, out_queue, completion_queue=None): </s> remove         logger.debug("Starting convert process. (in_queue: %s, out_queue: %s)",
                     in_queue, out_queue)
 </s> add         logger.debug("Starting convert process. (in_queue: %s, out_queue: %s, completion_queue: "
                     "%s)", in_queue, out_queue, completion_queue)
            retval = int(im_ffm.count_frames_and_secs(self.args.input_dir)[0])
      @property
      def images_found(self):
          """ Number of images or frames """
          if self.is_video:
            retval = int(im_ffm.count_frames_and_secs(self.args.input_dir)[0])
            retval = int(im_ffm.count_frames_and_secs(self.args.input_dir)[0])
            retval = int(im_ffm.count_frames_and_secs(self.args.input_dir)[0])
          else:
              retval = len(self.input_images)
          return retval
  
      def check_input_folder(self):
keep keep keep keep replace replace replace keep keep keep keep keep
 bugfix: Stop convert hanging at the last few frames on some input videos 
scripts/fsmedia.py