  
          position = tqdm["pct"].replace("%", "")
          position = int(position) if position.isdigit() else 0
  
          self.statusbar.progress_update(msg, position, True)
          logger.trace("Succesfully captured tqdm message: %s", msg)
          return True
  
      def capture_ffmpeg(self, string):
          """ Capture tqdm output for progress bar """
          logger.trace("Capturing ffmpeg")
 
</s> remove     def capture_ffmpeg(self, string):
        """ Capture tqdm output for progress bar """
        logger.trace("Capturing ffmpeg")
        ffmpeg = self.consoleregex["ffmpeg"].findall(string)
 </s> add     def _capture_ffmpeg(self, string: str) -> bool:
        """ Capture ffmpeg output for progress bar

        Parameters
        ----------
        string: str
            An output line read from stdout

        Returns
        -------
        bool
            ``True`` if an ffmpeg line was captured from stdout, otherwise ``False``
        """
        logger.trace("Capturing ffmpeg")  # type:ignore[attr-defined]
        ffmpeg = self._consoleregex["ffmpeg"].findall(string) </s> remove     def capture_tqdm(self, string):
        """ Capture tqdm output for progress bar """
        logger.trace("Capturing tqdm")
        tqdm = self.consoleregex["tqdm"].match(string)
        if not tqdm:
 </s> add     def _capture_tqdm(self, string: str) -> bool:
        """ Capture tqdm output for progress bar

        Parameters
        ----------
        string: str
            An output line read from stdout

        Returns
        -------
        bool
            ``True`` if a tqdm line was captured from stdout, otherwise ``False``
        """
        logger.trace("Capturing tqdm")  # type:ignore[attr-defined]
        mtqdm = self._consoleregex["tqdm"].match(string)
        if not mtqdm: </s> remove             logger.trace("Not ffmpeg message. Returning False")
 </s> add             logger.trace("Not ffmpeg message. Returning False")  # type:ignore[attr-defined] </s> remove             hrs = "00"
            mins = "00"
            secs = "00"
 </s> add             hrs = mins = secs = "00" </s> remove         tqdm = tqdm.groupdict()
 </s> add         tqdm = mtqdm.groupdict()
        self._statusbar.progress_update(msg, position, True)
        logger.trace("Succesfully captured tqdm message: %s", msg)  # type:ignore[attr-defined]
  
          position = tqdm["pct"].replace("%", "")
          position = int(position) if position.isdigit() else 0
  
        self._statusbar.progress_update(msg, position, True)
        logger.trace("Succesfully captured tqdm message: %s", msg)  # type:ignore[attr-defined]
        self._statusbar.progress_update(msg, position, True)
        logger.trace("Succesfully captured tqdm message: %s", msg)  # type:ignore[attr-defined]
          return True
  
      def capture_ffmpeg(self, string):
          """ Capture tqdm output for progress bar """
          logger.trace("Capturing ffmpeg")
keep keep keep keep replace replace keep keep keep keep keep
 bugfix: GUI force stdout/stderr reading to utf-8 
lib/gui/wrapper.py