                      continue
                  logger.error("There was a problem muxing audio. The output video has been "
                               "created but you will need to mux audio yourself either with the "
                               "EFFMpeg tool or an external application.")
                  os.rename(self.video_tmp_file, self.video_file)
              break
          logger.debug("Removing temp file")
          if os.path.isfile(self.video_tmp_file):
              os.remove(self.video_tmp_file)
  
 
</s> remove         if os.path.isfile(self.video_tmp_file):
            os.remove(self.video_tmp_file)
 </s> add         if os.path.isfile(self._video_tmp_file):
            os.remove(self._video_tmp_file) </s> remove         if self.frame_ranges is not None:
 </s> add         if self._frame_ranges is not None: </s> remove     def _rename_tmp_file(self):
 </s> add     def _rename_tmp_file(self) -> None: </s> remove         os.rename(self.video_tmp_file, self.video_file)
 </s> add         os.rename(self._video_tmp_file, self._output_filename) </s> remove         if os.path.isfile(self.video_tmp_file):
            os.remove(self.video_tmp_file)
 </s> add         if os.path.isfile(self._video_tmp_file):
            os.remove(self._video_tmp_file)
                os.rename(self._video_tmp_file, self._output_filename)
                      continue
                  logger.error("There was a problem muxing audio. The output video has been "
                               "created but you will need to mux audio yourself either with the "
                               "EFFMpeg tool or an external application.")
                os.rename(self._video_tmp_file, self._output_filename)
              break
          logger.debug("Removing temp file")
          if os.path.isfile(self.video_tmp_file):
              os.remove(self.video_tmp_file)
  
keep keep keep keep replace keep keep keep keep keep
 ffmpeg writer: Create new filename if output pre-exists 
plugins/convert/writer/ffmpeg.py