the script exports a screenshot every 2000 frames starting at frame 1000. (1000-3000-5000-7000-9000-11000 etc..)
So it depends on your input length.
you could remove a 0 in %%i000 around line 11495 and that would allow a lot more screenshots to be extracted.
Code: Select all
for /L %%i in (1,2,%frame_number%) do (
echo LoadPlugin("%ffms2%"^) > "%TEMP%%%i.avs"
echo FFVideoSource("%filepath%%filename%%fileext%", cachefile="%TEMP%1.ffindex"^) >> "%TEMP%%%i.avs"
echo scriptClip(""^" >> "%TEMP%%%i.avs"
echo subtitle("%filename%", size=14, align=7, 4, 25, text_color=$606060^) >> "%TEMP%%%i.avs"
echo subtitle("Resolution: " + string(width^) + " x " + string(height^) + " @ " + string(framerate^), size=14, align=7, 4, 40, text_color=$606060^) >> "%TEMP%%%i.avs"
echo subtitle("Frame: %%i000", size=14, align=7, 4, 55, text_color=$606060^) >> "%TEMP%%%i.avs"
echo subtitle("Picture type: " + Chr(FFPICT_TYPE^), size=14, align=7, 4, 70, text_color=$606060^) >> "%TEMP%%%i.avs"
echo ""^"^) >> "%TEMP%%%i.avs"
echo trim(%%i000,%%i000^) >> "%TEMP%%%i.avs"
)
Code: Select all
for /L %%i in (1,2,%frame_number%) do (
echo LoadPlugin("%ffms2%"^) > "%TEMP%%%i.avs"
echo FFVideoSource("%filepath%%filename%%fileext%", cachefile="%TEMP%1.ffindex"^) >> "%TEMP%%%i.avs"
echo scriptClip(""^" >> "%TEMP%%%i.avs"
echo subtitle("%filename%", size=14, align=7, 4, 25, text_color=$606060^) >> "%TEMP%%%i.avs"
echo subtitle("Resolution: " + string(width^) + " x " + string(height^) + " @ " + string(framerate^), size=14, align=7, 4, 40, text_color=$606060^) >> "%TEMP%%%i.avs"
echo subtitle("Frame: %%i00", size=14, align=7, 4, 55, text_color=$606060^) >> "%TEMP%%%i.avs"
echo subtitle("Picture type: " + Chr(FFPICT_TYPE^), size=14, align=7, 4, 70, text_color=$606060^) >> "%TEMP%%%i.avs"
echo ""^"^) >> "%TEMP%%%i.avs"
echo trim(%%i00,%%i00^) >> "%TEMP%%%i.avs"
)
echo noms_images = ['%filename%_Frame_%%i00.tiff'] >> "%TEMP%gamut_map.py"
echo noms_images = ['%filename%_Frame_%%i00.tiff'] >> "%TEMP%heat_map.py"