Created
October 27, 2015 19:55
-
-
Save pekkavaa/dccb123b004011e53544 to your computer and use it in GitHub Desktop.
ffmpeg and imagemagick - split video to frames and back
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
rem see https://en.wikibooks.org/wiki/FFMPEG_An_Intermediate_Guide/image_sequence | |
ffmpeg -i "video.mp4" -vf -fps=14.985015 captures\out%04d.png | |
REM scale the frames and quantize to 24 color palette | |
for %%f in (%1\*.png) do ( E:\tools\imagemagick\convert.exe "%%f" -resize x144 -unsharp 0x1 -crop 160x144+48+0 -dither None -colors 24 -scale 300%% "%2\%%~nf.png" ) | |
ffmpeg -framerate 14.985015 -i scaled\out%04d.png -crf 18 video.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment