From e70ea811c99c16f3382c08153eda573df0825536 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 18 Oct 2018 19:19:56 +0200 Subject: Implement support for .avi files, via ffmpeg - This commit introduces optional dependencies (namely ffmpeg): mat2 will spit a warning when trying to process an .avi file if ffmpeg isn't installed. - Since metadata are obtained via exiftool, this commit also refactors a bit our exfitool wrapper. --- libmat2/parser_factory.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmat2/parser_factory.py') diff --git a/libmat2/parser_factory.py b/libmat2/parser_factory.py index 621640b..4a0ca0d 100644 --- a/libmat2/parser_factory.py +++ b/libmat2/parser_factory.py @@ -18,6 +18,8 @@ def __load_all_parsers(): continue elif fname.endswith('__init__.py'): continue + elif fname.endswith('exiftool.py'): + continue basename = os.path.basename(fname) name, _ = os.path.splitext(basename) importlib.import_module('.' + name, package='libmat2') -- cgit v1.3