FFMPEG -VG -filtercomplex,创建具有彩色Kway和有限FPS的GIF



我需要创建一个带有颜色键(绿屏(的 gif 文件,具有 10FPS 和指定大小。我尝试将 -vg 和 -filter_complex 结合起来:

ffmpeg -i testdatei-c.avi -vf "fps=10,scale=320:-1:flags=lanczos" -filter_complex "[0:v]chromakey=0xFFFFFF,split[v0][v1];[v0]palettegen[p];[v1][p]paletteuse" output.gif

我收到错误:

Filtergraph 'fps=10,scale=320:-1:flags=lanczos' was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a complex filtergraph.
-vf/-af/-filter and -filter_complex cannot be used together for the same stream.

流的所有筛选器都应位于同一筛选器图中,因此在 -filter_complex

ffmpeg -i testdatei-c.avi -filter_complex "[0:v]chromakey=0xFFFFFF,fps=10,scale=320:-1:flags=lanczos,split[v0][v1];[v0]palettegen[p];[v1][p]paletteuse" output.gif

最新更新