  
      @property
      def _video_fps(self) -> float:
          """ float: The fps of the source video. """
          reader = imageio.get_reader(self._source_video, "ffmpeg")
          retval = reader.get_meta_data()["fps"]
          reader.close()
          logger.debug(retval)
          return retval
  
 
</s> remove         logger.trace("Loading video frame: %s", frame_no)  # type: ignore
        reader = imageio.get_reader(self._args.input_dir, "ffmpeg")
 </s> add         logger.trace("Loading video frame: %s", frame_no)  # type:ignore[attr-defined]
        reader = imageio.get_reader(self._args.input_dir, "ffmpeg")  # type:ignore[arg-type] </s> remove         frame = reader.get_next_data()[:, :, ::-1]
 </s> add         frame = reader.get_next_data()[:, :, ::-1]  # type:ignore[index] </s> remove         reader = imageio.get_reader(self._args.input_dir, "ffmpeg")
        for i, frame in enumerate(reader):
 </s> add         reader = imageio.get_reader(self._args.input_dir, "ffmpeg")  # type:ignore[arg-type]
        for i, frame in enumerate(cast(Iterator[np.ndarray], reader)): </s> remove         retval: list[str] = []
 </s> add         retval: List[str] = [] </s> remove                 logger.trace("Extracted frame_no %s from filename '%s'",  # type: ignore
                             frame_no, filename)
 </s> add                 logger.trace(  # type:ignore[attr-defined]
                    "Extracted frame_no %s from filename '%s'", frame_no, filename)
        reader = imageio.get_reader(self._source_video, "ffmpeg")  # type:ignore[arg-type]
  
      @property
      def _video_fps(self) -> float:
          """ float: The fps of the source video. """
        reader = imageio.get_reader(self._source_video, "ffmpeg")  # type:ignore[arg-type]
          retval = reader.get_meta_data()["fps"]
          reader.close()
          logger.debug(retval)
          return retval
  
keep keep keep keep replace keep keep keep keep keep
 tests:
  - unit test: tools.alignments.media
  - Add mypy test
  - Typing fixes 
plugins/convert/writer/ffmpeg.py