Exporting a single image
This will automatically export frame 999 to c:\temp. The file will be named "inputvideo-" followed by the framenumber.
name = "inputvideo"
exportpath = chr(34)+"c:\temp\"+ name + "-"+chr(34)
AVISource("D:\video\" + name + ".avi")
imagenum = 999
global runme = "(current_frame == "+ string(imagenum) +") ? ImageWriter(converttorgb24(), "+exportpath+","+ string(imagenum)+","+string(imagenum+1)+", "+chr(34)+ "bmp"+chr(34)+").RGBDifferenceFromPrevious() :Nop()"
frameevaluate(runme, show=false)
This will automatically export the last frame to c:\temp. The file will be named "inputvideo-" followed by the framenumber.
name = "inputvideo"
exportpath = chr(34)+"c:\temp\"+ name + "-"+chr(34)
AVISource("D:\video\" + name + ".avi")
imagenum = framecount(last)-1
global runme = "(current_frame == "+ string(imagenum) +") ? ImageWriter(converttorgb24(), "+exportpath+","+ string(imagenum)+","+string(imagenum+1)+", "+chr(34)+ "bmp"+chr(34)+").RGBDifferenceFromPrevious() :Nop()"
frameevaluate(runme, show=false)