![]() ![]() (Setting png:color-type=6 (RGB-Matte) is crucial because ffmpeg doesn't handle indexed transparency correctly.) Inputs are named over-0.png, over-1.png, over-2.png, etc. The source of our transparent input images (apologies for dancing):Įxploded to frames with ImageMagick: convert dancingbanana.gif -define png:color-type=6 over.png With the latest versions of ffmpeg the new -filter_complex command makes the same process even simpler: ffmpeg -loop 1 -i bg.png -i frame_%d.png -filter_complex overlay -shortest testvid.mp4 ![]() You second command thus becomes: ffmpeg -y -loop 1 -qscale 1 -r 1 -b 9600 -i frame_%d.png -vf "movie=bg.png overlay=0:0" -s hd720 testvid.mp4 takes two inputs and one output, the first input is the "main" video on which the second input is overlayed. The overlay order is controlled by the order of the inputs, from the ffmpeg docs Just piped the input slit it applied image over it and overlayed the two split feeds! Probably not the most efficient way. I'm trying to make the following filter work but I'm getting the movie without the background: ffmpeg -y -qscale 1 -r 1 -b 9600 -i frame_%d.png -vf "movie=bg.png split, fifo, overlay=0:0, overlay=0:0 fifo " -s hd720 testvid.mp4 I'm wondering if I can somehow change the overlay order? ![]() According libacfilter I can split the input and play with it's content. However the problem is it's overlaying the background over the input. Using -vf I can apply the background as overlay: ffmpeg -y -qscale 1 -r 1 -b 9600 -i frame_%d.png -vf "movie=bg.png overlay=0:0 " -s hd720 testvid.mp4 My initial video making without including the background is: ffmpeg -y -qscale 1 -r 1 -b 9600 -loop -i bg.png -i frame_%d.png -s hd720 testvid.mp4 I'm looking to create a video using a set of png images that have transparency merged with a static background.Īfter doing a lot of digging I seems like it's definitely possible by using the filters library. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |