Use FFmpeg to generate a movie with alpha channel from separate video and fill movies?

為{幸葍}努か 提交于 2019-12-12 04:59:37

问题


I have two movies: input_v.mp4 and input_k.mp4. input_v is the video fill, input_k is a black and white matte for keying.

I want to use FFmpeg to create output.mov in the Avid DNXHD codec, with input_v as the fill (RGB) video and the alpha (A) built from the luma values of input_k.

Is this possible?


回答1:


If your looking for a movie format showing as a matte effect in Avid then this might work:

ffmpeg -i input_v.mp4 -i input_k.mp4 -filter_complex "[0:v][1:v]alphamerge" -shortest -c:v qtrle -an output.mov

As mulvya suggests Prores also supports an alpha channel.



来源:https://stackoverflow.com/questions/46916778/use-ffmpeg-to-generate-a-movie-with-alpha-channel-from-separate-video-and-fill-m

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!