dont fail with f2t 0.27

This commit is contained in:
j 2012-03-23 23:00:54 +01:00
parent e1cc6a07be
commit 224fcf7955

View file

@ -68,7 +68,7 @@ def avinfo(filename):
ffmpeg2theora = local
p = subprocess.Popen([ffmpeg2theora], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
info, error = p.communicate()
version = info.split('\n')[0].split(' ')[-1]
version = info.split('\n')[0].split(' - ')[0].split(' ')[-1]
if version < '0.27':
raise EnvironmentError('version of ffmpeg2theora needs to be 0.27 or later, found %s' % version)
p = subprocess.Popen([ffmpeg2theora, '--info', filename],