Home
RecentChanges

Search:

» AviSynth is a powerful video FrameServer for Win32.

AviSynth Links:
»Download
»Learn to script
»FAQ
»Manual
»Discussion fora
»Project page
»External filters
»FeedBack

» You can add pages to this website immediately. No login required.
Edit this document

» AboutAviSynth

 

Avisynth 
Logo

ExportingSingleImage

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)

SourceForge Logo

 


Edit this document | View document history
Document last modified Thu, 26 Aug 2004 06:14:57