Thanks so much for this info.RESET_9999 wrote: ↑Mon Aug 21, 2023 10:26 pmthe 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.
change it toCode: 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" )
Also line 11528 and 11626: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"
Another question, unrelated: theoretically, would it be possible to calculate the number of pixels in a frame that extend into P3 and Rec.2020? If so, could you do that for a whole movie? The gamut visualizations are helpful for seeing extensions past Rec. 709 but it would be great to get a more objective, definable number for a movie (ie. 10% of the movie is in the WCG).