dont fail with f2t 0.27
This commit is contained in:
parent
e1cc6a07be
commit
224fcf7955
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ def avinfo(filename):
|
||||||
ffmpeg2theora = local
|
ffmpeg2theora = local
|
||||||
p = subprocess.Popen([ffmpeg2theora], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
p = subprocess.Popen([ffmpeg2theora], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
info, error = p.communicate()
|
info, error = p.communicate()
|
||||||
version = info.split('\n')[0].split(' ')[-1]
|
version = info.split('\n')[0].split(' - ')[0].split(' ')[-1]
|
||||||
if version < '0.27':
|
if version < '0.27':
|
||||||
raise EnvironmentError('version of ffmpeg2theora needs to be 0.27 or later, found %s' % version)
|
raise EnvironmentError('version of ffmpeg2theora needs to be 0.27 or later, found %s' % version)
|
||||||
p = subprocess.Popen([ffmpeg2theora, '--info', filename],
|
p = subprocess.Popen([ffmpeg2theora, '--info', filename],
|
||||||
|
|
Loading…
Reference in a new issue