mirror of
https://github.com/facefusion/facefusion.git
synced 2026-07-27 04:21:03 +02:00
unify the dependency checks in pre_check and add ffprobe (#1181)
This commit is contained in:
+4
-7
@@ -90,13 +90,10 @@ def pre_check() -> bool:
|
||||
logger.error(translator.get('python_not_supported').format(version = '3.10'), __name__)
|
||||
return False
|
||||
|
||||
if not shutil.which('curl'):
|
||||
logger.error(translator.get('curl_not_installed'), __name__)
|
||||
return False
|
||||
|
||||
if not shutil.which('ffmpeg'):
|
||||
logger.error(translator.get('ffmpeg_not_installed'), __name__)
|
||||
return False
|
||||
for dependency in [ 'curl', 'ffmpeg', 'ffprobe' ]:
|
||||
if not shutil.which(dependency):
|
||||
logger.error(translator.get('dependency_not_installed').format(dependency = dependency), __name__)
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
|
||||
@@ -6,8 +6,7 @@ LOCALES : Locales =\
|
||||
{
|
||||
'conda_not_activated': 'conda is not activated',
|
||||
'python_not_supported': 'python version is not supported, upgrade to {version} or higher',
|
||||
'curl_not_installed': 'curl is not installed',
|
||||
'ffmpeg_not_installed': 'ffmpeg is not installed',
|
||||
'dependency_not_installed': '{dependency} is not installed',
|
||||
'creating_temp': 'creating temporary resources',
|
||||
'extracting_frames': 'extracting frames with a resolution of {resolution} and {fps} frames per second',
|
||||
'extracting_frames_succeeded': 'extracting frames succeeded',
|
||||
|
||||
Reference in New Issue
Block a user