Turn image sequence into video with transparency

前端 未结 5 1504
你的背包
你的背包 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:46

    I know this topic is a bit old, but I am posting anyway.

    FFMPEG with Quicktime Animation (RLE) or FFVHUFF/HUFFYUV will do.

    • ffmpeg -i yoursequence%d.png -vcodec qtrle movie_with_alpha.mov
    • ffmpeg -i yoursequence%d.png -vcodec ffvhuff movie_with_alpha.avi
    • ffmpeg -i yoursequence%d.png -vcodec huffyuv movie_with_alpha.avi

    You will get video files with transparency(alpha channel) preserved.

    I have also heard On2-VP6 variation (Not the WebM-VP8 yet) can handle alpha, but I do not have their codec at hand.

    This also works. - ffmpeg -i yoursequence%d.png -vcodec png movie_with_alpha.mov

提交回复
热议问题