          logger.debug("Loaded plugins: %s", self.adjustments)
  
      def process(self, in_queue, out_queue):
          """ Process items from the queue """
          logger.debug("Starting convert process. (in_queue: %s, out_queue: %s)",
                       in_queue, out_queue)
          while True:
              item = in_queue.get()
              if item == "EOF":
                  logger.debug("EOF Received")
                  logger.debug("Patch queue finished")
 
</s> remove     def process(self, in_queue, out_queue):
 </s> add     def process(self, in_queue, out_queue, completion_queue=None): </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             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()
 </s> add             retval = int(im_ffm.count_frames_and_secs(self.args.input_dir)[0])
        logger.debug("Starting convert process. (in_queue: %s, out_queue: %s, completion_queue: "
                     "%s)", in_queue, out_queue, completion_queue)
          logger.debug("Loaded plugins: %s", self.adjustments)
  
      def process(self, in_queue, out_queue):
          """ Process items from the queue """
        logger.debug("Starting convert process. (in_queue: %s, out_queue: %s, completion_queue: "
                     "%s)", in_queue, out_queue, completion_queue)
        logger.debug("Starting convert process. (in_queue: %s, out_queue: %s, completion_queue: "
                     "%s)", in_queue, out_queue, completion_queue)
          while True:
              item = in_queue.get()
              if item == "EOF":
                  logger.debug("EOF Received")
                  logger.debug("Patch queue finished")
keep keep keep keep replace replace keep keep keep keep keep
 bugfix: Stop convert hanging at the last few frames on some input videos 
lib/convert.py