FFMPEG - Merging Videos with Transparency

百般思念 提交于 2019-12-03 03:44:07

You did not specify a video codec for the output, so it is using the default video codec for .mov files which is H.264 (libx264 encoder). However H.264 does not support an alpha channel. If you want transparency in your output video you will need to specify an output video codec that supports an alpha channel, such as the one used for your input, i.e. QuickTime Animation RLE (qtrle). To do this, add the option -c:v qtrle before the output file name. Another codec that supports an alpha channel and can be stored in .mov files is png.

You can check the list of encoders supported by your ffmpeg with ffmpeg -encoders. A command like ffmpeg -h encoder=qtrle will list information specific to that encoder, including the supported pixel formats. A pixel format that includes the string argb, rgba, abgr, bgra, gbra, or yuva has an alpha channel.

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