Created
April 17, 2016 14:41
-
-
Save Altreus/868e0ea4a5befd13ebf2c0a15039d155 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 | |
for %%i in ("%cd%") do SET OUT="%%~nxi" | |
SET BITRATE="10000000" | |
SET RATIO="1920:1080" | |
:: x264 main profile, veryfast cpu, lossless, level is kinda like version | |
:: -preset veryfast -qp 0 | |
:: 60fps, keyframe every 2s | |
ffmpeg -loglevel panic -i %3 -i %4 -map 0:v -map 1:a -vb %BITRATE% -minrate %BITRATE% -maxrate %BITRATE% -bufsize %BITRATE% -aspect %RATIO% -s %RATIO% -c:v libx264 -profile:v main -level 3.1 -r 60 -g 120 -keyint_min 120 -x264opts "keyint=120:min-keyint=120:no-scenecut" -c:a aac -ab 48000 -ac 2 -f avi -ss %1 -to %2 %OUT%.avi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment