Last active
October 6, 2022 22:06
-
-
Save sim2kid/37975926cfe06a8d2789cc117d9387a6 to your computer and use it in GitHub Desktop.
Converts videos from "Original" folder into vertical variants and puts them in "Edited". Works only for 16:9 ratio. Requires FFMPEG.
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
FOR %%a IN (Original/*.mp4) DO ffmpeg -i ".\Original\%%a" -vf "split[original][copy];[copy]scale=-1:ih*(16/9)*(16/9),crop=w=ih*9/16,gblur=sigma=20[blurred];[blurred][original]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" ".\Edited\%%~na.mp4" | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment