import subprocessout = open('./tmp/sss.mp4','rb').read()p = subprocess.Popen(["./ffmpeg","-i","-","-ac","1","-ar", "8000","-f","wav","-"] , stdin=subprocess.PIPE,stdout=subprocess.PIPE)voice = p.communicate(input = out)[0]input