Skip to content

Instantly share code, notes, and snippets.

@ethanpil
Created November 2, 2023 03:10
Show Gist options
  • Select an option

  • Save ethanpil/4b99438754a3314ed6e8a3a523699534 to your computer and use it in GitHub Desktop.

Select an option

Save ethanpil/4b99438754a3314ed6e8a3a523699534 to your computer and use it in GitHub Desktop.

Revisions

  1. ethanpil created this gist Nov 2, 2023.
    1 change: 1 addition & 0 deletions ffmpeg-scroll-image.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    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