ffmpeg splitting RGB and Alpha channels using filter

爷,独闯天下 提交于 2019-11-29 05:21:22

You need to explicitly map the outputs from the filters to output files using -map. From the documentation for -filter_complex:

Output link labels are referred to with -map. Unlabeled outputs are added to the first output file.

For example, to overlay an image over video

ffmpeg -i video.mkv -i image.png -filter_complex '[0:v][1:v]overlay[out]'\
  -map '[out]' out.mkv

So in your case you'd want something like:

ffmpeg ... -i input ... -filter_complex 'split [rgb_in][alpha_in]; ... [rgb_out];\
  ... [alpha_out]' -map '[rgb_out]' rgb.mp4 -map '[alpha_out]' alpha.mp4
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!