check ffmpeg bin

This commit is contained in:
Jonathan Baecker 2019-11-12 13:23:04 +01:00
parent 72d7fdb391
commit ea8670b9f2

View File

@ -146,13 +146,13 @@ def ffmpeg_libs():
check which external libs are compiled in ffmpeg, check which external libs are compiled in ffmpeg,
for using them later for using them later
""" """
cmd = ['ffprobe', '-version'] cmd = ['ffmpeg', '-version']
libs = [] libs = []
try: try:
info = check_output(cmd).decode('UTF-8') info = check_output(cmd).decode('UTF-8')
except CalledProcessError as err: except CalledProcessError as err:
messenger.error('ffprobe - libs could not be readed!\n' messenger.error('ffmpeg - libs could not be readed!\n'
'Processing is not possible. Error:\n{}'.format(err)) 'Processing is not possible. Error:\n{}'.format(err))
sys.exit(1) sys.exit(1)