Skip to content

Instantly share code, notes, and snippets.

@ethanpil
Created November 2, 2023 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethanpil/4b99438754a3314ed6e8a3a523699534 to your computer and use it in GitHub Desktop.
Save ethanpil/4b99438754a3314ed6e8a3a523699534 to your computer and use it in GitHub Desktop.
ffmpeg drag image and convert to scrolling video
ffmpeg -f lavfi -i color=s=1080x1920 -loop 1 -t 0.08 -i "%~1" -filter_complex "[1:v]scale=1080:-2,setpts=if(eq(N\,0)\,0\,1+1/0.02/TB),fps=25[fg]; [0:v][fg]overlay=y=-'t*h*0.02':eof_action=endall[v]" -map "[v]" output-nomusic.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment