Skip to content

Instantly share code, notes, and snippets.

@boblemarin
Last active May 24, 2022 11:41
Show Gist options
  • Save boblemarin/63def7743142a79ae5801c0db3e2fc5d to your computer and use it in GitHub Desktop.
Save boblemarin/63def7743142a79ae5801c0db3e2fc5d to your computer and use it in GitHub Desktop.
Liquid Workflow

resizing.bat

@echo off
setlocal EnableDelayedExpansion
for /L %%a in (0,1,600) do (
    set /A "index=%%a*5+420"
    echo %%a : liquidify to !index!
    magick "input.png" -liquid-rescale !index!x!index! "out/out%%a.png"
    echo %%a : resize to 1920
    magick "out/out%%a.png" -resize 1920x1920 "resize/out%%a.png"
    echo done
)
endlocal
pause

FFMpeg helper commands

Convert video to image sequence

ffmpeg -i in.mp4 -vf fps=30 -vsync 0 out%d.png

Convert image sequence to video

ffmpeg -framerate 30 -pattern_type glob -i '*.png' -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4

or

ffmpeg -framerate 60 -i out%d.bmp -c:v libx264 output.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment