diff options
| author | jvoisin | 2018-10-18 19:19:56 +0200 |
|---|---|---|
| committer | jvoisin | 2018-10-22 12:58:01 +0200 |
| commit | e70ea811c99c16f3382c08153eda573df0825536 (patch) | |
| tree | f1c05ca94b9d2ab09f74cfa6c7191bf73bf104e2 /libmat2/parser_factory.py | |
| parent | 2ae5d909c3e30c009bfc45bceba96ddd82f3e198 (diff) | |
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.
Diffstat (limited to 'libmat2/parser_factory.py')
| -rw-r--r-- | libmat2/parser_factory.py | 2 |
1 files changed, 2 insertions, 0 deletions
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(): | |||
| 18 | continue | 18 | continue |
| 19 | elif fname.endswith('__init__.py'): | 19 | elif fname.endswith('__init__.py'): |
| 20 | continue | 20 | continue |
| 21 | elif fname.endswith('exiftool.py'): | ||
| 22 | continue | ||
| 21 | basename = os.path.basename(fname) | 23 | basename = os.path.basename(fname) |
| 22 | name, _ = os.path.splitext(basename) | 24 | name, _ = os.path.splitext(basename) |
| 23 | importlib.import_module('.' + name, package='libmat2') | 25 | importlib.import_module('.' + name, package='libmat2') |
