问题描述
我试过了
import ffmpeg
video = ffmpeg.input('video.mp4')
audio = ffmpeg.input('audio.mp3')
ffmpeg.merge_outputs(video,audio).run()
然后它返回
TypeError: Expected incoming stream(s) to be of one of the following types: ffmpeg.nodes.OutputStream; got <class 'ffmpeg.nodes.FilterableStream'>
我已经试过了
import ffmpeg
video = ffmpeg.input('video.mp4')
audio = ffmpeg.input('audio.mp3')
ffmpeg.concat(video,audio,v=1,a=1).output('finished_video.mp4').run()
然后它返回
FileNotFoundError: [WinError 2] The system cannot find the file specified
我也试过
import subprocess
subprocess.run("ffmpeg -i video.mp4 -i audio.mp3 -c copy output.mp4")
然后它返回
'ffmpeg' is not recognized as an internal or external command
我该怎么做?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)