I'm using FFMPEG to overlay one video on another. It works, but the "-shortest" instruction is ignored.
This is the code:
ffmpeg -i "D:Underlay.avi" -i "D:Overlay.avi" -filter_complex [1:v]colorkey=0xFFFFFF:0.01:0.0[KeyedOverlay];[0:v][KeyedOverlay]overlay[Composite] -map [Composite] -c:v png -shortest "D:Composite.avi"
Am I doing anything wrong? Is there an alternative method?
question from:https://stackoverflow.com/questions/65908789/ffmpeg-ignores-shortest