【发布时间】:2016-10-27 15:07:11
【问题描述】:
这个 ffmpeg Popen 调用有效:
command = ['ffmpeg', '-y',
'-i', filename,
'-filter_complex', 'showwavespic',
'-colorkey', 'red',
'-frames:v', '1',
'-s', '800:30',
'-vsync', '2',
'/tmp/waveform.png']
process = sp.Popen( command, stdin=sp.PIPE, stderr=sp.PIPE)
process.wait()
但我需要使用'compand, showwavespic',而且这个逗号似乎阻止了执行。 I also need to pass all sorts of strange characters,例如列,以及您可以在 CLI 调用中找到的所有内容。
如何传递复杂的参数?
【问题讨论】:
-
colorkey 是一个过滤器,但您似乎正试图将其用作一个选项。
标签: python ffmpeg subprocess