Created
November 6, 2017 05:38
-
-
Save iwatake2222/b13369fbfa062e0cebcddd566ac63318 to your computer and use it in GitHub Desktop.
Combine JPEG files to a MPEG file using FFMPEG
This file contains 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
rem @echo off | |
setlocal ENABLEDELAYEDEXPANSION | |
set FFMPEG="C:\\asd\\tool\\ffmpeg-20170827-ef0c6d9-win64-static\\bin\\ffmpeg" | |
set /a FPS = 7 | |
rem set OPTION=-vf vflip | |
set OPTION = "" | |
cd /d %~dp1 | |
set /a num = 0 | |
for %%f in (%1\*.jpg) do ( | |
set /a num = num + 1 | |
ren %%f !num!.jpg | |
) | |
%FFMPEG% -f image2 -r %FPS% -i %1\%%d.jpg -r %FPS% -an -vcodec libx264 -pix_fmt yuv420p %OPTION% %~n1.mp4 | |
pause | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment