Turn image sequence into video with transparency

前端 未结 5 1503
你的背包
你的背包 2020-12-23 11:08

I\'ve got what seems like it should be a really simple problem, but it\'s proving much harder than I expected. Here\'s the issue:

I\'ve got a fairly large image seq

5条回答
  •  臣服心动
    2020-12-23 11:41

    Yes ffmpeg certainly does support alpha channel in a video file. Not all codecs in ffmpeg seem to support alpha yet tho. Motion PNG in a .MOV file is one good combination for alpha.

    To encode/import images with alpha to a video with alpha try: ffmpeg -i %d.png -vcodec png z.mov

    Quicktime will play that.

    To decode/export a video with alpha to images with alpha try: ffmpeg -i z.mov -f image2 export2\%d.png

    Note that I exported them to a directory called 'export2'. Be sure to leave the %d parts in there. These commands will work as is on a Windows system. Linux/Mac users may need to add quote marks and swap some \ for / as usual.

提交回复
热议问题