【FFmpeg】Filter *** has an unconnected output原因之一

当使用filter_complex时,通过人为检查命令,没有发现没有指定output。但是遇到如题的错误,可能是下面原因导致的:
将filter_complex描述的字符串用引号封装起来

解决方法引自:
ffmpeg - Filter has an unconnected output - Stack Overflowhttps://stackoverflow.com/questions/47328079/filter-has-an-unconnected-output

  • Enclosed filter_complex parameters in quotes
  • Removed -map parameter
  • Removed [output]
  • Added whitespace before every line-break

例如如下作者给出的ffmpeg命令往往就存在该问题:
ffmpeg实例,为视频设置透明度的几种方案_张雨zy的博客-CSDN博客_ffmpeg画中画混合模式透明度预期效果方案一:推荐ffmpeg -i a2.mp4 -i a3.mp4 -filter_complex [0:v]format=yuva444p,colorchannelmixer=aa=0.5[valpha];[1:v][valpha]overlay=(W-w)/2:(H-h)/2 -ss 0 -t 5 -y overlay4.mp4方案二:对图片有效,经过测试ffmpeg -...https://blog.csdn.net/yu540135101/article/details/92800740可能应为ffmpeg的版本不同,对命令的要求不一样。

猜你喜欢

转载自blog.csdn.net/sidemap/article/details/123580123