Skip to content

Instantly share code, notes, and snippets.

@codeeshop-oc
Last active March 6, 2023 08:17
Show Gist options
  • Save codeeshop-oc/25851c9fcc017fb4c3919c39de9c1701 to your computer and use it in GitHub Desktop.
Save codeeshop-oc/25851c9fcc017fb4c3919c39de9c1701 to your computer and use it in GitHub Desktop.
ffmpeg all corners alternative 2s
ffmpeg -i TO_CONVERT_VIDEO_FILE -i /home/anantnegi/Videos/logo_60.png -filter_complex \
"[0:v][1:v]overlay=15:15:enable='if(between(mod(t,10),0,2),8)'[top-left]; \
[top-left][1:v]overlay=main_w-overlay_w-15:main_h-overlay_h-15:enable='if(between(mod(t,10),2,4),8)'[bottom-right]; \
[bottom-right][1:v]overlay=main_w-overlay_w-15:15:enable='if(between(mod(t,10),4,6),8)'[top-right]; \
[top-right][1:v]overlay=15:main_h-overlay_h-15:enable='if(between(mod(t,10),6,8),8)'[bottom-left]" -map "[bottom-left]" NEW_VIDEO_FILE_BUILD_FILE -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment