Created
March 18, 2021 09:20
-
-
Save Stylesproline/dd4aa4f595acf66d7c709906dbac7433 to your computer and use it in GitHub Desktop.
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
echo off | |
:again | |
set SquareSize=600 | |
ffmpeg.exe -i "%rt.mp4" ^ | |
-c:v libx264 -crf 23 ^ | |
-filter_complex "[0:v]split=2[blur][vid];[blur]scale=%SquareSize%:%SquareSize%:force_original_aspect_ratio=increase,crop=%SquareSize%:%SquareSize%,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[vid]scale=%SquareSize%:%SquareSize%:force_original_aspect_ratio=decrease[ov];[bg][ov]overlay=(W-w)/2:(H-h)/2" ^ | |
-profile:v baseline -level 3.0 -pix_fmt yuv420p -preset faster -tune fastdecode ^ | |
-c:a aac -ac 2 -b:a 128k ^ | |
-movflags faststart ^ | |
"%~p1%~n1_In.mp4" -y | |
if NOT ["%errorlevel%"]==["0"] pause | |
shift | |
if "%~1" == "" goto:eof | |
goto:again |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FFmpeg commands for Social Media Basic Video Editing