File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -360,14 +360,9 @@ def get_extensions():
360
360
has_ffmpeg = False
361
361
if has_ffmpeg :
362
362
try :
363
- # this splits on both dots and spaces as the output format differs across versions / platforms
364
- ffmpeg_version_str = str (subprocess .check_output (["ffmpeg" , "-version" ]))
365
- ffmpeg_version = re .split (r"ffmpeg version |\.| |-" , ffmpeg_version_str )[1 :3 ]
366
- ffmpeg_version = "." .join (ffmpeg_version )
367
- if StrictVersion (ffmpeg_version ) >= StrictVersion ('4.3' ):
368
- print (f'ffmpeg { ffmpeg_version } not supported yet, please use ffmpeg 4.2.' )
369
- has_ffmpeg = False
370
- except (subprocess .CalledProcessError , IndexError , ValueError ):
363
+ # This is to check if ffmpeg is installed properly.
364
+ subprocess .check_output (["ffmpeg" , "-version" ])
365
+ except subprocess .CalledProcessError :
371
366
print ('Error fetching ffmpeg version, ignoring ffmpeg.' )
372
367
has_ffmpeg = False
373
368
You can’t perform that action at this time.
0 commit comments