Download ffmpeg-videotogif-v1.0.bat.7z
FFmpeg version 2.6 and above valid
When palette is not used |
After using palette |
|
|
@echo Offset infile=2015.06.12.aviset starttime=00:00:30.497 set endtime=00:00:37.037set fps=10set width=240call lib_calculatetotaltime.bat%starttime%%endtime%set totaltime=%total_time%set "startTime=% StartTime: =% "Set" Endtime=%endtime: =% "Set" starttimestr=%starttime::=.% "Set" endtimestr=%endtime::=.% "Set outfile= "Out-%width%-%starttimestr%-%endtimestr%.gif" Set Palette=palette.pngset filters=fps=%fps%,scale=%width%:-1:flags =fast_bilinearprompt. @echo%time%rem Generate One palette-v warning @echo onffmpeg-v fatal-ss%starttime%-T%tota Ltime%-i "%infile%"-VF%filters%,palettegen-y%palette% @echo%time% @echo offrem Generate one Gif@echo onffmpeg-v fatal -ss%starttime%-T%totaltime%-i "%infile%"-I%palette%-lavfi "%filters% [x]; [x] [1:v] paletteuse "-y%outfile% @echo%time% @echo off@echo. @echo----Generate finished----del%palette% @echo Pause>nul
Use FFmpeg Palettegen paletteuse to create GIF animations that are close to panchromatic