Created
November 2, 2023 03:10
-
-
Save ethanpil/4b99438754a3314ed6e8a3a523699534 to your computer and use it in GitHub Desktop.
ffmpeg drag image and convert to scrolling video
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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