mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 10:40:51 +00:00
better vapoursynth import error handling
This commit is contained in:
parent
3efa6e2e79
commit
a816e33a56
1 changed files with 8 additions and 8 deletions
|
@ -81,18 +81,18 @@ def check_exes(project: Project):
|
|||
try:
|
||||
import vapoursynth
|
||||
plugins = vapoursynth.get_core().get_plugins()
|
||||
|
||||
if project.chunk_method == 'vs_lsmash' and "systems.innocent.lsmas" not in plugins:
|
||||
print('lsmas is not installed')
|
||||
terminate()
|
||||
|
||||
if project.chunk_method == 'vs_ffms2' and "com.vapoursynth.ffms2" not in plugins:
|
||||
print('ffms2 is not installed')
|
||||
terminate()
|
||||
except ModuleNotFoundError:
|
||||
print('Vapoursynth is not installed')
|
||||
terminate()
|
||||
|
||||
if args.chunk_method == 'vs_lsmash' and "systems.innocent.lsmas" not in plugins:
|
||||
print('lsmas is not installed')
|
||||
terminate()
|
||||
|
||||
if args.chunk_method == 'vs_ffms2' and "com.vapoursynth.ffms2" not in plugins:
|
||||
print('ffms2 is not installed')
|
||||
terminate()
|
||||
|
||||
|
||||
def setup_encoder(project: Project):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue