diff --git a/ox/file.py b/ox/file.py index 45f3591..5c95b43 100644 --- a/ox/file.py +++ b/ox/file.py @@ -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],