                  break
              save_no = self.frame_order.pop(0)
              save_image = self.cache.pop(save_no)
              logger.trace("Rendering from cache. Frame no: %s", save_no)
              self.writer.append_data(save_image[:, :, ::-1])
          logger.trace("Current cache size: %s", len(self.cache))
  
      def close(self):
          """ Close the ffmpeg writer and mux the audio """
          self.writer.close()
 
</s> remove     def close(self):
 </s> add     def close(self) -> None: </s> remove             save_no = self.frame_order.pop(0)
 </s> add             save_no = self._frame_order.pop(0) </s> remove         self.writer.close()
        self.mux_audio()
 </s> add         self._writer.close()
        self._mux_audio()

    def _mux_audio(self) -> None:
        """ Mux audio the audio to the generated video temp file. </s> remove         self.output_dimensions = "{}:{}".format(
            int(ceil(frame_dims[1] / 16) * 16),
            int(ceil(frame_dims[0] / 16) * 16))
        logger.debug("Set dimensions: %s", self.output_dimensions)

    def save_from_cache(self):
        """ Save all the frames that are ready to be output from cache """
        while self.frame_order:
            if self.frame_order[0] not in self.cache:
 </s> add         self._output_dimensions = (f"{int(ceil(frame_dims[1] / 16) * 16)}:"
                                   f"{int(ceil(frame_dims[0] / 16) * 16)}")
        logger.debug("Set dimensions: %s", self._output_dimensions)

    def _save_from_cache(self) -> None:
        """ Writes any consecutive frames to the video container that are ready to be output
        from the cache. """
        while self._frame_order:
            if self._frame_order[0] not in self.cache: </s> remove     def mux_audio(self):
        """ Mux audio
 </s> add 
            self._writer.append_data(save_image[:, :, ::-1])
                  break
              save_no = self.frame_order.pop(0)
              save_image = self.cache.pop(save_no)
              logger.trace("Rendering from cache. Frame no: %s", save_no)
            self._writer.append_data(save_image[:, :, ::-1])
          logger.trace("Current cache size: %s", len(self.cache))
  
      def close(self):
          """ Close the ffmpeg writer and mux the audio """
          self.writer.close()
keep keep keep keep replace keep keep keep keep keep
 ffmpeg writer: Create new filename if output pre-exists 
plugins/convert/writer/ffmpeg.py