FFMPEG Command to Overlay Video on Video at Different Locations on Command Line

 

 

Command Used to Overlay Video on Video at Top Left Corner

 

 

ffmpeg -i   Wildlife.wmv -vf  "movie=input3.mp4, scale=250: -1 [inner]; [in][inner] overlay =10: 10 [out]" completed.mp4

 

main_h : base video height

 

main_w : base video width

 

overlay_h : overlay video height

 

overlay_w : overlay video width

 

 

 

 

 

Command Used to Overlay Video on Video at Top Right Corner

 

 

ffmpeg -i Wildlife.wmv -vf "movie=input3.mp4, scale=250: -1 [inner]; [in][inner] overlay =main_w-(overlay_w+10): 10 [out]" completed.mp4

 

 

Command Used to Overlay Video on Video at Bottom Left Corner

 

 

ffmpeg -i Wildlife.wmv -vf "movie=input3.mp4, scale=250: -1 [inner]; [in][inner] overlay =10:main_h-(overlay_h+10) [out]" completed.mp4

 

 

Command Used to Overlay Video on Video at Bottom Right Corner

 

 

ffmpeg -i Wildlife.wmv -vf "movie=input3.mp4, scale=250: -1 [inner]; [in][inner] overlay = main_w-(overlay_w+10):main_h-(overlay_h+10)" completed.mp4

 

Leave a Reply