I have a png and would like to add there video, so png is my case is something like a border.
I trying :
ffmpeg -i cat.mp4 -framerate 30 -i dem.png -filter_complex "[0]pad=1920:1080:500:0[vid];[vid][1]overlay" -c:a copy -movflags +faststart out2.mp4
But png is not a transparent and video hiding behind the picture. How can i set order or "z-index" position of the video to see it OVER the image?
[vid][1]
to[1][vid]
-i cat.mp4 -framerate 30 -i dem.png -filter_complex "[1][0]overlay=x=W*.27:y=H*.58" -c:a copy -movflags +faststart out2.mp4