Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#2 | Link |
|
Registered User
Join Date: May 2006
Location: Wellington, New Zealand
Posts: 112
|
If you are only going to do this a few times, it would be much easier just to do the whole thing in Virtualdub. Ctrl-2 exports a frame from the output stream to the Windows clipboard.
So set up the filters to deinterlace, resize etc. and then clip the 3 particular frames you want to the clip board, paste into Gimp or Photoshop or whatever.
__________________
Gerard V - Comedy Hypnotist The World's 16th fastest Hypnotist http://www.thathypnoshow.com and http://www.gerardv.com Inventor of the Pink Panther hypno gag |
|
|
|
|
|
#3 | Link |
|
Registered User
Join Date: May 2006
Location: Wellington, New Zealand
Posts: 112
|
If you really want to do this in Avisynth you could look at http://www.avisynth.org/ImageWriter
Use trim to turn your entire movie into one that is only 3 frames long containing just the frames you want. Deinterlace, resize etc. to thumbnail size and then use Imagewriter to output the frames. (Just a thought, 'cos I haven't tested this)
__________________
Gerard V - Comedy Hypnotist The World's 16th fastest Hypnotist http://www.thathypnoshow.com and http://www.gerardv.com Inventor of the Pink Panther hypno gag |
|
|
|
|
|
#4 | Link |
|
Registered User
Join Date: May 2006
Posts: 21
|
Well, the idea is that I will be processing thousands of videos. I would like to set three capture points, say 15 secs. apart, to capture frames. That way I would have three chances to capture a decent frame. Then I would manually go through and select the frame I want to use. For the 20% or so of videos that don't get good frame selections, I would go back and manually export frames.
|
|
|
|
|
|
#5 | Link | |
|
Registered User
Join Date: May 2006
Location: Wellington, New Zealand
Posts: 112
|
Try
Quote:
__________________
Gerard V - Comedy Hypnotist The World's 16th fastest Hypnotist http://www.thathypnoshow.com and http://www.gerardv.com Inventor of the Pink Panther hypno gag |
|
|
|
|
|
|
#6 | Link |
|
Registered User
Join Date: Jun 2006
Posts: 54
|
maybe something like
Code:
avisource("video.avi")
selectevery(375,0) #select frame every 15 sec, for PAL
lanczosresize(w,h) #if you wish to resize
imagewriter("C:\path")
|
|
|
|
|
|
#7 | Link | |
|
Registered User
Join Date: May 2006
Posts: 21
|
Quote:
I'm testing a combination of what you and anonymez posted. |
|
|
|
|
|
|
#8 | Link |
|
Registered User
Join Date: May 2006
Posts: 21
|
You guys rock...I pieced together bits from both of your ideas, and this seems to do the trick perfectly! Now what if I want to take two sizes 120x90 and 240x180 and save thumbs? Is it best to run two seperate scripts, or is this something that can be ran once?
Code:
avisource("D:video.avi")
Killaudio()
SeparateFields() # Not needed if not interlaced video
SelectOdd() # Not needed if not interlaced video
BicubicResize(120,90) # Make thumbnail size
ConvertToRGB()
selectevery(450,0) #select frame every 15 sec
imagewriter("D:\thumbs\",type="jpg")
|
|
|
|
|
|
#9 | Link | |
|
Registered User
Join Date: Feb 2002
Location: Germany
Posts: 541
|
Of course you can
![]() try: Code:
avisource("D:video.avi")
Killaudio()
SeparateFields() # Not needed if not interlaced video
SelectOdd() # Not needed if not interlaced video
selectevery(450,0) #select frame every 15 sec
ConvertToRGB()
size1=BicubicResize(120,90) # Make thumbnail size 1
size2=BicubicResize(240,180) # Make thumbnail size 2
size1.imagewriter("D:\thumbs1\",type="jpg")
size2.imagewriter("D:\thumbs2\",type="jpg")
return 1 # you have to return something...
Quote:
|
|
|
|
|
|
|
#10 | Link | |
|
Registered User
Join Date: May 2006
Posts: 21
|
Quote:
|
|
|
|
|
|
|
#13 | Link | |
|
Registered User
Join Date: May 2006
Posts: 21
|
Quote:
Here is my script: Code:
avisource("D:video.avi")
Killaudio()
SeparateFields() # Not needed if not interlaced video
SelectOdd() # Not needed if not interlaced video
selectevery(90,0) #select frame every 3 sec
ConvertToRGB()
size1=BicubicResize(120,90) # Make thumbnail size 1
size2=BicubicResize(240,180) # Make thumbnail size 2
size1.imagewriter("D:\thumbs\120\",type="jpg")
size2.imagewriter("D:\thumbs\240\",type="jpg")
return ()
|
|
|
|
|
|
|
#16 | Link | |
|
Registered User
Join Date: May 2006
Posts: 21
|
Quote:
|
|
|
|
|
![]() |
|
|