def __init__(self, filename: str, **kwargs) -> None: self._reader = None super().__init__(filename=filename, **kwargs) self._reader = imageio.get_reader(filename) if self._reader is None: LOG.error("Opening movie file (%s) failed", filename) raise RuntimeError("Creating video reader object for file " f"'{filename}' failed.") self._meta = self._reader.get_meta_data() self._index = -1 LOG.debug("Reader object: %r", self._reader) LOG.info("Video file: %s", filename) LOG.info("FFMPEG backend version %s (%s)", imageio_ffmpeg.get_ffmpeg_version(), imageio_ffmpeg.get_ffmpeg_exe())
def test_ffmpeg_version(): version = imageio_ffmpeg.get_ffmpeg_version() print("ffmpeg version", version) assert version > "3.0"
def get_version_info(): """Get ffmpeg version info.""" return imageio_ffmpeg.get_ffmpeg_version()