如何在python ffmpeg中组合2个流

2024-09-28 22:21:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要从一个流中提取一个音频曲目,并将其放在视频流中

url = ffmpeg.input(video_stream)
aurl = ffmpeg.input(audio_stream)
ffmpeg.output(url, aurl, filename=title).run()

我试着这么做,但出错了

TypeError: argument of type 'Stream' is not iterable


Tags: runurlinputoutputstreamtitlevideofilename