python3 subprocess 内存操作视频转换流格式
2017-11-06 14:46 夏洛克·福尔摩斯 阅读(728) 评论(0) 编辑 收藏 举报import subprocess
out = 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]
技术成就现在,眼光着看未来。