python3 subprocess 內存操做視頻轉換流格式

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]input

相關文章
相關標籤/搜索