Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_ffmpeg(location):
- tar_file = client.file(location).getFile().name
- retcode = subprocess.call(['tar', '-xvf', tar_file, '-C', '/tmp'])
- if retcode == 0:
- ffmpeg_file = '/tmp/ffmpeg-static/ffmpeg'
- os.environ["PATH"] += os.pathsep + ffmpeg_file
- # for testing
- subprocess.call(['ffmpeg'])
- else:
- raise AlgorithmError('tar exited with code %d' % retcode)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement